User forums > Using Code::Blocks
3rd party libraries: compiling does not work
zeno:
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)
--- End quote ---
stahta01:
--- Quote from: zeno on March 31, 2014, 06:28:28 pm ---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)
--- End quote ---
--- End quote ---
My best guess you have a Toolchain/Compiler that has issues with spaces in the paths.
I suggest getting rid of the spaces and see if the error changes.
Tim S.
zeno:
My compiler is Code::Blocks
If I understand correctly, Code::Blocks has problem compiling with 3rd party libraries if a folder name has spaces, so the path as well?
Is there a limitation in the path length, or should the folder be 'close' to the root C-drive?
Thanks again for your help.
BlueHazzard:
--- Quote from: zeno on April 01, 2014, 01:15:00 am ---My compiler is Code::Blocks
--- End quote ---
No 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...
It is general advise to use only ASCII characters without spaces, and symbols like - ? , ~ ...
zeno:
Thank you everyone for your advice!
I have shortened names of folders (and the path) so as not to have any spaces, and as a result the 'rebuild' is working. This is a nice step forward!
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.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version