Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA 12 setup for C/C++ on OSX

I recently decided to try IntelliJ IDEA 12 CE.

I Successfully installed their C/C++ plugin and restarted the IDE.

Now after I click File->New Project->C/C++ Module, next window prompts me to "Choose Cpp SDK".

I'm stuck at this window, tried entering many paths and failed. My system is OSX Mountain Lion, Xcode 4.5.2 with command-line tools installed. Compiling from command line with gcc works just fine.

like image 384
Pulcherior Avatar asked Jan 11 '13 16:01

Pulcherior


People also ask

Can I use IntelliJ IDEA for C?

C/C++ are not officially supported in IntelliJ IDEA, but you can use CLion. You can browse the JetBrains Marketplace to find an official plugin that adds support for almost any language, framework or technology used today, or for third-party plugins.

Is IntelliJ compatible with Mac?

IntelliJ IDEA is a cross-platform IDE that provides consistent experience on the Windows, macOS, and Linux operating systems.

How do I run IntelliJ on Mac?

Run the IntelliJ IDEA app from the Applications directory, Launchpad, or Spotlight. Run the idea.sh shell script in the installation directory under bin. You can also use the desktop shortcut, if it was created during installation.

Where is IntelliJ installation path?

If you installed IntelliJ IDEA via the Toolbox App, the plugins directory will be located in the installation directory. To find the installation directory, open the settings of the IDE instance in the Toolbox App, expand Configuration and look for the Install location field.


2 Answers

I can confirm that using Idea 12.0.1 Ultimate (Build Id 123.94) and Xcode 4.5.1 on OSX this simply works. At the dialog for "Choose Cpp SDK" I wrote /usr/bin/gcc (which was what "which gcc" returns on my system. I used version 0.8 build 4.

like image 200
Thomas N Avatar answered Sep 30 '22 02:09

Thomas N


There is a nice C++/Obj-C IDE from JetBrains for development on OSX - AppCode. Not so long ago it updated to 2.0 version. Most IDEA functionality and plugins are supported.

like image 32
farwayer Avatar answered Sep 30 '22 02:09

farwayer