Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Why is that console window shows up, when app is run?  (Read 3197 times)

0 Members and 1 Guest are viewing this topic.

newn

  • Guest
Why is that console window shows up, when app is run?
« 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?

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Why is that console window shows up, when app is run?
« Reply #1 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.
SFML / OS X developer

newn

  • Guest
Why is that console window shows up, when app is run?
« Reply #2 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.

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Why is that console window shows up, when app is run?
« Reply #3 on: August 21, 2010, 10:24:50 pm »
Read the next sentence in the tutorial.  :wink:
SFML / OS X developer

newn

  • Guest
Why is that console window shows up, when app is run?
« Reply #4 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.

 

anything