Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

C++ compiling problem in terminal..

I have a problem in compiling and executing c programs on my lion in terminal..can anyone help me with it plzz??

MacBook Pro, Mac OS X (10.7)

Posted on Aug 17, 2011 12:13 PM

Reply
5 replies

Aug 17, 2011 9:00 PM in response to Steve Holton

i just wrote a small cpp program on terminal..n then tried compiling it using g++ n it says command not found... 😟 saw some vdo on youtube..abt getting gcc files in terminal..n did as instructed..n even now its not working...its showing some other error..saying..

"

Arjun-Polas-MacBook-Pro:CProg arjunpola$ gcc Binary.c

i686-apple-darwin10-gcc-4.2.1: error trying to exec 'cc1': execvp: No such file or directory"


youtube vdo link: http://www.youtube.com/watch?v=TCK9zrLVx_Y


atleast c programs were executing perfectly in snow leopard..n didnt try cpp..but since i hav upgraded to lion...both c n cpp progs r not executing.. 😟 plzz help..i dont wanna use xcode as it is complited...

C++ compiling problem in terminal..

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.