How to Run C program through xcode command line tools

preview_player
Показать описание
Run C program through xcode command line tools
Рекомендации по теме
Комментарии
Автор

gcc -o test test.c gave me errorlike:

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)


can you help?

satishmavani
Автор

I am not confused why you change the name from the main to test?

satishmavani
Автор

Hello, Thanks for the video! just wanted to ask  a question. everything works really well until I change my program, then the command line on terminal still runs my old code not the updated one, Do you know how i can fix this?
Thanks in advance

pinolikescheeseidont
Автор

ah i don't use mac but thanks anyway

patrickchan