[Ace-users] TAO: Quoter Example

tcdo tcdo6666 at gmail.com
Mon Oct 8 16:13:34 CDT 2007


    TAO VERSION: 1.6
    ACE VERSION: 5.6

    HOST MACHINE and OPERATING SYSTEM:
        Windows XP SP2

    COMPILER NAME AND VERSION (AND PATCHLEVEL): VC8 (Visual C++ 2005)

    THE $ACE_ROOT/ace/config.h FILE [if you use a link to a platform-
    specific file, simply state which one]: config-win32.h

    THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE [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++)]: N/A

    CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/
default.features
    (used by MPC when you generate your own makefiles):

    AREA/CLASS/EXAMPLE AFFECTED:
         Quoter example

    DOES THE PROBLEM AFFECT:
        COMPILATION? Yes
            config.h contents:

#include "config-win32.h"

    SYNOPSIS:
Can't get the Quoter example to compile in VC8

    DESCRIPTION:
Generation of files from Quoter.idl completes successfully. However,
compilation of Server/Client/etc files fails due to included header
files. Seems like the compiler is having problems with the namespaces.
Not sure why. Any help appreciated. See below for compilation output.

1>------ Build started: Project: Quoter_Server, Configuration: Release
Win32 ------
1>Compiling...
1>server.cpp
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(178) : error C3083: 'CosLifeCycle': the symbol to the left
of a '::' must be a type
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(179) : error C2039: 'LifeCycleObject' : is not a member of
'`global namespace''
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(179) : error C2504: 'LifeCycleObject' : base class
undefined
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(374) : error C3083: 'CosLifeCycle': the symbol to the left
of a '::' must be a type
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(375) : error C2039: 'FactoryFinder' : is not a member of
'`global namespace''
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(375) : error C2504: 'FactoryFinder' : base class undefined
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(466) : error C3083: 'CosLifeCycle': the symbol to the left
of a '::' must be a type
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(467) : error C2039: 'GenericFactory' : is not a member of
'`global namespace''
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(467) : error C2504: 'GenericFactory' : base class undefined
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(558) : error C3083: 'CosLifeCycle': the symbol to the left
of a '::' must be a type
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(559) : error C2039: 'GenericFactory' : is not a member of
'`global namespace''
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(559) : error C2504: 'GenericFactory' : base class undefined
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(704) : error C2653: 'CosLifeCycle' : is not a class or
namespace name
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(705) : error C2065: 'NameValuePair' : undeclared identifier
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(706) : error C2955: 'TAO::unbounded_value_sequence' : use
of class template requires template argument list
1>        ..\..\tao/Unbounded_Value_Sequence_T.h(94) : see declaration
of 'TAO::unbounded_value_sequence'
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(710) : error C2653: 'CosLifeCycle' : is not a class or
namespace name
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(710) : error C2146: syntax error : missing ')' before
identifier 'max'
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(710) : error C2146: syntax error : missing ';' before
identifier 'max'
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(710) : error C2838: 'ULong' : illegal qualified name in
member declaration
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(710) : error C4430: missing type specifier - int assumed.
Note: C++ does not support default-int
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(710) : error C2146: syntax error : missing ';' before
identifier 'length'
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(710) : error C2886: 'CORBA::ULong' : symbol cannot be used
in a member using-declaration
1>        ..\..\tao/Basic_Types.h(57) : see declaration of
'CORBA::ULong'
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(710) : error C4430: missing type specifier - int assumed.
Note: C++ does not support default-int
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(710) : error C2653: 'CosLifeCycle' : is not a class or
namespace name
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(710) : error C2143: syntax error : missing ';' before '*'
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(710) : error C4430: missing type specifier - int assumed.
Note: C++ does not support default-int
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(710) : error C4430: missing type specifier - int assumed.
Note: C++ does not support default-int
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(710) : error C2146: syntax error : missing ';' before
identifier 'release'
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(710) : error C2886: 'CORBA::Boolean' : symbol cannot be
used in a member using-declaration
1>        ..\..\tao/Basic_Types.h(42) : see declaration of
'CORBA::Boolean'
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(710) : error C2059: syntax error : ')'
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(710) : error C4430: missing type specifier - int assumed.
Note: C++ does not support default-int
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(710) : error C2864:
'Stock::Criteria_Evaluator::SeqNamedValuePair::release' : only static
const integral data members can be initialized within a class
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(730) : error C2653: 'CosLifeCycle' : is not a class or
namespace name
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(730) : error C2146: syntax error : missing ';' before
identifier 'Criteria'
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(730) : error C4430: missing type specifier - int assumed.
Note: C++ does not support default-int
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(730) : error C2602: 'Stock::Criteria_Evaluator::Criteria'
is not a member of a base class of 'Stock::Criteria_Evaluator'
1>        c:\development files\libraries\ace_wrappers\tao\examples
\quoter\QuoterC.h(730) : see declaration of
'Stock::Criteria_Evaluator::Criteria'
1>        c:\development files\libraries\ace_wrappers\tao\examples
\quoter\QuoterC.h(659) : see declaration of
'Stock::Criteria_Evaluator'
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(730) : error C2868: 'Stock::Criteria_Evaluator::Criteria' :
illegal syntax for using-declaration; expected qualified-name
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(731) : error C2653: 'CosLifeCycle' : is not a class or
namespace name
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(731) : error C2146: syntax error : missing ';' before
identifier 'Criteria_var'
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(731) : error C4430: missing type specifier - int assumed.
Note: C++ does not support default-int
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(731) : error C2602:
'Stock::Criteria_Evaluator::Criteria_var' is not a member of a base
class of 'Stock::Criteria_Evaluator'
1>        c:\development files\libraries\ace_wrappers\tao\examples
\quoter\QuoterC.h(731) : see declaration of
'Stock::Criteria_Evaluator::Criteria_var'
1>        c:\development files\libraries\ace_wrappers\tao\examples
\quoter\QuoterC.h(659) : see declaration of
'Stock::Criteria_Evaluator'
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(731) : error C2868:
'Stock::Criteria_Evaluator::Criteria_var' : illegal syntax for using-
declaration; expected qualified-name
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(732) : error C2653: 'CosLifeCycle' : is not a class or
namespace name
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(732) : error C2146: syntax error : missing ';' before
identifier 'Criteria_out'
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(732) : error C4430: missing type specifier - int assumed.
Note: C++ does not support default-int
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(732) : error C2602:
'Stock::Criteria_Evaluator::Criteria_out' is not a member of a base
class of 'Stock::Criteria_Evaluator'
1>        c:\development files\libraries\ace_wrappers\tao\examples
\quoter\QuoterC.h(732) : see declaration of
'Stock::Criteria_Evaluator::Criteria_out'
1>        c:\development files\libraries\ace_wrappers\tao\examples
\quoter\QuoterC.h(659) : see declaration of
'Stock::Criteria_Evaluator'
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.h(732) : error C2868:
'Stock::Criteria_Evaluator::Criteria_out' : illegal syntax for using-
declaration; expected qualified-name
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.inl(44) : error C2614: 'Stock::Quoter' : illegal member
initialization: 'Object' is not a base or member
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.inl(55) : error C2614: 'Stock::Quoter' : illegal member
initialization: 'Object' is not a base or member
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.inl(106) : error C2614: 'Stock::Quoter_Factory_Finder' :
illegal member initialization: 'Object' is not a base or member
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.inl(117) : error C2614: 'Stock::Quoter_Factory_Finder' :
illegal member initialization: 'Object' is not a base or member
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.inl(137) : error C2614: 'Stock::Quoter_Generic_Factory' :
illegal member initialization: 'Object' is not a base or member
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.inl(148) : error C2614: 'Stock::Quoter_Generic_Factory' :
illegal member initialization: 'Object' is not a base or member
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.inl(168) : error C2614: 'Stock::Quoter_Life_Cycle_Service' :
illegal member initialization: 'Object' is not a base or member
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterC.inl(179) : error C2614: 'Stock::Quoter_Life_Cycle_Service' :
illegal member initialization: 'Object' is not a base or member
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.h(60) : error C2653: 'POA_CosLifeCycle' : is not a class or
namespace name
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.h(61) : error C2504: 'LifeCycleObject' : base class undefined
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.h(236) : error C2653: 'POA_CosLifeCycle' : is not a class or
namespace name
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.h(237) : error C2504: 'FactoryFinder' : base class undefined
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.h(307) : error C2653: 'POA_CosLifeCycle' : is not a class or
namespace name
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.h(308) : error C2504: 'GenericFactory' : base class undefined
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.h(388) : error C2653: 'POA_CosLifeCycle' : is not a class or
namespace name
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.h(389) : error C2504: 'GenericFactory' : base class undefined
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.inl(40) : error C2653: 'POA_CosLifeCycle' : is not a class or
namespace name
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.inl(40) : error C2065: 'LifeCycleObject' : undeclared
identifier
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.inl(40) : error C2059: syntax error : 'const'
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.inl(41) : error C2653: 'POA_CosLifeCycle' : is not a class or
namespace name
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.inl(45) : error C2065: 'impl' : undeclared identifier
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.inl(59) : error C2653: 'POA_CosLifeCycle' : is not a class or
namespace name
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.inl(59) : error C2059: syntax error : 'const'
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.inl(60) : error C2653: 'POA_CosLifeCycle' : is not a class or
namespace name
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.inl(78) : error C2653: 'POA_CosLifeCycle' : is not a class or
namespace name
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.inl(78) : error C2059: syntax error : 'const'
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.inl(79) : error C2653: 'POA_CosLifeCycle' : is not a class or
namespace name
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.inl(97) : error C2653: 'POA_CosLifeCycle' : is not a class or
namespace name
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.inl(97) : error C2065: 'FactoryFinder' : undeclared
identifier
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.inl(97) : error C2059: syntax error : 'const'
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.inl(98) : error C2653: 'POA_CosLifeCycle' : is not a class or
namespace name
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.inl(116) : error C2653: 'POA_CosLifeCycle' : is not a class
or namespace name
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.inl(116) : error C2065: 'GenericFactory' : undeclared
identifier
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.inl(116) : error C2059: syntax error : 'const'
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.inl(117) : error C2653: 'POA_CosLifeCycle' : is not a class
or namespace name
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.inl(135) : error C2653: 'POA_CosLifeCycle' : is not a class
or namespace name
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.inl(135) : error C2059: syntax error : 'const'
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.inl(136) : error C2653: 'POA_CosLifeCycle' : is not a class
or namespace name
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.inl(154) : error C2653: 'POA_CosLifeCycle' : is not a class
or namespace name
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.inl(154) : error C2059: syntax error : 'const'
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.inl(155) : error C2653: 'POA_CosLifeCycle' : is not a class
or namespace name
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.inl(173) : error C2653: 'POA_CosLifeCycle' : is not a class
or namespace name
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.inl(173) : error C2059: syntax error : 'const'
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\QuoterS.inl(174) : error C2653: 'POA_CosLifeCycle' : is not a class
or namespace name
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\Quoter_i.h(51) : error C2653: 'CosLifeCycle' : is not a class or
namespace name
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\Quoter_i.h(51) : error C2146: syntax error : missing ';' before
identifier 'copy'
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\Quoter_i.h(51) : error C2433: 'Quoter_i::LifeCycleObject_ptr' :
'virtual' not permitted on data declarations
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\Quoter_i.h(51) : error C4430: missing type specifier - int assumed.
Note: C++ does not support default-int
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\Quoter_i.h(51) : error C2653: 'CosLifeCycle' : is not a class or
namespace name
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\Quoter_i.h(51) : error C2061: syntax error : identifier
'FactoryFinder_ptr'
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\Quoter_i.h(52) : error C4430: missing type specifier - int assumed.
Note: C++ does not support default-int
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\Quoter_i.h(52) : warning C4183: 'copy': missing return type; assumed
to be a member function returning 'int'
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\Quoter_i.h(55) : error C2653: 'CosLifeCycle' : is not a class or
namespace name
1>c:\development files\libraries\ace_wrappers\tao\examples\quoter
\Quoter_i.h(55) : error C2061: syntax error : identifier
'FactoryFinder_ptr'
1>QuoterS.cpp
1>Build log was saved at "file://c:\Development Files\Libraries
\ACE_wrappers\TAO\examples\Quoter\Release
\Quoter_Server_vc8\I386\BuildLog.htm"
1>Quoter_Server - 100 error(s), 1 warning(s)



More information about the Ace-users mailing list