DOCGroup / ACE_TAO

ACE and TAO
https://www.dre.vanderbilt.edu/~schmidt/TAO.html
698 stars 374 forks source link

".\CosNotification.idl", line 59: spelling differs from IDL keyword only in case: "EventType" #2161

Closed xpston008 closed 10 months ago

xpston008 commented 10 months ago

ace_tao

..\bin\tao_idl.exe
TAO_IDL_FE, version 2.5.9 (Based on Sun IDL FE, version 1.3.0)
TAO_IDL_BE, version 2.5.9

1、I am a client that needs to access the server 2、In the manufacturer-provided idl file, EventType is defined in omg/CosNotification.idl. The compile command is "... \bin\tao_idl.exe CosNotifyFilter.idl-o.\src\".Error ".\CosNotification.idl", line 59: spelling differs from IDL keyword only in case: "EventType" I changed EventType to _EventType in omg/CosNotification.idl, and it compiled normally。As follows:

struct EventType
   {
      string domain_name;
      string type_name;
   };

struct _EventType
   {
      string domain_name;
      string type_name;
   };

Question 1: if EventType is changed to _EventType, can the server recognize and transfer data between client and server normally? Question 2: idl contains "ace_tao comes with omg idls", e.g #include ".. / orbsvcs orbsvcs/CosNotifyChannelAdmin idl". But I am not sure whether the client accesses the server properly using tao's omg?

Sorry, I'm writing code right now and don't have a debug environment. So I hope I can get an answer. Thanks! @mitza-oci @jwillemsen