• Errors compiling TAO/ACE 2.2a in Visual Studio 2010

    From koradesusmita@gmail.com@21:1/5 to All on Mon May 23 17:57:35 2016
    ACE VERSION: 6.2a

    HOST MACHINE and OPERATING SYSTEM: Windows 7 Professional Service Pack 1

    TARGET MACHINE and OPERATING SYSTEM, if different from HOST: Same as Host machine

    COMPILER NAME AND VERSION (AND PATCHLEVEL): Visal Studio 2010 C++ compiler

    CONTENTS OF $ACE_ROOT/ace/config.h [if you use a link to a platform-
    specific file, simply state which one]: #include "ace/config-win32.h"


    CONTENTS OF $ACE_ROOT/include/makeinclude/platform_macros.GNU [if you
    use a link to a platform-specific file, simply state which one
    (unless this isn't used in this case, e.g., with Microsoft Visual
    C++)]: Didn't find platform_macros.GNU at $ACE_ROOT/include/makeinclude.

    CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features
    (used by MPC when you generate your own makefiles): Not using default.features. There is no such file at $ACE_ROOT/bin/MakeProjectCreator/config/

    LEVEL OF URGENCY (LOW, MEDIUM, or HIGH): HIGH

    AREA/CLASS/EXAMPLE AFFECTED: I have total 1811 compiler errors in various class files.
    [What example failed? What module failed to compile?]

    DOES THE PROBLEM AFFECT: COMPILATION
    COMPILATION?
    LINKING?
    On Unix systems, did you run make realclean first?
    EXECUTION?
    OTHER (please specify)?
    [Please indicate whether ACE, your application, or both are affected.]

    SYNOPSIS:
    I'm getting 1811 compiler errors in TAO/ACE 2.2a while compiling my application code in Visual Studio 2010.

    DESCRIPTION:
    I have a legacy WIN32 application which was built in C++ and originally developed with VC6. It used TAO/ACE 1.2a framework. I'm trying to migrate it to Visual Studio 2010 therefore I'm in process of upgrading TAO/ACE 2.2a. I've created config.h file in $
    ACE_ROOT/ace directory as instructed but still I'm getting 1811 compilation errors. I'm not sure if I can attach the excel-sheet containing error details to post.. I'll see if there is any facility but for now I'm providing first 10 errors below:

    Error 9 error C2143: syntax error : missing ';' before 'namespace' d:\vs2010 workspace\ace_wrappers\ace\flag_manip.h 36 1
    Error 10 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\vs2010 workspace\ace_wrappers\ace\flag_manip.h 36 1
    Error 11 error C2086: 'int ACE_BEGIN_VERSIONED_NAMESPACE_DECL' : redefinition d:\vs2010 workspace\ace_wrappers\ace\flag_manip.h 36 1
    Error 14 error C2143: syntax error : missing ';' before 'namespace' d:\vs2010 workspace\ace_wrappers\ace\flag_manip.h 36 1
    Error 15 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\vs2010 workspace\ace_wrappers\ace\flag_manip.h 36 1
    Error 16 error C2086: 'int ACE_BEGIN_VERSIONED_NAMESPACE_DECL' : redefinition d:\vs2010 workspace\ace_wrappers\ace\flag_manip.h 36 1
    Error 17 error C2065: 'ACE_HANDLE' : undeclared identifier d:\vs2010 workspace\ace_wrappers\ace\flag_manip.h 40 1
    Error 18 error C2146: syntax error : missing ')' before identifier 'handle' d:\vs2010 workspace\ace_wrappers\ace\flag_manip.h 40 1
    Error 19 error C2491: 'ACE::set_flags' : definition of dllimport data not allowed d:\vs2010 workspace\ace_wrappers\ace\flag_manip.h 40 1
    Error 20 error C2059: syntax error : ')' d:\vs2010 workspace\ace_wrappers\ace\flag_manip.h 41 1


    Last two numbers are line # and column # in the respective file. I would appreciate any help to solve these errors. Thank you.

    REPEAT BY:
    [What you did to get the error; include test program or session
    transcript if at all possible. ]

    SAMPLE FIX/WORKAROUND:
    [If available ]

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)