I am new to programming and am trying to use my powerbook at school, which of course is dominated by pc's. I have written very simple code in C using vi in terminal, but i dont know how to compile or run my code. Thanks for the help!!
peterparker said:If you have gcc installed:
gcc myfile.c -o myfile
jackfrost9p said:where can i find the xcode
peterparker said:I don't have my disks with me at the moment , but I think xcode is on the Tiger disk. If not http://developer.apple.com/tools/xcode/index.html
jackfrost9p said:well i dont have my disk and i am not a developer, is there any other way to do it. Thanks alot you have been very helpful!
Actually, you don't have to be a programmer by proffession to download x-code. I know I am not, I just gave some information and they let me download X-Code.jackfrost9p said:well i dont have my disk and i am not a developer, is there any other way to do it. Thanks alot you have been very helpful!
jackfrost9p said:Ok i did all that now how do i run the a.out file.
Thanks
./a.out
gcc test.c -o test
./test
./a.out