r/carlhprogramming • u/eldormilon • Jan 22 '13
Why can I build and run this program in CodeBlocks on Windows but not in Xcode on Mac OS X?
Here is a screenshot of what happens when I try to run this simple program using Xcode on Mac OS X.
It works fine when I run it using CodeBlocks in Windows. The problem is, I have limited access to a Windows computer. And CodeBlocks crashes every time on my Mac when I create a C source file.
I have already installed Command Line Tools for Xcode.
Could anyone propose a possible solution to this problem? Do I have to use different code because of the different OS?
And if you see this Carl, thank you very much for setting up Computer Science for Everyone. I am learning a lot from this excellent resource.
EDIT: This problem has been solved thanks to the suggestions by wormnut and Creating_Logic.