Results 1 to 1 of 1
I use to compile: gcc file.c -o file `pkg-config --cflags --libs gtk+-2.0`
But, I need to execute in another computer that don't have the gtk+ 2.0,
so I try
to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-27-2007 #1Just Joined!
- Join Date
- Feb 2007
- Posts
- 1
static compilation in gtk
I use to compile: gcc file.c -o file `pkg-config --cflags --libs gtk+-2.0`
But, I need to execute in another computer that don't have the gtk+ 2.0,
so I try
to compile static using: gcc file.c -o file -static `pkg-config --cflags
--libs gtk+-2.0`
and I have the error:
/usr/bin/ld: cannot find -lgtk-x11-2.0
collect2: ld returned 1 exit status
What I have to do to complite the program with all libraries static ?


Reply With Quote
