User forums > Help
Ubuntu 13.04, codeblocks would not compile.
Jenna:
What does g++ --version print on console ?
If it exists in path(I mean g++), can you try to run the command to compile your soucres from console ?
And of course: make sure you have read and write access to the project-folder and the subfolders.
vasilenko93:
--- Code: ---g++ (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3
--- End code ---
Changed the permissions, now I have this.
/home/USER_NAME/Programming/testProject
the directory Programming and all of its sub-directories are with the permission rwxrwxrwx
Still has the same errors.
--- Code: ---g++ -Wall -fexceptions -g -c /home/USER_NAME/Programming/GDFFDF/main.cpp -o obj/Debug/main.o
/bin/bash: g++ -Wall -fexceptions -g -c /home/USER_NAME/Programming/GDFFDF/main.cpp -o obj/Debug/main.o: No such file or directory
--- End code ---
"GDFFDF", I quickly made a new console application. No change.
cacb:
If you are dual-booting with Windows, it is a good idea to use a Linux-formatted (ext3 or ext4) partition. I've had similar strange issues when compiling on an NTFS partition from Linux.
vasilenko93:
--- Quote from: cacb on August 19, 2013, 10:17:53 pm ---If you are dual-booting with Windows, it is a good idea to use a Linux-formatted (ext3 or ext4) partition. I've had similar strange issues when compiling on an NTFS partition from Linux.
--- End quote ---
My linux partition is ext4, and windows partition NTFS. And compiling is not the problem, I went into the folder that codeblocks created and compiled the Hell World program with g++ from terminal.
--- Code: ---g++ -o program main.cpp
--- End code ---
It showed no errors, and I could run the program. Codeblocks could not for some reason do the same, even though the same compiler is used in both scenarios.
Jenna:
Please try it with the exact same command from the projects root.
And check the user that owns the running C::B process, e.g by typing ps -eaf | grep codeblocks or by running the env command in the pre- or postbuild step of the project.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version