Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

bochen2k

Some NEW ERRORS with DEV C++!!!!!Help!

This topic is 6393 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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!!!

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
Implicit declaration means that rand has no function prototype. That should be in a header so try to include stdlib.h

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!