Article View: comp.sys.amiga.tech
Article #3487Bug in Lattice 5.04!
From: Kevin Goroway
Date: Mon, 07 May 1990 02:25
Date: Mon, 07 May 1990 02:25
39 lines
1577 bytes
1577 bytes
Well, thanks for the replies I got about my problem, but, they didn't help.
First of all, the 5.02 statement was incorrect: I have 5.04 (not 5.05)
Someone suggested linking with lcm881.lib+amiga.lib+lc.lib instead
of lc.lib then amiga.lib...I tried this...no luck...
Here is the code again...(It's rather short...)
#include <stdio.h>
#include <math.h>
#include <m68881.h>
main()
{
FILE *fp;
float tmp1;
fp=fopen("prog4.dat","r");
if(fp == 0) {
printf("couldn't open file\n");
exit(1);
}
fscanf(fp,"%f",&tmp1);
printf("it was %f\n",tmp1); /* This works fine! */
fscanf(fp,"%f",&tmp1); /* This crashes!!! */
printf("it was %f\n",tmp1);
}
I was compiled like this...
test: test.o
blink lib:c.o+test.o to test lib lib:lcm881.lib+lib:lc.lib+lib:amiga.lib
On a 2500/20....thanks for all the help...
--
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
| Worcester Polytechnic Institute | "It happens sometimes, people just |
| Pawn@wpi.wpi.edu Pawn@wpi.bitnet | explode, natural causes."-Repo Man |
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Technical Details
Message-ID:
<12727@wpi.wpi.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!wuarchive!husc6!m2c!wpi!pawnShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!wuarchive!husc6!m2c!wpi!pawn From: pawn@wpi.wpi.edu (Kevin Goroway) Newsgroups: comp.sys.amiga.tech Subject: Bug in Lattice 5.04! Keywords: 68881 math problem? Message-ID: <12727@wpi.wpi.edu> Date: 7 May 90 02:25:19 GMT Organization: Worcester Polytechnic Institute, Worcester, Mass. Lines: 39