Re: Problem compiling on Windows
- From: "Tor Lillqvist" <tml iki fi>
- To: "Tristan Van Berkom" <tvb gnome org>
- Cc: gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Re: Problem compiling on Windows
- Date: Sat, 24 Nov 2007 06:40:33 +0200
Try gcc -Wall -g `pkg-config --cflags --libs libglade-2.0` -o hello hello.c
Even that is wrong in general, and only works on some ELF-based
platforms like Linux. To work on most platforms (including mingw), one
has to specify the libraries *after* the object (source) files. This
is how it has always been in Unix. Try:
gcc -Wall -g `pkg-config --cflags libglade-2.0` -o hello hello.c
`pkg-config --libs libglade-2.0`
I would also make sure it uses "-o hello.exe" explicitly, just to
avoid possible confusion. If you use autofoo and libtool, this should
happen automatically.
--tml
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]