SFML community forums
Help => Window => Topic started by: e_barroga on August 24, 2008, 11:04:16 pm
-
After creating the Render Window, the console window still displays. How do I keep it from displaying?
-
After creating the Render Window, the console window still displays. How do I keep it from displaying?
Either don't make a "console app" when you create your solution (make a Win32 project) or go through the project settings and change over all the settings manually.
-
If this is built in Visual Studio then in your project settings, go to Linker->System and set the SubSystem property to "Windows (/SUBSYSTEM:WINDOWS)". At least, that's where it is in VS2008.
-
And to keep main as your entry point (instead of WinMain), you must link to sfml-main.lib.
-
Thanks Beaker and Laurent, works fine!
-
And to keep main as your entry point (instead of WinMain), you must link to sfml-main.lib.
What do you mean by "link to sfml-main.lib".
Also, what do you mean by "keep main as my entry point".
-
What do you mean by "link to sfml-main.lib".
I mean "link to sfml-main.lib". If you really don't know what this means, then I suggest you read some basic C++ tutorial first.
Also, what do you mean by "keep main as my entry point".
I mean that your entrey point is still the portable "main" and not an OS-specific one like "WinMain".
-
What do you mean by "link to sfml-main.lib".
I mean "link to sfml-main.lib". If you really don't know what this means, then I suggest you read some basic C++ tutorial first.
Also, what do you mean by "keep main as my entry point".
I mean that your entrey point is still the portable "main" and not an OS-specific one like "WinMain".
Okay, I get it.... but yeah, I know how to link.
-
Ah, that's nice to know, I didn't expect this to be so easy. Thank you... :)
-
P.S.
I wouldn't say that you would need to look in a "Basic C++ Tutorial" to learn how to link libraries.
For a beginner those tutorials are probably complex.
I learned because I needed 3 libraries to get a WinSock Network Library (39DLL) to work.
-
um, how would you program without basis ?
-
Anyway, a tutorial is not really a good way to learn C++. It's possible, but much more tedious than a good book.
-
Anyway, a tutorial is not really a good way to learn C++. It's possible, but much more tedious than a good book.
I want to move in to a library of Programming books... *Drools*
-
there is no sfml-main.lib in SFML-1.5-sdk-windows-mingw.zip , only in SFML-1.5-sdk-windows-vc2008.zip ( and maybe the 2005 one )
EDIT: using -mwindows option of mingw g++, there is no more console window
-
That's bad :lol:
I'll fix this as soon as possible, thanks for your feedback.