OK, so this is the most basic of basics, but I'm trying to defend OSX's honor here. My girlfriend works on Redhat Linux and I asked her to write some really simple C so I could show her that she could do her coding (she's an astronomy grad student and all the stuff she writes relates to that).
For starters when she typed emacs she didn't get what she expected. I saw her do it on her Linux box and this window popped up that allowed her to select menus and such with the mouse. No such thing in the terminal. What was that?
Secondly, what she wrote couldn't be compiled on my OSX system. It's possible she wrote it wrong, she's not really a programmer by trade, but it seemed pretty basic. When I try to cc this I get:
/usr/bin/ld: /usr/lib/libSystem.dylib load command 6 unknown cmd field
The code is as follows:
#include ,stdlib.h. (If I actually put in the brackets the bulletin board removes the text thinking it's HTML. Imagine I had pressed shift.)
int main ()
{
printf("\nHello, world.");
return;
}
What's wrong here? I thought there should be no differences between Linux and OSX when it comes to writing in C. If there are my arguments for her moving to OSX are null and void.
For starters when she typed emacs she didn't get what she expected. I saw her do it on her Linux box and this window popped up that allowed her to select menus and such with the mouse. No such thing in the terminal. What was that?
Secondly, what she wrote couldn't be compiled on my OSX system. It's possible she wrote it wrong, she's not really a programmer by trade, but it seemed pretty basic. When I try to cc this I get:
/usr/bin/ld: /usr/lib/libSystem.dylib load command 6 unknown cmd field
The code is as follows:
#include ,stdlib.h. (If I actually put in the brackets the bulletin board removes the text thinking it's HTML. Imagine I had pressed shift.)
int main ()
{
printf("\nHello, world.");
return;
}
What's wrong here? I thought there should be no differences between Linux and OSX when it comes to writing in C. If there are my arguments for her moving to OSX are null and void.