prevent opening a console window in addition to your GLUT window when it is run

in vc
menu option ( Project → Properties )
From the Configuration: list box, select All Configurations.
select the Linker subtree and then Command Line option in the left pane. Then add the following code to the Additional Options: text box
Copy & Paste: /SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup

in mingw
click on Project and go to Project Options.
Click on the Parameters tab.
On the 3rd box, Linker, you will need to add in the following code to your project
-Wl,--subsystem,windows
文章標籤
全站熱搜
創作者介紹
創作者 阿勇 的頭像
阿勇

阿勇的blog

阿勇 發表在 痞客邦 留言(0) 人氣(6)