Hi Victor,

I suppose it depends on which compiler and set of libraries you are using 
whether you need to include erf.c or not in your src/common/CMakeLists.txt file 
or not.  I don't know which compiler NREL is currently using -- I thought it 
was MFC, but I've no idea which version.

I don't think this would cause the error you are getting from xform, which is 
suspicious.  Perhaps you could send me your file in a private message, and I 
could check if there is anything funny in there.

Cheers,
-Greg

P.S.  Be sure to sign up to the radiance-dev mailing list via the interface at 
<https://www.radiance-online.org/community/mailing-lists> so you can post and 
receive responses.

> From: Victor LRG <[email protected]>
> Date: December 22, 2016 3:17:02 AM PST
> 
> Dear all,
> 
> I amtrying to compile Radiance 5R0 for Windows using Cmake 3.7.1 x86 and MVSC 
> 2015 v14 with libtiff 3.8.2 and qt-x86-2.0.4. The compilation finished with 
> no errors (although some 1700 warnings), but when I am trying a simple test I 
> get the following error with ovonv: fatal - (!xform 
> objects/cage_sphere2.rad): bad arguments for polygon "311s1m134f". This 
> object has the following description, which seems right to me:
> 
> cage_sphere polygon 311s1m134f
> 0
> 0
> 9 -0.833925170898 0.506038208008 0.096073600769
>    -0.819481933594 0.473128112793 0.0903565139771
>    -0.853187255859 0.492587890625 0.0980178833008
> 
> In VS I can see the following warnings regarding oconv and xform:
> 
> C4273 'erf': inconsistent dll linkage
> C4273 'erfc': inconsistent dll linkage
> 
> They both refer to rtmath.h file, which I guess they should refer to erf.c as 
> well? Actually, this warning also appears for most projects. I've compiled 
> and used the same package in linux before with no problem.
> 
> Any ideas?
> 
> Thanks
> 
> Victor Lopez-Rioboo Gil
_______________________________________________
Radiance-dev mailing list
[email protected]
https://www.radiance-online.org/mailman/listinfo/radiance-dev

Reply via email to