4 posts
Raylib and WinMain
Edited by Tjom2000 on Reason: Initial post

In order to prevent the console opening alongside my programs, I figured changing the entry point would do the trick. It does work ultimately, but I still have a few questions about this.

Including windows.h causes some conflicts so I went in and manually fixed those, a bit tedious to do but i'm down with that! I'm wondering however if there's maybe another way to handle this kind of thing.

Also, is there maybe some other way to hide the console?

62 posts / 1 project
I like videogames/gametools development.
Raylib and WinMain
Actually hidding the console could be done just with a compilation parameter, in case of GCC it is: -mwindows
4 posts
Raylib and WinMain
Muchas gracias!

You've sent me in the right direction. Msvc requires the following linker flags:
/linker /subsystem:windows /entry:mainCRTStartup

Using WinMain does this automatically.