CompuServe Messages

All SIG Members

    22-Apr-88 00:15:00
Sb: All SIG Members
Fm: CHIP MATTSON 72017,442
To: L
Lattice C V4.0 — fcvt() I have had a problem using the fcvt() function in programs. Blink gives me an Undefined Symbol error for _fcvt. I have tried it with the header files that contain fcvt(), math.h and stdlib.h, using both files and individually. Below is a sample program I used to test fcvt(): #include <stdio.h> #include <math.h> /* and/or */ #include <stdlib.h> void main() { char *str=NULL; int decx=0,sign=0; double n=76543.21; str=fcvt(n,2,&decx,&sign); printf("str='%s'\n",str); } If this info will help – Lattice C V4.0 Blink V7.2 How I call Compiler and Linker: lc -idf0: -icsys:compacth/ -cc -odf0: -qram: <file> blink FROM LIB:c.o,<file>.o TO <file> WITH mathblinkfile BLINK options in mathblinkfile: SMALLCODE,SMALLDATA,NODEBUG,PLAIN,WIDTH 75,HEIGHT 0,VERBOSE, MAP MapFile FLS,LIB LIB:lcm.lib LIB:lc.lib LIB:amiga.lib ecvt() works o.k., but I'd like to be able to use fcvt(). Please reply if you have had a similar problem, or a solution. Thanks. Chip M. [72017,442]