Gendaylit fails to compile with the following error:
1>..\..\..\src\gen\gendaylit.c(186): error C2065: 'M_PI' : undeclared identifier
To use Math Constants such as M_PI in Visual Studio you need to define _USE_MATH_DEFINES -> http://msdn.microsoft.com/en-us/library/4hwaceh6.aspx
I added it to the pre-processor definitions in the project settings for gendaylit.c & it builds without error but you could add it in the source itself.
This is using the latest "combined" code from the repository at http://public.kitware.com/gitweb?p=radiance.git
[IES]<http://www.iesve.com/>
Palbinder Sandher
Software Platform Engineer
T:
+44 (0) 141 945 8500
F:
+44 (0) 141 945 8501
http://www.iesve.com<http://www.iesve.com/>
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456
Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP
Email Disclaimer<http://www.iesve.com/disclaimer.html>
thanks Greg and Pally! And sorry that we missed that. we definitely add this to our version.
best,
Jan
···
On 08/14/2013 07:13 PM, Gregory J. Ward wrote:
My fault. For Windows, there needs to be a line:
#define _USE_MATH_DEFINES
before including math.h. Jan and Wendelin -- please make this addition to your version of gendaylit.c so the problem doesn't come back. (I had fixed this before the new check-in.)
Thanks for the heads-up, Pally!
-Greg
*From: *Pally Sandher <[email protected] <mailto:[email protected]>>
*Date: *August 14, 2013 10:51:47 AM MDT
*
Gendaylit fails to compile with the following error:
1>..\..\..\src\gen\gendaylit.c(186): error C2065: 'M_PI' : undeclared identifier
To use Math Constants such as M_PI in Visual Studio you need to define _USE_MATH_DEFINES -> http://msdn.microsoft.com/en-us/library/4hwaceh6.aspx
I added it to the pre-processor definitions in the project settings for gendaylit.c & it builds without error but you could add it in the source itself.
This is using the latest “combined” code from the repository at http://public.kitware.com/gitweb?p=radiance.git
--
Dr.-Ing. Jan Wienold
Head of Team Passive Systems and Daylighting
Fraunhofer-Institut für Solare Energiesysteme
Thermal Systems and Buildings
Heidenhofstr. 2, 79110 Freiburg, Germany
Phone: +49(0)761 4588 5133 Fax:+49(0)761 4588 9133
[email protected]
In office:
Mo,Tue: 8:30-18:00
We,Thu: 8:30-16:00
Fr: 8:30-15:30