M
martinbriefcase
Compiling a program using ACE + MSVC++8, got lots of errors and some
are listed as below:
Error 2 error C2894: templates cannot be declared to have 'C'
linkage c:\program files\microsoft visual studio
8\vc\include\iosfwd 39
Error 39 error C2733: second C linkage of overloaded function
'ACE_OS::atoi' not
allowed c:\tmp\ace+tao+ciao\ace_wrappers\ace\os_ns_stdlib.h 79
Error 41 error C2733: second C linkage of overloaded function
'ACE_OS::getenv' not
allowed c:\tmp\ace+tao+ciao\ace_wrappers\ace\os_ns_stdlib.h 116
...
...
When i changed #include <string> to #include <string.h> i got no errors
concerning iosfwd but the rest don't go away.
The config.h of ACE contains the following line:
#define ACE_HAS_STANDARD_CPP_LIBRARY 1
#include "ace/config-win32.h"
The version of ACE is Release,v 4.13 2005/08/05
It can be compiled on Linux/Unix and I suspect there is something wrong
with the installation of ACE. Does anyone has experienced the
same/similar problem before????
are listed as below:
Error 2 error C2894: templates cannot be declared to have 'C'
linkage c:\program files\microsoft visual studio
8\vc\include\iosfwd 39
Error 39 error C2733: second C linkage of overloaded function
'ACE_OS::atoi' not
allowed c:\tmp\ace+tao+ciao\ace_wrappers\ace\os_ns_stdlib.h 79
Error 41 error C2733: second C linkage of overloaded function
'ACE_OS::getenv' not
allowed c:\tmp\ace+tao+ciao\ace_wrappers\ace\os_ns_stdlib.h 116
...
...
When i changed #include <string> to #include <string.h> i got no errors
concerning iosfwd but the rest don't go away.
The config.h of ACE contains the following line:
#define ACE_HAS_STANDARD_CPP_LIBRARY 1
#include "ace/config-win32.h"
The version of ACE is Release,v 4.13 2005/08/05
It can be compiled on Linux/Unix and I suspect there is something wrong
with the installation of ACE. Does anyone has experienced the
same/similar problem before????