Compiling a program with gcc on Solaris (I think)
I'm here at school working on a program for a networking class and am trying to remotely compile my program on a Sun machine. I'm not sure of the OS (SunOS 5.8 maybe?) so unless anyone has an idea as to how to check for that sort of a thing I cant help you. Anyway, I'm trying to compile this program and when I run gcc -o whatever whatever.c I get a nasty error which looks something like this:
$gcc -o whatever whatever.c
Undefined first referenced
symbol in file
accept " "
bind " "
inet_ntoa " "
getsockname " "
listen " "
ld: fatal: Symbol referencing errors. No output written to server
collect2: ld returned 1 exit status
So there it is. The program compiles cleanly on a PC running slackware and one running Mandrake so what is the problem. Oh yeah, the prompt is:
which would indicate that I was using bash on the Sun system.
Any help would be greatly appreciated.