10-25-05 01:49 AM
In article <dji31c$gi2$1@gist.usc.edu>,
"jessie" <jessiezyt@hotmail.com> wrote:
> I have a Unix C++ socket program that always hang on listen(). nothing
> returned, the program stoped there forever. Is there any option I should
> apply when compile the program use g++?
>
> I use g++ xx.cpp -lnsl -lsocket -o xx
If you want to use a debugger effectively, you should compile with the
-g option.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
[ Post a follow-up to this message ]
|