Date: Tue, 29 Apr 2003 09:41:42 +0200 To: Benjamin Monate Cc: Sven Luther , lablgtk Subject: Re: lablgtk on windows ... Message-ID: <20030429074142.GA10398 at iliana> 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> <3EAE27B3.7000202 at lix.polytechnique.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3EAE27B3.7000202 at lix.polytechnique.fr> From: Sven Luther On Tue, Apr 29, 2003 at 09:20:19AM +0200, Benjamin Monate wrote: > 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 Ok, i guess i should add them to my PATH, where is the right place to do this ? The gtk-win32 page suggest autoexec.bat, but i don't know, there is no PATH definition in my existing autoexec.bat, so there should be a better place. Also, after that will come the problem of the distribution of the resulting program. I would want it to run on every windows box, not only those where cygwin is installed, or i could as well use a demolinux CD to run the linux version. Is there a way of getting the needed DLLs from the executable so i can put all of it into a zip archive or something ? Or is it better to produce static lablgtk binaries ? Friendly, and thanks for your help. Sven Luther