Re: Compiling OpenShadingLanguage under Windows
Chris Foster <chri...@...>
On Mon, Jan 18, 2010 at 2:51 PM, Wormszer <worm...@...> wrote:
My generated code issues were from VS having not rebuilt the files with theThese are all C99 math functions, not available on windows I guess... I had a look in boost (they implement some of the C99 functions there) but unfortunately these ones aren't implemented yet :-( It may be best to implement versions of these in a compatibility header for platforms which don't have full C99 support yet. (Maybe there is a handy C99 math library under an appropriate license from which the functions can be taken?) and defines like M_E, M_1_PI, M_PI_2 etc.The M_PI etc constants are nonstandard, but may be obtained on windows by #defining _USE_MATH_DEFINES before you include math.h. See if you run into the same thing and then im not sure where to go fromWhen you've got this figured out, it's best to submit a patch and one of the developers will check it in, possibly after a few improvements have been made. AFAIK there's no official guide yet for how to submit patches, but I'm going to take a guess that the procedure won't be too much different from Larry's other open source project, OIIO, apart from the use of codereview.appspot.com for code reviews rather than the mailing list: http://openimageio.org/wiki/index.php?title=Developing_OIIO Cheers, ~Chris. |
|