Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 03-17-2009, 08:37 AM   #1
LQ Newbie
Registered: Mar 2009
Posts: 5

Rep: Reputation: 0
C++ problems linking with CryptoPP


I was developing an app, and i needed to link to CryptoPP library. It seems like i've done it properly, but i am still getting the much hated:
undefined reference to 'vtable...' errors.

My main, simple instantiates a variables, and here is the makefile that i use:

TOPDIR = ../..

    -I$(TOPDIR)/crypto/ \
LIB = -L$(TOPDIR)/lib/ \
LIBS = \
    -lcryptopp \
aestest : main.o
    g++ $(LIB) $(LIBS) -o aestest main.o 
main.o: main.cpp
    g++ -c main.cpp $(INCLUDE)
The paths are all correct, and make fins all the files, however i still can't link. The library is just a vanilla distribution of CryptoPP, no changes to it. Any ideas why i might be getting this?

I search on google and found alot of similar problems, but didn't find a solution that worked for me.

Sorry about making my first post a question, but i am rather stuck on this .

Thanks in advance.
Old 03-18-2009, 04:17 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,671

Rep: Reputation: 218Reputation: 218Reputation: 218
Does the error message refer to a class from the library or to your own class?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a way to compile cryptopp from source? Choucete Linux - Newbie 6 09-02-2008 04:17 AM
LXer: CryptoPP - The cryptographic library for C++ LXer Syndicated Linux News 0 04-22-2007 11:31 PM
linking problems wmoti Programming 11 09-24-2005 11:30 PM
Linking Problems doubleds Linux - Software 4 12-03-2004 09:49 PM
Linking problems Avatar33 Programming 1 10-05-2004 06:21 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:14 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration