[omniORB] Does enums work at all with VC6

Sai-Lai Lo S.Lo@uk.research.att.com
16 Oct 2000 15:15:27 +0100


Hi! 

If you pause to think a bit longer, you may notice that your enum names are
so generic that some platform may define some of them as C macros.

In this case, VC6 has ERROR defined as a macro. Which of cause got
substituted by cpp and cause you a compilation error.


>>>>> Vincent Trussart writes:

> The code generated by "omniidl -bcxx" for this ultra simple IDL 
> won't compile with VC6... should it?


> module util {

>         enum log_level { DEBUG, INFO, ERROR };

>         interface Logger {
>                 void log(in log_level level, in string message);
>         };
> };

> Any hints would be appreciated!


-- 
Sai-Lai Lo                                   S.Lo@uk.research.att.com
AT&T Laboratories Cambridge           WWW:   http://www.uk.research.att.com 
24a Trumpington Street                Tel:   +44 1223 343000
Cambridge CB2 1QA                     Fax:   +44 1223 313542
ENGLAND