> On 17.11.2014 13:05, Rolf Schroder wrote: >> Dear All, >> >> I am trying to compile a firmware for the STM8L. I used STVD & Cosmic >> (compiler) but want to switch to sdcc. I had made some small code >> changes to get everything running and I feel it's compiling correctly. I >> am using the following cmd to compile: >> >> sdcc -lstm8 -mstm8 -I inc -I ../../Source/inc -I >> ../../Libraries/STM8L15x_StdPeriph_Driver/inc -I >> ../../Libraries/STM8L-discovery_Libraries/inc -D STM8L15X_MD -D __CSMC__ >> --opt-code-size --disable-warning 126 src/main.c > > I see -I options for the include files of the STM8L libraries. But I > don't see the librries themselves. Assuming it is > in./../Libraries/STM8L-discovery_Libraries/STM8LD.lib you would just add > that after src/main.c on the command line.
The -I options are for setting the search path for included C header files, not for setting library search paths. You should use -L for that. And there are no -L options here. So the stm8 library must be in your current directory. Btw. Did you build this stm8 library yourself with SDCC? Or was it prebuilt with SDCC? Or is it actually for the Cosmic toolset? Greets, Maarten ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user