Some NEW ERRORS with DEV C++!!!!!Help!
Hi,
I got the free compiler DEV C++ and nothing compiled when I used
NeHe''s tutorials. I followed all the advice numerous people have posted on this forum addressing that problem and I finally got it fixed. It compiles and EVERYTHING WORKS!!! Up to like lesson 8 or so that is. When I go into chapter 9 and beyond that have "random"
functions that gets a random number or something to position the
stars or particles or whatever they are; I get a DEV C++ compiler
error that says either the line of code itself or the declaration of the random function is wrong, ambigous , or incorrect syntax but It won''t compile; There are SEVERAL lines
like this and they are similair to this line below:
particle[loop].fade=float(rand()%100)/1000.0f+0.003f;
the error reads:
like implicit delcaration of fuction int rand(...);
what is wrong, other programs work just not the ones with the random codes.
by address is bochen2k@yahoo.com
help if you can. THANKS!!!
February 15, 2001 07:40 PM
Implicit declaration means that rand has no function prototype. That should be in a header so try to include stdlib.h
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement