From: <ald...@uf...> - 2003-12-18 05:01:09
|
Am I right assuming there's no floating point support for Z80 in the current version of sdcc? The command ./sdcc -mz80 foo.c compiles the code below without problems (indicating paths for libraries and includes are ok) #include <stdio.h> void main() { float y = 0.5F; printf("%f\n",y); } However, if I try some floating-point math (as below), I get the error message: ?ASlink-Warning-Undefined Global _cosf referenced by module foo #include <math.h> #include <stdio.h> void main() { float y = 0.5F; y = cosf(y); printf("%f\n",y); } If I'm doing something wrong, please let me know. Thanks, Aldebaro ---------------------------------------------------------- Esta mensagem foi enviada pelo site http://Correio.UFPA.BR |