Compiling...
ACE.cpp
..\ace/OS_main.h(151) : error C2143: syntax error : missing ';' before '<class-head>'
..\ace/OS_main.h(151) : error C2501: 'ACE_BEGIN_VERSIONED_NAMESPACE_DECL' : missing storage-class or type specifiers
..\ace/OS_main.h(151) : fatal error C1004: unexpected end of file found
ACE_crc32.cpp
..\ace/OS_main.h(151) : error C2143: syntax error : missing ';' before '<class-head>'
..\ace/OS_main.h(151) : error C2501: 'ACE_BEGIN_VERSIONED_NAMESPACE_DECL' : missing storage-class or type specifiers
..\ace/OS_main.h(151) : fatal error C1004: unexpected end of file found
ACE_crc_ccitt.cpp
..\ace/OS_main.h(151) : error C2143: syntax error : missing ';' before '<class-head>'
..\ace/OS_main.h(151) : error C2501: 'ACE_BEGIN_VERSIONED_NAMESPACE_DECL' : missing storage-class or type specifiers
..\ace/OS_main.h(151) : fatal error C1004: unexpected end of file found

解决方案 »

  1.   

    我用VC6 VC7 BCB6 BDS2006 都编译过ACE源码,照它附带的文档一步步做,都很顺利.
      

  2.   

    我的步骤1 下载 .zip2  解压,d:\ACE_wrappers3  设置 ACE_ROOT4  在d:\ACE_wrappers\ace\ 下见一个config.h文件,加入
    #define   ACE_HAS_STANDARD_CPP_LIBRARY   1
    #include "ace/config-win32.h"
    4  用vc打开  d:\ACE_wrappers\ace\ace.dsw5  设置option下的目录6  编译然后就 error C2501: 'ACE_BEGIN_VERSIONED_NAMESPACE_DECL' : missing storage-class or type specifiers
    了我郁闷。
      

  3.   

    http://community.csdn.net/Expert/topic/4841/4841452.xml?temp=.472973
    接分 ,谢谢:)