Just can't stay away
Joined: 2009/10/7 1:11 Last Login
: 10/27 15:47
From Odense
Group:
Registered Users
|
How do I link with .so libraries using gcc?
I'm trying to link my project to libpng12.so and libfreetype.so. The linking call looks like this:
c++ -o testapp $(OBJECTS) -L/work/CODE/large/qt-x11-opensource-src-4.5.3/lib -lQtGui -lQtCore -Lcygnix:cygnixppc/x11r6.3/lib -lXt -lSM -lICE -lXext -lX11 -laos4util-newlib -LSDK:gcc/lib/gcc/pcc-amigaos/4.2.4/newlib/lib -LSDK:newlib/lib -lunix -lauto -LSDK:local/newlib/lib -lpng12 -lfreetype
but c++ returns "can't find -lpng12". I've tried also replacing the last three parameters with:
SDK:newlib/lib/libpng12.so SDK:newlib/lib/libfreetype.so
but c++ returns an error again claiming, that I'm trying to link staticly to a dynamic library.
What am I doing wrong?
|