Message-ID: <3EAE27B3.7000202 at lix.polytechnique.fr> Date: Tue, 29 Apr 2003 09:20:19 +0200 From: Benjamin Monate MIME-Version: 1.0 To: Sven Luther Cc: lablgtk Subject: Re: lablgtk on windows ... References: <20030425114457.GA1558 at iliana> <3EA91DD1.8010709 at lix.polytechnique.fr> <20030425130710.GA2677 at iliana> <3EA93F07.3060504 at lix.polytechnique.fr> <20030425163012.GA1189 at iliana> <3EAA4271.3080006 at lix.polytechnique.fr> <20030429065008.GA2475 at iliana> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sven Luther wrote: >On Sat, Apr 26, 2003 at 10:25:21AM +0200, Benjamin Monate wrote: > > >> What is the output of : >> >>pkg-config --libs --cflags gtk+-2.0 >> >> > >I wrote to the gimp-win32-devel list, and found the problem, i feel >stupid now, as ever i think. > >You need to do : > >gcc -mno-cygwin -mms-bitfields `pkg-config --cflags gtk+-2.0` -o >hello-gtk hello-gtk.c `pkg-config --libs gtk+-2.0` > >The libs have to be after the .c file using them, how could i have >missed that, to long ago that i did some independent C programming >perhaps. > > Ok. Then you are almost done. From: http://www.sybase.com/detail/1,6904,1002374,00.html#windows Windows searches for these DLLs in the following order: # The directory containing the EXE file that owns the process # The current directory # The Windows system directory # The Windows directory # The directories listed in the PATH environment variable Make your choice among these, and this will work. Benjamin