Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I build a Windows GUI Application in Eclipse using C++ (a non console application)

I can't seem to figure out how build a windows GUI application in Eclipse with C++ . I can only build to a console. When I create a new project it doesn't give me the option for a Windows Application. I'm using Eclipse IDE for C/C++. Am I downloading the wrong flavor of Eclipse? What am I doing wrong?

like image 738
user2703899 Avatar asked Aug 21 '13 14:08

user2703899


2 Answers

Here is an example to get you started with creating a simple window: http://www.winprog.org/tutorial/simple_window.html

compiled with mingw this will open a console + the created window. To hide the console, just add this linker flag: -mwindows

like image 183
user1283078 Avatar answered Oct 29 '22 15:10

user1283078


Unlike Visual Studio, Eclipse CDT does not have a built-in wizard or options for automatically configuring compiler settings and libraries for building Windows GUI applications. You will need to know what you are doing. Do you intend to build the GUI using Win32/MinGW, or perhaps using some other GUI library, like Qt or wxWidgets? There are many options.

If you are new to C++ and/or GUI development on windows, then there are easier options to get started with.

like image 23
kaliatech Avatar answered Oct 29 '22 14:10

kaliatech