You are not logged in.
Hi,
I am trying to produce a statically linked binary of an app. I have written, but I get the following error message when I use -static in CFLAGS:
/usr/bin/ld: cannot find -lgtk-x11-2.0
collect2: ld returned 1 exit status
make: *** [xnec2c] Error 1
The library seems to be there:
5b4az src # locate gtk-x11-2.0
/usr/lib/libgtk-x11-2.0.so.0
/usr/lib/libgtk-x11-2.0.so
/usr/lib/libgtk-x11-2.0.so.0.800.6
This is using arch 0.7. I installed arch 0.7.1 on my second hard disk but have the same problem. The app. compiles and runs if -static is not used in CFLAGS.
My thanks in advance for any hints!
Regards
Neoklis ... Ham Radio Call: 5B4AZ
Offline
Try adding:
-L/usr/lib
to the gcc line.
Offline
Umm in order to statically linked, you need a static library - not a "so" which stands for "shared object" - you're looking for libgtk-x11-2.0.a
Offline
Umm in order to statically linked, you need a static library - not a "so" which stands for "shared object" - you're looking for libgtk-x11-2.0.a
Thanks! How did I ever manage to write Linux software :oops:
I will see what I can do to fix this...
Regards
Neoklis ... Ham Radio Call: 5B4AZ
Offline