> Ok, so I could not give up so easily, I found 'opensnoop' on Mac OS and
> it shows that SDCC opens:
>
>  501   2232 gplink        -1 libdev18f4550.lib
>   501   2232 gplink        -1
> /Users/nyholku/sdcc-3.2.0/share/sdcc/lib/pic16//libdev18f4550.lib
>   501   2232 gplink        -1
> /Users/nyholku/sdcc-3.2.0/bin/../share/sdcc/lib/pic16/libdev18f4550.lib
>   501   2232 gplink        10
> /usr/local/share/sdcc/lib/pic16/libdev18f4550.lib
>   501   2232 gplink        11
> /usr/local/share/sdcc/lib/pic16/libdev18f4550.lib
>   501   2232 gplink        11
> /usr/local/share/sdcc/lib/pic16/libdev18f4550.lib

[snip]

> so it is not there!

Well, the file actually is "there" (it is in the tar.bz2), but not
where you looked for it ;-)
>From the tar.bz2 I gather that it will probably end up in

/Users/nyholku/sdcc-3.2.0/share/sdcc/non-free/lib/pic16

which has to be added to the linker search path (-L).
I assume you have done something like

$ tar xvf sdcc-3.2.0-universal-apple-macosx.tar.bz2
$ mv sdcc /Users/nyholku/sdcc-3.2.0

The --use-non-free option to sdcc seems to add this search path too
late -- i.e., after the linker has picked up the libdev18f4550.lib
from /usr/local/share/sdcc/lib/pic16/libdev18f4550.lib, which
obviously comes too early in the search path. I would have to look
into this more carefully in order to figure out whether to change the
search path order. Probably I will move all "non-free" paths to before
system default paths, we'll see. Anyways, that wouldn't help you much
right now, so just add the path to -L manually and you should be fine.

Enjoy!
Raphael

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to