This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
g++ and sockets
- To: gcc at gcc dot gnu dot org
- Subject: g++ and sockets
- From: "Neil Curran" <curranneil at hotmail dot com>
- Date: Fri, 12 May 2000 08:15:35 IST
Hi,
I am trying to use the socket.h file in c++ code using g++. Code that
compiles and runs as c code will generate errors as c++ code like:
stest1.cpp: In function `int main()':
stest1.cpp:21:w arning: implicit declaration of function `int bzero(...)'
stest1.cpp:39: warning: implicit declaration of function `int
inet_ntoa(...)'
stest1.cpp:40: warning: implicit declaration of function `int fork(...)'
stest1.cpp:43:w arning: implicit declaration of function `int close(...)'
Could anyone help me get around this?, I am using Solaris 2.6 and gcc 2.8.1
Thanks,
Neil
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com