[omniORB] #pragma working on windows?

Stefan Seefeld seefelds@MAGELLAN.UMontreal.CA
Tue, 04 Apr 2000 13:01:40 -0400


Sai-Lai Lo wrote:
> 
> Devin,
> 
> I run your sample through 2.7.1 and the output is fine, i.e. the repository
> id is what one expected "IDL:com.visonael/testme/a".
> 
> omniORB never prepends "omg.org" unless it is told to do so by a prefix
> "omg.org" pragma.
> 
> My guess is that your original IDL has included some CORBA services IDL
> which would have the pragma defined and you do not reset the prefix by
> 
> #pragma prefix "com.visionael"
> 
> after the include.
> 
> You can see omniidl2 is doing the right thing if you look into the
> xDynSK.cpp file. The repository IDs are all there.

it should be noted however that resetting the prefix is only needed to
work around a bug in omniidl2. The prefix should only apply to the scope
it was defined in (i.e. file scope in particular). 

Regards,	Stefan
_______________________________________________________              
              
Stefan Seefeld
Departement de Physique
Universite de Montreal
email: seefelds@magellan.umontreal.ca

_______________________________________________________

      ...ich hab' noch einen Koffer in Berlin...