PDA

View Full Version : Calling gcc from inside an objC app


Joseph Duchesne
2004.08.05, 12:59 PM
Hi, I'm wondering if/how I can call GCC with some simple arguements from within my ObjC/Cocoa app. Is there a simple command to do this? If so how would I use it?

Josh
2004.08.05, 01:40 PM
You could use either system(const char *string); or (the more Cocoa way), NSTask.

Joseph Duchesne
2004.08.05, 02:16 PM
thanks, that was exactly what I needed.