Re: Problems when (cross)compiling a gtk app on linux for windows

2008-10-26 Thread Tor Lillqvist
> Then I did pkg-config --cflags --libs gtk+-2.0 to obtain the package names > and linker flags I need, In general it is wrong to pass both the --cflags and --libs options to pkg-config at once and use the output of that in one place on the compilation line. It just happens to work with gcc in ge

Re: Problems when (cross)compiling a gtk app on linux for windows

2008-10-26 Thread Dov Grobgeld
I just tested your compilation line and except from the fact that I needed to add: -I$MINGW/lib/gtk-2.0/include to the include flags, I had no problem compiling with it. So either the download at gtk is broken or you made some mistake when downloading it. Btw, you might be interested in checking

Problems when (cross)compiling a gtk app on linux for windows

2008-10-26 Thread jonas . th
Hi everyone, I am trying to compile my application for windows on a Linux system using i486-mingw-gcc without having to run Windows itself. I obtained the cross compiler, including the winapi headers etc., through the packaging system of the distribution I use which is Archlinux. I already succ