Hi, > Yes, now it compiles, great! Than you so much for the help > with this little detail and the whole SDCC project, one of the most > enjoyable and useful open source projects I've used.
Good to hear. > If I want to compile this in a 'standard' SDCC installation, do > I just leave the -L path away (can't test that for a while), asking > because I want publish this piece of code so that other can > enjoy it and obviously an absolute path to my home dir won't > help any prospective user? Keeping additional search paths in there usually does not hurt (the exception being that incompatible files are found in these search paths prior to finding the proper ones, e.g., in the default search paths). But yes, for a standard installation, all libraries and crt0*.o files should be found automatically by specifying the --use-non-free flag to sdcc. For targets other than PIC14/PIC16, even this flag is not required. > BTW it seems that it is not necessary to specify 'libdev18f4550.lib' > on the command line to SDCC (you know this I guess), as long as > the paths are ok and searched in correct order this is enough. Again right: crt0i.o, libdev<DEVICE>.lib and libsdcc.lib are always added to the final output during linking IF sdcc is used to call the linker. Similarly, SDCC adds its default library search paths to the linkers command line. IF you opt to call gplink manually, you need to set up all search paths and include ALL object files/libraries to be included in the link yourself. I strongly recommend against calling the linker manually. If you have to, see sdcc -mpic16 -p18f4550 -V main.c and gather all flags, .o and .lib files that are passed to the linker as a start. Kind regards 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