?
=?iso-8859-1?q?Melqu=EDades?=
I have an old program writed in C language,
This program simply use some general system
call like "select","read","write" etc, to
do network communication. The problem is that
when I change it to C++ fomat and use g++ 2.7.2
with g++lib 2.7.1 in SunOS 4.1.3 to compile the
program, some protype warning error occur.
How to using the old C standard library and system call
in a C++ program, how to include the protype of them?
I list some part of my program had occured error as follows:
server.C:42: aggregate `struct sockaddr_in fsin' has incomplete type and
cannot be initialized
server.C:52: warning: implicit declaration of function `int bzero(...)'
server.C:54: warning: implicit declaration of function `int getdtablesize
(...)'
server.C:56: warning: implicit declaration of function `int bcopy(...)'
server.C:57: warning: implicit declaration of function `int select(...)'
server.C:64: warning: implicit declaration of function `int accept(...)'
Thanks if anyone can solve the problem!!!!
This program simply use some general system
call like "select","read","write" etc, to
do network communication. The problem is that
when I change it to C++ fomat and use g++ 2.7.2
with g++lib 2.7.1 in SunOS 4.1.3 to compile the
program, some protype warning error occur.
How to using the old C standard library and system call
in a C++ program, how to include the protype of them?
I list some part of my program had occured error as follows:
server.C:42: aggregate `struct sockaddr_in fsin' has incomplete type and
cannot be initialized
server.C:52: warning: implicit declaration of function `int bzero(...)'
server.C:54: warning: implicit declaration of function `int getdtablesize
(...)'
server.C:56: warning: implicit declaration of function `int bcopy(...)'
server.C:57: warning: implicit declaration of function `int select(...)'
server.C:64: warning: implicit declaration of function `int accept(...)'
Thanks if anyone can solve the problem!!!!