Re: Compiling OpenShadingLanguage under Windows


Blair Zajac <bl...@...>
 

On 01/20/2010 03:11 PM, Chris Foster wrote:
On Thu, Jan 21, 2010 at 7:37 AM, Wormszer<worm...@...> wrote:
I have a solution but its not very elegant. The compiler is hard coded to
use linux CPP preprocessor. /usr/bin/CPP
Over at aqsis, we use the C preprecessor from boost called boost.wave. It's
been a good choice for us since it runs anywhere with a capable C++ compiler.

The main annoyance with wave is that it causes the compiler to issue truly
horrendous error messages if you get things wrong (the wave internals make
heavy use of template metaprogramming).
There's mcpp which is designed to be an embeddable C-preprocessor.

Ice, which we use at Sony Imageworks for all our middle-tier systems, uses mcpp for it's own internal IDL type language, so I would recommend that.

Regards,
Blair

Join {osl-dev@lists.aswf.io to automatically receive all group messages.