Author Topic: [Solved]Fresh install on Ubuntu 18.04 LTS g++ problems  (Read 523 times)

Offline gabdup

  • Single posting newcomer
  • *
  • Posts: 3
[Solved]Fresh install on Ubuntu 18.04 LTS g++ problems
« 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

« Last Edit: July 15, 2018, 02:52:09 pm by gabdup »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6315
    • My Best Post
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline gabdup

  • Single posting newcomer
  • *
  • Posts: 3
Re: Fresh install on Ubuntu 18.04 LTS g++ problems
« Reply #2 on: July 15, 2018, 02:20:38 pm »
Code: [Select]

-------------- 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))
 


Offline gabdup

  • Single posting newcomer
  • *
  • Posts: 3
Re: Fresh install on Ubuntu 18.04 LTS g++ problems
« Reply #3 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