Sdccman chapter "2.3 Search Paths" might also help you. Borut
On 14. 02. 2013 16:54, Maarten Brock wrote: > If you want to see which paths are searched and in which order, use > --print-search-dirs on the command line. > > >> On 14.2.2013 17.18, "Maarten Brock" <sourceforge.br...@dse.nl> wrote: >> >> Hi Maarten, >> >> and thanks. >> >>> Hi, >>> >>> --L is wrong, it should be -L >> Ok. >> >>> And with --nostdlib not only the default path is ignored but also the >>> default library names. So you must specify them on the command line. >> Yes, --nostdlib was just a test, I do want the stdlibraries but I want >> them to be found from the path I specify with -L not from the >> /usr/local/share/sdcc/lib/. >> >> Is that possible? >> >> My real problem is that my old code that compiled cleanly under 2.9.x >> now throws: >> >> error: missing definition for symbol "___eeprom_gptrput1", required by >> "gptrput1.o" >> >> >> with this version of sdcc >> >> SDCC : >> mcs51/gbz80/z80/z180/r2k/r3ka/ds390/pic16/pic14/TININative/ds400/hc08/s08 >> 3.2.0 #8008 (Jul 6 2012) (Mac OS X i386) >> >> >> so my thinking was that the wrong libraries were linked but >> I maybe wrong. >> >> My link now looks like: >> >> /Users/nyholku/sdcc-3.2.0/bin/sdcc -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 >> >> and I get >> >> error: missing definition for symbol "___eeprom_gptrput1", required by >> "gptrput1.o" >> error: missing definition for symbol "___eeprom_gptrget1", required by >> "gptrget1.o" >> error: missing definition for symbol "___eeprom_gptrget2", required by >> "gptrget2.o" >> error: missing definition for symbol "___eeprom_gptrget3", required by >> "gptrget3.o" >> >> >> >> >> br Kusti >> >> >> >> >>> Maarten >>> >>>> Hi >>>> >>>> according to the manual there is an '--L' option to specify >>>> the library paths but when I use it I get: >>>> >>>> at 1: warning 117: unknown compiler option '--L' ignored >>>> >>>> if I use -L the compiler finds the /usr/local/share/sdcc/lib/pic16/ >>>> libraries not the ones I specify with the -L option. >>>> >>>> If I, in addition to -L, specify --nostdlib then no libraries >>>> are found even though -L option points to directory >>>> /Users/nyholku/sdcc-3.2.0/share/sdcc/lib/pic16 >>>> where I've checked those files are. >>>> >>>> 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 >>> >> >> -- >> Kustaa Nyholm >> Research Manager, Software >> Research and Technology Division >> PLANMECA OY >> Asentajankatu 6 >> 00880 HELSINKI >> FINLAND >> >> Please note our new telephone and fax numbers! >> Tel: +358 20 7795 572 (direct) >> Fax: +358 20 7795 676 >> GSM: +358 40 580 5193 >> e-mail: kustaa.nyh...@planmeca.com >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> 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 >> ------------------------------------------------------------------------------ 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