X-Sender: dlanor AT mail DOT dds DOT nl Message-Id: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Sun, 16 May 1999 22:48:51 +0200 To: djgpp AT delorie DOT com From: Dlanor Blytkerchan 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