[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-debug-dev] Unwanted console window
|
The solution was to add the
-mwindows
option in the compiler and linker miscelaneous settings.
On Tue, 2006-04-11 at 09:42 -0400, Jean-Claude Gervais wrote:
> Hello,
>
> I<ve noticed that when I produce an executable for Windows, whether I
> use the Windows PE parser or the Cygwin PE parser, the application
> always opens a text-mode console window when it runs.
>
> Whether it is debug or release, running under the Eclipse environment
> debugger or not.
>
>
> An app such as this should NOT produce a console window:
>
> int WinMain( HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int
> nShowCmd ) {
>
> MessageBox( HWND_DESKTOP, "Hello", "Hello", MB_OK );
>
> return 0;
>
> }
>
>
> But yet, it does.
>
> Is there a way to get rid of the console window?
>
> Thanks in advance.
>
>
> _______________________________________________
> cdt-debug-dev mailing list
> cdt-debug-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-debug-dev