Debian Problem C++

CodeLite installation/troubleshooting forum
donPedro1998
CodeLite Curious
Posts: 3
Joined: Mon Nov 27, 2017 1:37 am
Genuine User: Yes
IDE Question: c++
Contact:

Debian Problem C++

Post by donPedro1998 »

Hi! How can I fix this?
You do not have the required permissions to view the files attached to this post.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Debian Problem C++

Post by eranif »

Did your code build successfully?
Make sure you have read the HOW TO POST thread
donPedro1998
CodeLite Curious
Posts: 3
Joined: Mon Nov 27, 2017 1:37 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: Debian Problem C++

Post 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====
You do not have the required permissions to view the files attached to this post.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Debian Problem C++

Post 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)
Make sure you have read the HOW TO POST thread
donPedro1998
CodeLite Curious
Posts: 3
Joined: Mon Nov 27, 2017 1:37 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: Debian Problem C++

Post 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?
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Debian Problem C++

Post 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
Post Reply