Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

foges

macrumors newbie
Original poster
May 5, 2009
13
0
Hey,
Is there any way so that xcode automatically shows errors and warnings whilst writing the code (not only at compile time) just like eclipse does? Im coding in C++ btw. I know java and C++ differ in that C++ is a compiled language, so maybe its not possible...
 
It won't do it the same way, but you could turn on 'predictive compiling'. It will compile source files in the background as you are working, and errors will get bubbled up. The catch is that I don't know if it will actually give "as you type" error catching.
 
The big problem with this is that Apple has been using the GCC compiler, and the front-end (the bit that processes the text you type) of GCC is rather heavy and tied to the back-end (the bit that produces processor-specific code). Specifically trying to have the IDE have better access to the front-end is one of the goals of the Clang project (the new front end for the LLVM project). As of 10.5 Clang-LLVM is one of the compiler options (as are GCC-LLVM, and GCC), but not the default one (GCC).

At some point Apple will feel confident enough with Clang to start building XCode around it, and then this sort of thing will be possible. Until then they would have to rebuild the whole GCC preprocessor in order to make it sync up with all of the GCC oddities, in all of the languages, and that is not something Apple has been willing to do (I have seen talks about this).
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.