Frequently Asked Questions
for
Beginning Programming with C++ for Dummies

Q: I bought "Beginning Programming with C++ for Dummies" in e-format. Is there some place that I can download the programs from the CD-ROM?
A: You can download the C++ source files from beginning_programming_downloads. The Beginning_Programming-CPP.zip file contains the source files along with the project files to compile them in Code::Blocks. The setup.exe is the version of Code::Blocks for Windows that came with the book. You can download other versions of Code::Blocks at CodeBlocks.org.

Q: The first time I build my program with Code::Blocks I get the following error message: "...uses an invalid compiler. Probably the toolchain path within the compiler options is not setup correctly?! Skipping... Nothing to be done" What's wrong?

A: The Code::Blocks package first installs the GNU C++ compiler. It then installs the Code::Blocks editor that looks for a compiler to connect to. If you already have a C++ compiler installed on your machine, Code::Blocks can find that other compiler instead of the one it installed. There are two solutions. The best solution is to uninstall Code::Blocks and then uninstall the "other" C++ compiler. Finally reinstall Code::Blocks. Without the other C++ compiler, it should now find the proper compiler and work properly. A second approach is to redirect Code::Blocks to the GNU C++ compiler. To do this, select "Settings" then "Compiler and Debugger...". From there, select the "Toochain executables" to C:\Program Files\CodeBlocks\MinGW (this is the default location where CodeBlocks installs the C++ compiler on a Windows machine). Now select OK to save the result and retry.

Q: I have a question that doesn't appear here. What should I do?

A: E-mail me at randy@stephendavis.com and I will try to help.