www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/16/17:31:10

X-Sender: dlanor AT mail DOT dds DOT nl
Message-Id: <l03130300b3647c84eff8@[145.98.116.5]>
Mime-Version: 1.0
Date: Sun, 16 May 1999 22:48:51 +0200
To: djgpp AT delorie DOT com
From: Dlanor Blytkerchan <dlanor AT dds DOT nl>
Subject: FPU emulation
Reply-To: djgpp AT delorie DOT com

Hello all!

I have a question - or rather: I need some help. I've been trying to get
the FPU emulation to work by linking it into a program which uses a lot of
floating point operations (sine, cosine, tangent, division, you name it, it
practically uses them all). If I can get that to work, I should have no
trouble with other floating point operations. Here's what I've tried (and:
it didn't work ofcourse)
From RHIDE, I've used both -lemu and -lwmemu (together and seporatly) as
compiler option (which was passed in both compiling and linking and ignored
in compiling) and as linker option (which produced an extra command-line
parameter: "-Xlinking"). I've tried this with and without including the
float.h header file and with and without the environment variables as
described in the FAQ on www.delorie.com. What I get is an error in linking:
"undefined reference" whenever I divide, multiply, sine, cosine, etc. I.e.:
whenever I do anything that would require the FPU. The system I develop
software on does not have an FPU, nor any resident emulators (as they don't
work in protected mode anyway), and the target systems usually don't either.
If anybody's interested, I can send the code I was trying it on (it's a map
creation program for a game called VGA Planets), though I don't really see
how that could help.
The question is: what did I miss? What should I do to get the FPU emulator
to work with my code?
If anybody could help me with this, I'd be much obliged.

Thanx!

Dlanor Blytkerchan


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019