I am running Code::Blocks version 13.12 rev 9501 on Red Hat Enterprise Linux Workstation
(version 6.3(Santiago)). The compiler I use is gcc
version 4.4.7 20120313 (Red Hat 4.4.7-3).
When I try to compile my workspace (with multiple projects), I get an error in the Build Log saying that the file could not be found. I have copied the command from the Build Log directly to command line and it works fine.
Description of problem.
The file is not being compiled.
Build log:
-------------- Build: Debug in ExceptionsLib (compiler: GNU GCC Compiler)---------------
g++ -Wall -g -pedantic -Wall -ansi -g -c /home/anderson/STRIKE_CL/Software/trunk/SAS/Production/ExceptionsLib/Exception.cpp -o /home/anderson/STRIKE_CL/Software/trunk/SASProduction/CodeBlocks/ExceptionsLib/obj/Debug/ExceptionsLib/Exception.o
g++ -Wall -g -pedantic -Wall -ansi -g -c /home/anderson/STRIKE_CL/Software/trunk/SAS/Production/ExceptionsLib/Exception.cpp -o /home/anderson/STRIKE_CL/Software/trunk/SASProduction/CodeBlocks/ExceptionsLib/obj/Debug/ExceptionsLib/Exception.o: No such file or directory.
Process terminated with status 1 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
I have already tried modifying the Global compiler Settings->Toolchain executables to point to /usr/bin and trying specifying the absolute path to the g++ executable as /usr/bin/g++. After that didn't change anything, I went back to the Toolchain executables tab and selected Auto-detect and the Compiler's installation directory was set back to /usr (that's when I noticed the NOTE below the text field stating that the bin sub-directory would be appeneded to the /usr).
I also changed the Project Properties->Build Targets Object output dir to be an absolute path.
Neither of these worked.