Hi again,
> i compiled the sdcc-src-2.6.0 tarball, so I guess I have that version
> the error I get is the following one:
> error: missing definition for symbol "_sinf", required by "main.o"
>
> I just added the 31 december snapshot (removes my ability to program
> to PIC18F4431, which I added myself) and it still gives me the same
> error;
The problem is related to linking, no to the compiler itself: The linker
cannot find a definition of the sinf function.
Did you "configure && make && make install" the libraries from
sdcc/device/lib/pic16? Please check the command line used to compile
your project: Do you include a "-L<path to the libraries>" or does SDCC
find the libraries at the default location?
Try to compile your project using
sdcc -mpic16 -p18f1220 \
-L $HOME/sdcc/device/lib/pic16/bin \
-I $HOME/sdcc/device/include/pic16 \
source.c [other.o more.o]
If this does not work, look at the output of
sdcc -V <same options as above>
and look out for the options passed to the linker---they must include
gplink -I /path/to/your/compiled/pic16/libraries \
libm18f.lib libc18f.lib pic18f1220.lib libsdcc.lib
(/path/to/your/compiled/pic16/libraries might be
$HOME/sdcc/device/lib/pic16/bin...)
If this still does not help, post the output of the sdcc -V [more opts]
command above. However, make sure that libm18f.lib (1) exists (2) in the
linker's search paths.
Regards,
Raphael
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user