SFML community forums

General => General discussions => Topic started by: newn on August 21, 2010, 03:39:00 pm

Title: Why is that console window shows up, when app is run?
Post by: newn on August 21, 2010, 03:39:00 pm
Hi everyone.
I would like to ask - why is that console window showing up, when i try to run the application? Any application i create actually, from the tutorial section. I guess it's because it's console application project in Vs2010, but why it should be like that? I mean, i cannot even compile a win32 application.

So question in simple words: Why is that console window shows up? Any particular specific for SFML reason for that?
Title: Why is that console window shows up, when app is run?
Post by: Hiura on August 21, 2010, 08:09:00 pm
Nothing SFML-specific related.
Quote from: "Tutorial"
Under Windows operating systems, you may have created a "Windows Application" project, especially if don't want the console to show up.
Title: Why is that console window shows up, when app is run?
Post by: newn on August 21, 2010, 09:58:10 pm
Well, that's the error i'm getting, when creating Win32 Application, instead of Win32 Console Application:

1>  All outputs are up-to-date.
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
1>D:\Development\Games\Test_Delete\Debug\Test_Delete.exe : fatal error LNK1120: 1 unresolved externals
1>
1>Build FAILED.
Title: Why is that console window shows up, when app is run?
Post by: Hiura on August 21, 2010, 10:24:50 pm
Read the next sentence in the tutorial.  :wink:
Title: Why is that console window shows up, when app is run?
Post by: newn on August 21, 2010, 10:58:26 pm
Oh, thanks. Must've missed it, when reading. :/ Or kept it for later investigation, and forgot about it.