Problem with Lattice C 2.15
Andrew Koenig
ark at alice.UucP
Sun Mar 2 04:49:14 AEST 1986
> I need help with the following 'program':
> #include <stdio.h>
>
> main()
> {
> double test;
> test = 1234567.981;
> printf("Test of double value %7.2f\n", test);
> }
>
> It runs fine on SV but produces the line "...value 7.2f" when compiled
> on a PC clone with Lattice C version 2.15. Am I doing something wrong
> or is this a bug? I tried the same with sprintf() but the same results.
> Any mailed help will be greatly appreciated.
You need to link with the floating-point library (\lc\s\lcm, etc).
Use the "linkms" script instead of the "links" script, etc...
More information about the Comp.sources.bugs
mailing list