I was really having a hard time with Xcode lately, specifically how its C++ code-completion leaves much to be desired especially if you have a very bad memory. I find myself constantly painfully looking through the header files to find the exact name/case of a function or property.
So I decided to try and see If i could get up and running with Cinder in Eclipse instead, it wasn’t too bad either !!! Just a couple of issues getting the linking right, but that was about it.
Download / Github
Xcode is a great IDE, however it is not great at C++ editing
It provides only very barebones syntax highlighting, even more barebones code completion, and no edit-time error checking.
Cinder is a great library, but it’s very vast – Without code-completion I was very lost/ nearly all the time poking through the header files and opening the .cpp files in other editors so I could learn it more thouroughly.
(Re)-Enter EclipseIDE for C++
This project is presented as is for anyone else who would like to use a C++ editor on osx that is actually aware of your classes.
From what I’ve used it so far, it is much better – but compile times are a little slower, however the time you save while editing is well worth it imo.
Usage
- http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/heliossr2
- Download this project
- Import into eclipse workspace (select import existing project in the ‘general’ drop down)
- In terminal browse to the projects path and create a symbolic link named ‘CINDER_PATH_LINK’ to where cinder is located
- “ln -s foo/bar CINDER_PATH_LINK”
- Where ‘foo/bar’ is the path to Cinder such as ‘~/GIT/LIBRARY/CINDER’
- [Optional] – RightClick project root, select properties
- Select C/C++ Build
- Select Settings
- Replace ‘g++’ with ‘clang++’ and ‘gcc’ with ‘clang’ for the:
- MacOS X C++ Linker
- GCC C++ Compiler
- GCC C Compiler
- [Optional] Do the same for the discovery tab
- After hitting, apply/ok and closing that window select Project->Build All and project should build successfully.