www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/09/23/17:15:45

From: Stephen <stickman2000 AT my-deja DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Having problems with gcc '-msoft-float' using DJGPP
Date: Sat, 23 Sep 2000 21:01:44 GMT
Organization: Deja.com - Before you buy.
Lines: 31
Message-ID: <8qj5nf$ma9$1@nnrp1.deja.com>
NNTP-Posting-Host: 129.219.100.81
X-Article-Creation-Date: Sat Sep 23 21:01:44 2000 GMT
X-Http-User-Agent: Opera/4.01 (Windows 95; U) [en]
X-Http-Proxy: 1.1 x66.deja.com:80 (Squid/1.1.22) for client 129.219.100.81
X-MyDeja-Info: XMYDJUIDstickman2000
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello!

I am having problems compiling my program, which to be used on a computer
with no math co-processor. I used the -msoft-float command line option, but I
get errors that I cannot find the answer to. Here is a example:

gcc -DLIBDIR=\"../lib/\" -Wall -O2 -m486 -msoft-float -o obj/calc.o -c calc.c
gcc -s -o main.exe obj/calc.o [more obj files] -lalleg
obj/calc.o(.text+0x682):calc.c: undefined reference to `__ltdf2'
obj/calc.o(.text+0x69e):calc.c: undefined reference to `__nedf2'
obj/calc.o(.text+0x6f1):calc.c: undefined reference to `__muldf3'
obj/calc.o(.text+0x705):calc.c: undefined reference to `__floatsidf'
obj/calc.o(.text+0x728):calc.c: undefined reference to `__ltdf2'
obj/calc.o(.text+0x744):calc.c: undefined reference to `__eqdf2'
obj/calc.o(.text+0x842):calc.c: undefined reference to `__muldf3'
obj/calc.o(.text+0x8c0):calc.c: undefined reference to `__eqdf2'
obj/calc.o(.text+0x8eb):calc.c: undefined reference to `__divdf3'
obj/calc.o(.text+0x9ef):calc.c: undefined reference to `__adddf3'
obj/calc.o(.text+0xa5a):calc.c: undefined reference to `__subdf3'
obj/calc.o(.text+0xb9b):calc.c: undefined reference to `__eqdf2'
[more errors similar to these]

Any help is greatly appreciated!

--
Stephen
Please do not email me at stickman2000 AT my-deja DOT com


Sent via Deja.com http://www.deja.com/
Before you buy.

- Raw text -


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