Hi,

I had already tried the --print-search-dirs

nyholkus-MacBook-Pro:kusti nyholku$ /Users/nyholku/sdcc-3.2.0/bin/sdcc
--print-search-dirs -L /Users/nyholku/sdcc-3.2.0/share/sdcc/lib/pic16/
-Wl,-m,-s18f4550.lkr -mpic16 -p18f4550 --disable-warning 85 --std-sdcc99
--obanksel=3 --use-non-free -o ../obj/cdcacm.hex ../obj/main.o
../obj/usbcdc.o ../obj/printft.o libc18f.lib libio18f4550.lib libm18f.lib
libsdcc.lib
programs:
/Users/nyholku/sdcc-3.2.0/bin
datadir:
/Users/nyholku/sdcc-3.2.0/bin/../share
/usr/local/share
includedir:
/Users/nyholku/sdcc-3.2.0/bin/../share/sdcc/include/pic16
/usr/local/share/sdcc/include/pic16
/Users/nyholku/sdcc-3.2.0/bin/../share/sdcc/include
/usr/local/share/sdcc/include
/Users/nyholku/sdcc-3.2.0/bin/../share/sdcc/non-free/include/pic16
/usr/local/share/sdcc/non-free/include/pic16
/Users/nyholku/sdcc-3.2.0/bin/../share/sdcc/non-free/include
/usr/local/share/sdcc/non-free/include
libdir:
/Users/nyholku/sdcc-3.2.0/bin/../share/sdcc/lib/pic16
/usr/local/share/sdcc/lib/pic16
/Users/nyholku/sdcc-3.2.0/bin/../share/sdcc/non-free/lib/pic16
/usr/local/share/sdcc/non-free/lib/pic16
libpath:



So it is looking at 3.2.0 places and /usr/local places, in that order.
It should find 3.2.0 libs first right?

So looking at my error message:

error: missing definition for symbol "___eeprom_gptrput1", required by
"gptrput1.o"


I searched for "___eeprom_gptrput1" and it seems to be in:

/Users/nyholku/sdcc-3.2.0/share/sdcc/lib/src/pic16/libsdcc/gptr/gptrput1.c

so that would in here, or what:

/Users/nyholku/sdcc-3.2.0/share/sdcc/lib/pic16/libsdcc.lib

hmm, I renamed:

/usr/local/share/sdcc/lib/pic16/libsdcc/libsdcc.lib to libsdccx.lib

and the error is still the same, so apparently it finds the
correct libsdcc.lib. Lets test that theory, rename:


/Users/nyholku/sdcc-3.2.0/share/sdcc/lib/pic16/libsdcc.lib


Ok, now I get:

libsdcc.lib: No such file or directory


So mu problem is NOT that it cannot find the correct library, but
that the library does not have that symbol?

Why? 

br Kusti




------------------------------------------------------------------------------
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