#include <iostream>
#include "simpio.h" // 3rd party library
using namespace std;
Post a build log of a rebuild!!
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F)
Tim S.
-------------- Build: Debug in CS106 (compiler: GNU GCC Compiler)---------------
Target is up to date.
Nothing to be done (all items are up-to-date).
\Project CodeBlocks\CS106B\libCourse CS106B.a
Executing: "C:\Program Files (x86)\CodeBlocks/cb_console_runner.exe" "C:\Program Files (x86)\CodeBlocks\codeblocks.exe" (in C:\Users\Project CodeBlocks\CS106B\)
Process terminated with status -1073741510 (0 minutes, 12 seconds)
this is the build log for build and run:Quote\Project CodeBlocks\CS106B\libCourse CS106B.a
Executing: "C:\Program Files (x86)\CodeBlocks/cb_console_runner.exe" "C:\Program Files (x86)\CodeBlocks\codeblocks.exe" (in C:\Users\Project CodeBlocks\CS106B\)
Process terminated with status -1073741510 (0 minutes, 12 seconds)
Why do you want to run the library (?) through codeblocks or cb_console_runner ?
What do you want to achieve ?
It does not make any sens !
this is the build log for build and run:Quote\Project CodeBlocks\CS106B\libCourse CS106B.a
Executing: "C:\Program Files (x86)\CodeBlocks/cb_console_runner.exe" "C:\Program Files (x86)\CodeBlocks\codeblocks.exe" (in C:\Users\Project CodeBlocks\CS106B\)
Process terminated with status -1073741510 (0 minutes, 12 seconds)
-------------- Build: Debug in CS106B (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -Wall -g -I"..\..\C++ Libraries \cs106\" -I"C:\Users\Algorithm\C++\Libraries" -c "C:\Users\Algorithm\C++\cpp files\1.3 powertab.cpp" -o "obj\Debug\cpp files\1.3 powertab.o"
mingw32-g++.exe: error: Learning\Algorithm\C++: No such file or directory
mingw32-g++.exe: error: St\C++: No such file or directory
mingw32-g++.exe: error: Libraries: No such file or directory
mingw32-g++.exe: error: St -c C:\Users\XF: Invalid argument
mingw32-g++.exe: error: Learning\Algorithm\C++: No such file or directory
mingw32-g++.exe: error: St\cpp: No such file or directory
mingw32-g++.exe: error: files\1.3: No such file or directory
mingw32-g++.exe: error: powertab.cpp -o obj\Debug\cpp: No such file or directory
mingw32-g++.exe: error: files\1.3: No such file or directory
mingw32-g++.exe: error: powertab.o: No such file or directory
Process terminated with status 1 (0 minutes, 4 seconds)
9 errors, 0 warnings (0 minutes, 4 seconds)
I'm sorry for my misunderstanding.
This is the result I obtain from 'build' > 'rebuild' in the 'build log' tab:Quote-------------- Build: Debug in CS106B (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -Wall -g -I"..\..\C++ Libraries \cs106\" -I"C:\Users\Algorithm\C++\Libraries" -c "C:\Users\Algorithm\C++\cpp files\1.3 powertab.cpp" -o "obj\Debug\cpp files\1.3 powertab.o"
mingw32-g++.exe: error: Learning\Algorithm\C++: No such file or directory
mingw32-g++.exe: error: St\C++: No such file or directory
mingw32-g++.exe: error: Libraries: No such file or directory
mingw32-g++.exe: error: St -c C:\Users\XF: Invalid argument
mingw32-g++.exe: error: Learning\Algorithm\C++: No such file or directory
mingw32-g++.exe: error: St\cpp: No such file or directory
mingw32-g++.exe: error: files\1.3: No such file or directory
mingw32-g++.exe: error: powertab.cpp -o obj\Debug\cpp: No such file or directory
mingw32-g++.exe: error: files\1.3: No such file or directory
mingw32-g++.exe: error: powertab.o: No such file or directory
Process terminated with status 1 (0 minutes, 4 seconds)
9 errors, 0 warnings (0 minutes, 4 seconds)
My compiler is Code::BlocksNo Codeblocks is not a compiler. Codeblocks is a IDE. Your compiler is the mingw-gcc compiler... The compiler is a 3th party software in c::b...
Next I'm checking the result on the console window, which is not yet showing anything and is the same as before.
Could this be related to field 'host application' in 'project>set program's arguments'? I specified path to 'codeblocks.exe' file and checked 'run host in terminal'. Or is the setting problem different?
I also see that the path here starts 'C:\Program Files (x86)\' so it has spaces.
-------------- Build: Debug in CS106 (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -Wall -g -I"C:\Users\E\XF L\Algorithm\C++ St\C++ Libraries" -c "C:\Users\E\XF L\Algorithm\C++ St\cpp files\1.3.cpp" -o "obj\Debug\cpp files\1.3.o"
C:\Users\E\XF L\Algorithm\C++ St\cpp files\1.3.cpp:12:48: fatal error: genlib.h: No such file or directory
#include "genlib.h" // -> using namespace std
^
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))
Path of header files: C:\MinGW\include\cs106_full_cpp_library\
This is also the path I have defined in 'project>build options>linker settings' and '>>search directories'
Path of C::B project file: C:\Users\Algorithm\C++ St\Project CodeBlocks\CS106 so it has spaces, and so a problem?
File 'CS106.cbp' has size 1KB (too small?) and is attached.
I have added the header files recursively to the project.
Also, I have reinstalled C::B directly on c-drive and made sure not to have any spaces in folder names (which might be an issue in default installation?).
BlueHazzard: this is indeed one of the exercises... and I believe I have already done what you suggest.