|
socket problems with cc compile options???
Hi there, a newbie as far as compiling c.
I have a problem, I've ported a fairly simple perl socket program over to c.
I compiled it as follows
cc simplesocket.c -lsocket -lnsl
compiles great, no errors.
When I launch it from the command line, it works great!!!!
However, if I launch this program from within another socket program
( a perl socket server (listener) program, basically doing an exec of this compiled program ).
The server program has no problems launching any other kinds of socket apps.
Is there some option I need to tell the compiler that will tell the program it will be running beneath another socket program????
Once again a newbie, any help appreciated.
|