pawn@wpi.wpi.edu (Kevin Goroway) (05/07/90)
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 | +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=