Re: Problem compiling on Windows
- From: Micah Carrick <email micahcarrick com>
- Cc: gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Re: Problem compiling on Windows
- Date: Fri, 23 Nov 2007 21:29:17 -0800
Argh. Duh. Cool, thanks. It's all working now. Thanks guys.
- Micah Carrick
Developer - http://www.micahcarrick.com
GTK+ Forums - http://www.gtkforums.com
Tor Lillqvist wrote:
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]