I want to write an own c/c++ IDE with syntax-check etc. And of course I need a compiler-functionality. For this I want to use gcc, I think it is a good option, isn't it? The IDE should not call a gcc-binary to compile, it should include the gcc source code, because after compiling the IDE I want a stay alone executable.

So my question: Is there sth like a tutorial or a good hint how to realize this?

btw it's for Mac, I'll write the IDE with XCode

Thank you!