f



Errors compiling TAO/ACE 2.2a in Visual Studio 2010

    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 Ho=
st machine

    COMPILER NAME AND VERSION (AND PATCHLEVEL): Visal Studio 2010 C++ compi=
ler

    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"=
=20


    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.f=
eatures. 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 vario=
us 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 applica=
tion code in Visual Studio 2010.

    DESCRIPTION:
I have a legacy WIN32 application which was built in C++ and originally dev=
eloped with VC6. It used TAO/ACE 1.2a framework. I'm trying to migrate it t=
o 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 exce=
l-sheet containing error details to post.. I'll see if there is any facilit=
y but for now I'm providing first 10 errors below:

Error	9	error C2143: syntax error : missing ';' before 'namespace'	d:\vs201=
0 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	3=
6	1
Error	11	error C2086: 'int ACE_BEGIN_VERSIONED_NAMESPACE_DECL' : redefiniti=
on	d:\vs2010 workspace\ace_wrappers\ace\flag_manip.h	36	1
Error	14	error C2143: syntax error : missing ';' before 'namespace'	d:\vs20=
10 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	3=
6	1
Error	16	error C2086: 'int ACE_BEGIN_VERSIONED_NAMESPACE_DECL' : redefiniti=
on	d:\vs2010 workspace\ace_wrappers\ace\flag_manip.h	36	1
Error	17	error C2065: 'ACE_HANDLE' : undeclared identifier	d:\vs2010 worksp=
ace\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 a=
llowed	d:\vs2010 workspace\ace_wrappers\ace\flag_manip.h	40	1
Error	20	error C2059: syntax error : ')'	d:\vs2010 workspace\ace_wrappers\a=
ce\flag_manip.h	41	1


Last two numbers are line # and column # in the respective file. I would ap=
preciate 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 ]
0
koradesusmita
5/24/2016 12:57:35 AM
comp.soft-sys.ace 20326 articles. 1 followers. marlow.andrew (167) is leader. Post Follow

0 Replies
448 Views

Similar Articles

[PageSpeed] 53

Reply: