compile gtk static



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 ?

Thanks for the Help - ViNiCiUs




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]