Re: [Dev-C++] Diff. between project and unit
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Carlos d. M. <cg...@wo...> - 2002-10-29 11:26:28
|
If you compile the project you use the compiler options in the project, b= ut if you compile only the unit you're using the "general" compiler options: th= ose you have in tools->Compiler options. If you compile the project you are a= sking for compile c or c++, win32 GUI, etc. If you compile the unit you're usin= g the other, perhaps c or c++ and win32 console. What I imagine is that, although you should have a warning of undefined reference to WinMain@32, it compiled the unit as a console app, so when y= ou run it it creates at first a console, but after it works creating the win= dow. pr...@le... escribi=F3: > Hi list, > Now this is an absolute newbie question, quite befitting me. I've start= ed > dabbling with the black arts of C++ recently. Today, while writing a > windows application, I came across a strange situation. If I compile an= d > run just the unit (i.e. main.cpp) file on its own, I get a console wind= ow > running at the back of the application window. But if I compile the ent= ire > project (i.e. winapp.dev) then I don't get a console. Can someone expla= in > what lies in the project file that causes the console to disappear? > > This is not a commercial project that I'm working on, so it really isn'= t a > matter of whether I want the console or not, but rather WHAT causes the > console to appear in the first place. > > Any help appreciated. Thanks in advance. > > Pranav Negandhi > Software Engineering > Learnet India Limited, Mumbai. > Phone: 91-22-859 8042 Ext: 316 > http://www.learnetindia.com > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |