Re: help compiling a wGlade program
- From: "Daniel K. O." <danielosmari yahoo com br>
- To: Zvi Sebrow <zvi sebrow verizon net>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: help compiling a wGlade program
- Date: Wed, 02 Jun 2004 22:10:11 -0300
Zvi Sebrow wrote:
I am trying to compile a program using dev-c++ on a Windows XP box.
The command line is:
gcc.exe src/callbacks.o src/interface.o src/main.o src/support.o -o "Project1.exe" -L"C:/Program Files/Dev-Cpp/lib" -mwindows -lz -lglib-2.0.dll -lgtk.dll -lgdk.dll
You need to use the glib/gobject flags when compiling and linking. If
you have pkg-config, you can:
* Add `pkg-config --cflags gobject-2.0` to your compiler flags.
* Add `pkg-config --libs gobject-2.0` to your linker flags.
If you don't have pkg-config, just configure your project to use the
"<INCLUDE>/glib-2.0" and "<LIB>/glib-2.0/include" as aditional include
dir, and add -lgobject-2.0 to the linker.
Daniel K. O.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]