Code::Blocks Forums

User forums => Help => Topic started by: gabdup on July 15, 2018, 01:56:29 pm

Title: [Solved]Fresh install on Ubuntu 18.04 LTS g++ problems
Post by: gabdup on July 15, 2018, 01:56:29 pm
I installed codeblock 16.01 on ubuntu 18.04 LTS using the Ubuntu Software manager
I clicked the compiler that was detected GNU GCC Compiler
Created a new console project named gab

When I try to run the main.cpp it gives me an error
it is written this in the Build log:

g++ -o bin/Release/gab obj/Release/main.o -s
g++ error: obj/Release/main.o: No such file or directory
g++ fatal error: no input files
compilation terminated

Process terminated with status 1(0 minute(s), 0 second(s))
2 error(s), 0 warning(s) (0) minute(s), 0 second(s)

I've followed a tutorial which told me to install codeblocks another way and also gcc at
https://www.linuxbabe.com/ubuntu/install-code-blocks-ubuntu-16-04-17-04
but the problem still persists

I tried to uninstall and reinstall codeblock but it didn't fix the problem

i've changed compiler settings with toolchains executable and clicked
autodetect

the problem still persists.
I've consulted and do a thorough research on google and on this forums and I couldn't find anything.

help would be appreciated

Title: Re: Fresh install on Ubuntu 18.04 LTS g++ problems
Post by: stahta01 on July 15, 2018, 02:06:59 pm
Posting a build log would help us help you!

http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F)

Tim S.
Title: Re: Fresh install on Ubuntu 18.04 LTS g++ problems
Post by: gabdup on July 15, 2018, 02:20:38 pm
Code

-------------- Build: Debug in gab (compiler: GNU GCC Compiler)---------------

g++ -Wall -fexceptions -g -Wall  -c /home/gabriel/Téléchargements/Solution/gab/main.cpp -o obj/Debug/main.o
g++  -o bin/Debug/gab obj/Debug/main.o   
g++: error: obj/Debug/main.o: Aucun fichier ou dossier de ce type
g++: fatal error: no input files
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
2 error(s), 0 warning(s) (0 minute(s), 0 second(s))
 

Title: Re: Fresh install on Ubuntu 18.04 LTS g++ problems
Post by: gabdup on July 15, 2018, 02:50:36 pm
Found the problem,

I don't know if it is codeblock or the compiler since I don't understand all the concepts
but special symbol from other language are not supported.

I replaced this:
-c /home/gabriel/Téléchargements/Solution/gab/main.cpp -o obj/Debug/main.o

with this:
Telechargements

Problem solved