[omniORB] IDL compiler SOLARIS -- LINUX

Brecht Vermeulen Brecht.Vermeulen@rug.ac.be
Sat, 6 Mar 1999 20:16:45 +0100 (MET)


> > Your idl file has this:
> >
> > -- file inettla_tcpip.idl ---
> >
> > #include "inetla.idl"
> >
> > .....
> >
> > Somehow your inettla.idl does not have a newline at the end of file.
> > If you add the newline inettla_tcpip.idl compiles OK on Solaris.
> >
> > Don't ask me why the lack of a newline at the end of file is causing the
> > problem. I suspect there is a bug in the solaris scanf library.
> 
> The C standard (and hence C preprocessor) requires that each source file
> must end with a newline.  It has nothing to do with scanf.
> 

Yes, I believe this, but there is still something strange then, the IDL
files (*exactly* the same) compile perfect on Linux with omniORB and on
Solaris with Orbix 2.2 MT. 
So there must be something else too, or maybe Orbix uses for its IDL
compiling another preprocessor and the Linux preprocessor doesn't have
this problem, I don't know...

Thanx to all the helping people.
Brecht Vermeulen

Engineering student