Can't seem to get rid of the console window (Windows port)

2006-06-11 Thread Justin Clift
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I'm porting my GTK application to Windows (MinGW with gcc), and am finding it impossible to get rid of the DOS box windows console that appears when the program is launched. Seen lots of posts recommending using the -mwindows flag, and

Re: Can't seem to get rid of the console window (Windows port)

2006-06-11 Thread Tor Lillqvist
Justin Clift writes: Seen lots of posts recommending using the -mwindows flag, Yes, that definitely is what you should do... Invoking: GCC C Linker gcc -Lc:/MinGW/lib -Lc:/MinGW/libxml2-2.6.23.win32/lib - -Lc:/devel/target/stable/lib -Lc:/opt/gnuwin32/lib -oflame-edit.exe /flame-edit.o

Re: Can't seem to get rid of the console window (Windows port)

2006-06-11 Thread Ivan Baldo
Hello Justin. AFAIK the .exe header has a flag that tells if a program is a console or a windowed program, so I guess you should try to specify the -mwindows flag on the linking process instead of the compiling one because the linker is what generates the .exe file and has control over

Re: Can't seem to get rid of the console window (Windows port)

2006-06-11 Thread Michael Torrie
On Sun, 2006-06-11 at 22:49 +0300, Tor Lillqvist wrote: ... but you don't use it in the linking phase, which is when it is needed. You can also change the executable type after the fact using the exetype.pl program found at http://www.devdaily.com/scw/perl/perl-5.8.5/win32/bin/exetype.pl.shtml

Re: Can't seem to get rid of the console window (Windows port)

2006-06-11 Thread Justin Clift
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tor Lillqvist wrote: Justin Clift writes: Seen lots of posts recommending using the -mwindows flag, Yes, that definitely is what you should do... Invoking: GCC C Linker gcc -Lc:/MinGW/lib -Lc:/MinGW/libxml2-2.6.23.win32/lib -

Re: Can't seem to get rid of the console window (Windows port)

2006-06-11 Thread Justin Clift
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ivan Baldo wrote: Hello Justin. AFAIK the .exe header has a flag that tells if a program is a console or a windowed program, so I guess you should try to specify the -mwindows flag on the linking process instead of the compiling one because

Re: Can't seem to get rid of the console window (Windows port)

2006-06-11 Thread Justin Clift
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael Torrie wrote: On Sun, 2006-06-11 at 22:49 +0300, Tor Lillqvist wrote: ... but you don't use it in the linking phase, which is when it is needed. You can also change the executable type after the fact using the exetype.pl program found