Jump to content
  • Advertisement

Archived

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

ThaUnknownProgga

Debug Error "floating point not loaded"

This topic is 6916 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

Why am i getting this? it''s happening in a call like this: fscanf(fp, "%f %f %f", &vert.a, &vert.b, &vert.c) where vert is a struct that has three floats, a b and c. i am parsing through a file and reading this stuff in and as soon as i try to do this it pops up debug error r6002 "floating point not loaded". what''s the deal and how do i fix? thanks in advance

Share this post


Link to post
Share on other sites
Advertisement
You need to enable floating point. Most compilers let you disable (or disable by default) floating point. Tell me what compiler you have, and I will try to tell you how to enable it.
I can''t guarantee I''m right, but I think it might be...

--Don''t quote me on that, unless I''m right...

Share this post


Link to post
Share on other sites
I don''t know how to fix it, but I can explain it. To work with a floating-point number, it has to be loaded into the FPU with the assembly command FLD (FPU: Load Data). The compiler should use this command any time it works with a floating-point number; Visual C++ does.

~CGameProgrammer( );

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!