-
-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run window without console prompt being still open #649
Comments
This is kind of a logistics thing with how processes work in general. If you run Google Chrome from a terminal, and close the terminal, Chrome will close with it. What OS are you on? On Linux you can run your program like so and safely close the terminal:
The above assumes the following:
|
I'm on Windows. It seems weird to me this is something you should not be able to specify when you build. But then again my first day using rust and dabbling with opengl |
You must tell Windows whether or not it should open a console with a flag in the executable's headers. Therefore this is done by passing an option to the linker. In practice, for the moment I think you can make it work by creating a small .bat script that calls cc @retep998 who may have a example |
Found this: http://stackoverflow.com/questions/29763647/how-to-make-a-program-that-does-not-display-the-console-window/29764309#29764309 meanwhile. Seems like there has been an active discussion in this thread: rust-lang/cargo#544 on the subject too |
|
@Syrou I've just added a full answer how to build a windows app without console window in that SO question. |
An RFC for this has recently been accepted: rust-lang/rfcs#1665 |
Not an issue per se, but, once you have a glutin window up and use glium to draw something in it, i'd like to only show that window, not the console too. Is this possible to remove the console prompt somehow, while having the glutin window still running?
The text was updated successfully, but these errors were encountered: