Re: Gcc-mingw and Win32
- From: Wolfgang Sourdeau <wolfgang contre com>
- To: gtk-app-devel-list gnome org
- Subject: Re: Gcc-mingw and Win32
- Date: Sun, 15 Apr 2001 17:37:40 -0400
"Paulo" == Paulo J Matos aka PDestroy <pdestroy netcabo pt> writes:
Hi all,
I'm trying to do my first GTK program. The first in the tutorial that creates a 200x200 window but some
errors appear...
The system is: Windows 2000 Pro and compiler is gcc 2.95.2 !
Till now I've done the following:
I got the win32 file for development and I inserted the headers in :
C:\gcc-2.95.2\i386-mingw32\include
For some I just moved the source dir to include dir... folders like gtk, gthread, gobject, gmodule, gdk...
All *.dll were sent to a folder in the path.
All *.lib, *.a were sent to C:\gcc-2.95.2\i386-mingw32\lib
And now after going to prompt and doing:
gcc -mno-cygwin -mpentium -fnative-struct test.c -o test.exe
Note that this is not related to GTK+ but I understand you might not
knew it. Try this instead:
gcc -mno-cygwin -mpentium -fnative-struct test.c -o test.exe -lgtk-1.3
-lgdk-1.3 -lglib-1.3
It is a matter of telling gcc to actually link your program to the
GTK+ libraries.
W.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]