Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How setup C++ SDK in IntelliJ IDEA on linux?

I need to know how to configure the path to C++ SDK for IntelliJ IDEA 10.04. I installed C/C++ plugin, however I don't know what is the proper path to C++ SDK.

I am using ubuntu 11.04.

like image 216
deadfish Avatar asked Jun 25 '11 18:06

deadfish


2 Answers

after running

sudo aptitude install build-essential

then restart idea and go to terminal and run

which gcc

now copy the output into ideas settings -> IDE settings -> c/c++ and paste what you copied into the path to gcc.

do the same process for the gdb

after doing that then idea will add the sdk to the drop down menu in the create project menu

like image 102
spy-killer Avatar answered Oct 05 '22 07:10

spy-killer


after installing the c++ plugin you should see the C/C++ project option when you create a new module - i think you're seeing the point where it's asking you for the cpp sdk location.

run

sudo aptitude install build-essential

Then restart intellij - it should autodetect that it's installed and offer you the option in the drop down instead of asking you to browse to the SDK directory

like image 21
bsautner Avatar answered Oct 05 '22 07:10

bsautner