Am 15.08.2017 um 23:58 schrieb Erlo Haugen:
> On 2017-08-15 23:22, Philipp Klaus Krause wrote:
>> Am 14.08.2017 um 23:47 schrieb Erlo Haugen:
>>> What library must I link to in order to access printf or puts?
>>>
>>> Command:
>>>
>>> erlo@beeblebrox:~/MPLABXProjects/interrupttest.X$ sdcc -mpic14 -p16f690
>>> --use-non-free   dreje.c
>>> message: Using default linker script "/usr/share/gputils/lkr/16f690_g.lkr".
>>> error: Missing definition for symbol "_puts", required by "dreje.o".
>>>
>>> br
>>> Erlo
>>
>> Do other std library functions work for you? From a quick look at
>> sdcc/device/lib/pic1?, it seems that the pic14 doesn't really have a
>> library (expect for support functions and floating-point math functions)
>> and the pic16 has its own library, separate from what all the non-pic
>> backends use.
>>
>> Philipp
>>
> 
> Actually, I am not using other library functions as far as I know.
> 
> Erlo

Well, the pic backends are still considered "work in progress". And that
is even more true fro pic14 than for pic16.

I suggest you try just taking puts() from sdcc/device/lib/puts.c and see
if it works for you for pic14.

Philipp

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to