Author Topic: Libglade compiler & linking options, need help  (Read 3459 times)

Looney

  • Guest
Libglade compiler & linking options, need help
« on: April 19, 2009, 08:39:09 am »
HI falks,

I need to compile some code using libglade. This library needs that the "-export-dynamic" option has to be passed to the compiler gcc.

I tried several solution found on forums, but no one has worked.

I currently have :

Code
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libglade-2.0 -I/usr/include/libxml2

to the compiler option, and

Code
-lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lgio-2.0 -lcairo -lpango-1.0 -lfreetype -lz -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0

Where could I add the "-export-dynamic" option ? I tried before, or at the end of the options string but no success, I also tried in the advanced options manually add to the string builder command  :?, no success.

Has anyone already experienced this ?

Many thanks in advance,

Looney

macgeorge

  • Guest
Re: Libglade compiler & linking options, need help
« Reply #1 on: June 04, 2009, 11:35:25 pm »
HI falks,

I need to compile some code using libglade. This library needs that the "-export-dynamic" option has to be passed to the compiler gcc.

I tried several solution found on forums, but no one has worked.

I currently have :

Code
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libglade-2.0 -I/usr/include/libxml2

to the compiler option, and

Code
-lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lgio-2.0 -lcairo -lpango-1.0 -lfreetype -lz -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0

Where could I add the "-export-dynamic" option ? I tried before, or at the end of the options string but no success, I also tried in the advanced options manually add to the string builder command  :?, no success.

Has anyone already experienced this ?

Many thanks in advance,

Looney



well in your case i think you made the user interface using glade 2 or glade 3 to compile de code in codeblocks in your project go to build options linker settings/ other linker options and add this line
-export-dynamic
acept and thats all