Mail Archives: djgpp/1998/01/23/02:45:24
From: | jedediah AT interlog DOT com
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Q about emulib.a
|
Date: | 23 Jan 1998 00:01:37 GMT
|
Organization: | Interlog Internet Services
|
Lines: | 38
|
Message-ID: | <6a8ml1$e80$1@news.interlog.com>
|
NNTP-Posting-Host: | shell1.interlog.com
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Ok after searching through FAQs, info files, Dejanews, etc.. I am now
looking for help for this very frustrating problem here.
I am compiling a program on a 386 (with no FPU) that uses floats.
According to the DJGPP FAQ, I link it with the emulib.a archive to use
emulation. I am also using other archives that I know for a fact were not
compiled with emulib.a but that shouldn't make a difference as far as I
can tell. Now my program doesnt work. I don't want to explain the whole
thing, but basically a function inside one the the other archives (the
ones that were not compiled with the -lemu option) that uses floats just
crashes inexplicably. Is there something you have to do when creating an
archive from source code to make it use floating point emulation? I don't
understand how emulation can be implemented at link time.
Let me clarify this. First I create an object file:
gcc mylib.c -c -o mylib.o
Where mylib.c uses floats. Then I compile my main source file and link it
with mylib.o and emulib.a:
gcc myprog.c mylib.o -lemu -o myprog.exe
And what I need to know is will the functions originally in mylib.c use
floating point emulation?
Please reply in E-mail to jedediah AT interlog DOT com and thanx.
--
|o|------------------------------------------------------------------------|o|
|o| Jedediah Smith - jedediah AT interlog DOT com |o|
|o| |o|
|o| Obelus Unlimited - Toronto, Canada - obelus AT interlog DOT com |o|
|o| Hardware Tech./Programmer |o|
|o| "Custom computers, on-site installation, custom software solutions" |o|
|o|------------------------------------------------------------------------|o|
- Raw text -