Saturday, 28 September 2013

g++ cannot find my library

g++ cannot find my library

I'm trying to write a makefile that links my objects. It successfully has
made a dynamic library lib/libunittest.so - It's class name was
UnitTest.cpp. When I try to link my mainDriver.o with it it complains:
g++ -fPIC -o bin/mainDriver obj/mainDriver.o -Llib -lunittest
Error: cannot find -lunittest
Note: I'm doing this on cygwin. Can someone please help me with this?

No comments:

Post a Comment