Hey.
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:
Code:
TOPDIR = ../..
INCLUDE = \
-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.