Page 1 of 1

Debian Problem C++

Posted: Mon Nov 27, 2017 1:42 am
by donPedro1998
Hi! How can I fix this?

Re: Debian Problem C++

Posted: Mon Nov 27, 2017 1:58 am
by eranif
Did your code build successfully?

Re: Debian Problem C++

Posted: Mon Nov 27, 2017 6:38 pm
by donPedro1998
Judging by this photo, I guess not.

Edit:
I've installed something and now it looks like this:

/bin/sh: 1: clang++: not found
platformer.mk:95: recipe for target 'Debug/main.cpp.o' failed
make[1]: *** [Debug/main.cpp.o] Error 127
make[1]: Leaving directory '/home/michu/platformer/platformer'
Makefile:4: recipe for target 'All' failed
make: *** [All] Error 2
====0 errors, 0 warnings====

Re: Debian Problem C++

Posted: Mon Nov 27, 2017 7:02 pm
by eranif
I've installed something and now it looks like this:
Not very helpful

Again, you are struggling with basic C/C++ build issues.
My advise: you should invest some time compile something outside of the IDE. Once you get the hang of it, switch back to the IDE

The error you get means: you don't have clang++ installed... (i.e. no compiler installed)

Re: Debian Problem C++

Posted: Mon Nov 27, 2017 10:15 pm
by donPedro1998
sudo apt-get install linux-source

That's what I installed
"My advise: you should invest some time compile something outside of the IDE. Once you get the hang of it, switch back to the IDE" - what does It mean?

Re: Debian Problem C++

Posted: Tue Nov 28, 2017 12:32 am
by DavidGH
Hi,
sudo apt-get install linux-source
Why did you install the kernel source? Are you trying to build your own kernel, or was that just a random guess?

I suggest you install the 'build-essential' package, which will install various packages useful for building. They include the usual C and C++ compilers, gcc and g++.
If you particularly want to use clang, then install the 'clang' package too. Otherwise you should change your project's settings to use g++ instead.

Regards,

David