IonicWind Software

Aurora Compiler => General Discussion => Topic started by: Todd Riggins on August 10, 2006, 01:33:25 AM

Title: rnd or RAND undeclared
Post by: Todd Riggins on August 10, 2006, 01:33:25 AM
Hi, I have the latest alpha 3 rev 8 build

I'm getting warning: undeclared function 'rnd'

even for 'RAND'

This happened when I just tried "oop1.src" and the 3d example paul gave for pointlist to draw a starfield.

I tried to search this forum for related issue. But I haven't found anything close yet.

Any help/info be much apprieciated.
thanks
Title: Re: rnd or RAND undeclared
Post by: sapero on August 10, 2006, 03:53:24 AM
I had same problem after last update, but solved it: probably you have installed C headers :)
Try to rename file /aurora/include/math.inc
or change /aurora/bin/acommon.inc -> include "math.inc" to #include "..\\bin\\math.inc"
I hope Paul apply this small change for all includes in /bin for the next update ;D
Title: Re: rnd or RAND undeclared
Post by: John Syl. on August 10, 2006, 05:30:09 AM
No problem here, standard install compiles ok with rnd and rand.

John
Title: Re: rnd or RAND undeclared
Post by: Ionic Wind Support Team on August 10, 2006, 08:17:10 AM
I'll probably just rename the math.inc file for the beta's.  If you've installed Sapero's include files then you need to watch out for naming conflicts.
Title: Re: rnd or RAND undeclared
Post by: Todd Riggins on August 10, 2006, 12:59:32 PM
This time I just deleted the the whole directory and did a fresh new clean install of Aurora and it the rnd, Rand works again. Thanks.

Yup, I'd had just download sapero's download that had the opengl stuff I wanted to check out last week. But unfortunitely, I had problems compiling the examples. Most likely was the naming conflicts mentioned.