Of g++ that successfully creates a Form1.exe file optimized for smallĬ:\Dev-Cpp\bin\g++.exe Main.cpp -o"Form1.exe" -L"C:/Dev-Cpp/lib" -mwindows -s In C:\Code\Dev-Cpp\Projects\Forms\Form1.Īnd if the source file is Main.cpp, here is my command line invocation For example, here is myīatch file to start working with the older Dev-Cpp installed GNUĬompilers for a Windows GUI template program of mine where the source is When I do this sort of work I create a batch file containing a changeĭirectory command to change the directory to wherever I have my sourceĬode, followed by an invocation of cmd.exe. Now, to beĪbsolutely clear - I'm not talking about using the CodeBlocks IDE toĬompile that works wonderfully I'm speaking of compiling at the Installed GNU compilers, but using the same techniques a successfulĬompile with the newer CodeBlocks compilers has eluded me. I have been successful at command line compiling with the older Dev-C++ Here are the locations of the installations: Version of the compilers, and the one installed when I installed Installed when I installed Dev-C++ Version 4.9.9.2 which is a pretty old I have two installations of the GNU compilers on my computers the one I'm trying to learn how to do command line compiling with my WindowsĬodeBlocks Installation of the GNU Compiler Collection specifically This is my first question here even though I've been a member for some
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |