R
rherring
Hello,
I have some C++ code that builds against 2 headers files that contain
the same function name declaration (gethostname).
The header files are not directly included. They are included via
other header files.
How can I resovle this error?
The error (GCC 3.3.2 on Solaris 9):
/usr/include/unistd.h:278: error: declaration of C function `int
gethostname(char*, unsigned int)' conflicts with
.../../../webserver_api/apache/SunOS/include/ap_config.h:189: error:
previous
declaration `int gethostname(char*, int)' here
I have some C++ code that builds against 2 headers files that contain
the same function name declaration (gethostname).
The header files are not directly included. They are included via
other header files.
How can I resovle this error?
The error (GCC 3.3.2 on Solaris 9):
/usr/include/unistd.h:278: error: declaration of C function `int
gethostname(char*, unsigned int)' conflicts with
.../../../webserver_api/apache/SunOS/include/ap_config.h:189: error:
previous
declaration `int gethostname(char*, int)' here