[omniORB] Still trying to resolve linkerunresolved tokens issue
Perham, David A. (Mission Systems)
david.perham at ngc.com
Thu Apr 12 15:34:43 BST 2007
Howdy:
I posted a few days ago about a problem I am having with out parameters
of structure objects.
Given the following definitions in IDL:
enum ENTITY_TYPE_ENUM
{
PLATFORM_TYPE,
AIRCRAFT_TYPE,
BIOLOGIC_TYPE,
CLOUD_TYPE,
DECOY_TYPE,
GEOPOINT_TYPE,
UNKNOWN_TYPE
} ;
typedef struct EntitySummary
{
long EntityId ;
string<100> EntityName ;
ENTITY_TYPE_ENUM EntityType ;
short EntityXPosition ;
short EntityYPosition ;
} EntitySummaryType ;
boolean RequestEntitySummary( in long EntityId,
in ENTITY_TYPE_ENUM EntityType,
out EntitySummaryType
EntitySummary ) ;
The follwowing method is generated by the idl compiler:
virtual CORBA::Boolean RequestEntitySummary(CORBA::Long EntityId,
EntityInterface::ENTITY_TYPE_ENUM EntityType,
EntityInterface::EntitySummaryType_out EntitySummary) = 0;
In the Implementation code I have defined:
bool RequestEntitySummary( long EntityId,
EntityInterface::ENTITY_TYPE_ENUM
EntityType,
EntityInterface::EntitySummaryType_out EntitySummary )
{
...
return true ;
}
This code compiles, however I get the following link errors:
LINK : error LNK2020: unresolved token (0A0000E3)
?RequestEntitySummary at ObjectServerImpl@@
$$FUAE_NJW4ENTITY_TYPE_ENUM at EntityInterface@@V?
$_CORBA_ConstrType_Variable_OUT_arg at UEntitySummary@EntityInterface@@V?
$_CORBA_ConstrType_Variable_Var at UEntitySummary@EntityInterface@@@@@@@Z
LINK : fatal error LNK1120: 1 unresolved externals
I am not seeing the problem here--any ideas?
Thanks,
Dave P
More information about the omniORB-list
mailing list