[omniORB] RE: Unresolved token problem

Perham, David A. (Mission Systems) david.perham at ngc.com
Wed Apr 4 10:31:56 BST 2007


Howdy:

Upon further study I've learned that this problem only occurs when the
structure parameter contains string or sequence members, even if they
are bound.
Is there a workaround for this?

I am building a Forms project in Visual C++ V.7 in a .NET
environment--is that not supported by omniorb?


> I forgot to add that I could link if I changed the "out" parameters to
> "inout," and adjust the implementation class appropiately.
> 
> 
> Howdy:
> 
> I have the following methods defined in IDL:
> 
> typedef struct EntityTypeAttributesData
> {
>    string<100>	TypeName ;
>    short		TypeRange ;
>    short		TypeCount ;
> } EntityWeaponTypeAttributesDataType ;
> 
> typedef struct EntityAttributesData
> {
>    string<100> EntityName ;
>    long EntityCount ;
> } EntityAttributesDataType ;
> 
> boolean RequestEntityTypeAttributes( in short ClassHandle, out
> EntityTypeAttributesDataType TypeAttributes ) ;
> 
> boolean RequestEntityAttributes( in long EntityId, out
> EntityAttributesDataType EntityAttributes ) ;
> 
> 
> In the Implementation class I have the following method declarations
> (also the bodies) :
> 
> 
> bool RequestEntityTypeAttributes( short ClassHandle,
> EntityTypeAttributesDataType_out TypeAttributes ) ; 
> 
> bool RequestEntityAttributes(	long EntityId,
> EntityAttributesDataType_out EntityAttributes ) ;
> 
> Yet when I attempt to build, I get the following link errors:
> 
> LINK : error LNK2020: unresolved token (0A00002C)
> ObjectServerImpl.RequestEntityWeaponAttributes
> LINK : error LNK2020: unresolved token (0A00002D)
> ObjectServerImpl.RequestEntityWeaponTypeAttributes
> LINK : fatal error LNK1120: 2 unresolved externals
> 
> 
> What am I missing?
> 
> Thanks,
> Dave P
> 
> 
> 
> 
> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20070404/94ae911a/attachment-0001.htm


More information about the omniORB-list mailing list