
If I had to make a guess I suspect I have to add environment variables,īut I'm not entirely sure what they are or how to go about it. Me with this or provide information where I might learn how to set up myĮnvironment in Windows 2000/XP to allow me to command line compile with Information perhaps contained in environment variables. Sequence to complete without access to some external OS dependent Installed version, (that's a no-brainer) that is not allowing the build The conclusion I've come to though is that there has been some internalĬhanges to the compilers from the Dev-Cpp version to the newer CodeBlocks Having a hard time understanding how to interpret it with Windows. The book "An Introduction To GCC For The GNU Compilers gcc And g++" byīrian Gough, but because the book seems entirely Linux/Unix based I'm I'm a bit experienced with command line compiling with Linux and I have I've executed a PATH statement before invoking the compiler which containedĬ:\Program Files\CodeBlocks\MinGW\bin\ld.exe The command line to help things along but I never get any further than anĮrror message to the effect that the compiler can't find ld - even when I have attempted executing various PATH statements before

However, using these same techniques using the CodeBlocks GNU binaries 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
