User forums > Help
First time run trouble on codeblocks 16.01 in linux mint
thadart:
The Fundamentos folder is named "Fundamentos\ de\ Programación/"
I went there, did that and i got this as response:
--- Code: ---/home/pelu/Escritorio/dungeon/main.cpp:2:10: fatal error: Player.h: File or folder doesn't exist
#include "Player.h"
^~~~~~~~~~
--- End code ---
That "Player.h" is a class of my project.
oBFusCATed:
It is still mightily confusing. Also pasting messages not in English doesn't help.
What is this "Fundamentos\ de\ Programación/"? Where it is coming from?
It seems that source file is in "/home/pelu/Escritorio/dungeon/". Where is the cbp file placed?
thadart:
Sorry again, I forgot to translate that part of the console output this time. Now it's done.
I really don't know how this folder "Fundamentos de Programación" has got to C::B log, it is ubicated in my user folder, "/home/pelu", but i don't know why this is an input to C::B, since my project ".cbp" file is in "/home/pelu/Escritorio/dungeon/dungeon.cbp". (Note: "Escritorio" is "Desktop" in my language, i dont know if its appropiate to translate folder names so i leave it as it is)
sodev:
--- Quote from: thadart on May 04, 2020, 03:21:49 pm ---
--- Code: ---g++ -Wall -fexceptions -g -Iinclude -I/home/pelu/Escritorio/dungeon/src -c /home/pelu/Escritorio/dungeon/src/GameMap.cpp -o obj/Debug/src/GameMap.o
execvp(./home/pelu/Fundamentos, de, , g++ -Wall -fexceptions -g -Iinclude -I/home/pelu/Escritorio/dungeon/src -c /home/pelu/Escritorio/dungeon/src/GameMap.cpp -o obj/Debug/src/GameMap.o) failed with error 2!
--- End code ---
--- End quote ---
It looks like these two lines are created by actually one call to the compiler, most probably CodeBlocks "pretty-prints" the first line and the second line is the actual execvp call that CodeBlocks tries to execute. The first parameter of that call is the path to the executable and this one seems to be corrupted.
--- Quote from: thadart on May 06, 2020, 05:22:55 pm ---The Fundamentos folder is named "Fundamentos\ de\ Programación/"
--- End quote ---
This looks like this is the path that the execvp call gets passed in, with spaces and non-ASCII letters and this seems to get wrongly inserted into the execvp call. I don't know how CodeBlocks constructs the compiler call but i would guess this path must be specified somewhere in the toolchain settings of the compiler configuration and im pretty sure this is not the path where gcc is installed. At first i would look there and correct that path (should be /usr/bin or something like that). If it's not part of the toolchain settings then hopefully someone else with more knowledge about CodeBlocks internals know which other locations contribute to the creation of the compiler call command.
thadart:
In Settings -> Compiler... -> Toolchain executable I have:
Compiler's installation directory: /usr
In the Program Files tab of Toolchain executables:
C compiler: gcc
C++ compiler: g++-8
Linker for dynamic libs: g++-8
Linker for static libs: ar
Debugger: GDB / CDB debugger: Default
Resource compiler: empty
Make program: make
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version