From: Rich B <ric...@at...> - 2013-09-22 14:46:08
|
On 9/18/2013 8:37 AM, Jim Duffy wrote: > I have a real newbie problem using sdcc. The issue is so fundamental > that I know I am missing something that should be obvious. > > I am trying to compile the Microchip XLP 8 bit development board code > available at: > > http://www.microchip.com/Microchip.WWW.SecureSoftwareList/secsoftwaredownload.aspx?device=en553806&lang=en&ReturnURL=http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en553806# > > I am compiling the code on XP SL3 using the command: > > sdcc main.c -L "\Program Files\SDCC\lib\pic16" -I "\PIC\XLP 8bit Release > Code V1.1\PIC16\xlp_menu.X\xlp_menu.X" > > The first error message from sdcc is: > > main.c:47:19: error: stdio.h: No such file or directory > > How do I tell sdcc where the standard libraries are? > > > > ------------------------------------------------------------------------------ > LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! > 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint > 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes > Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. > http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk > _______________________________________________ > Sdcc-user mailing list > Sdc...@li... > https://lists.sourceforge.net/lists/listinfo/sdcc-user > Hello, stdio.h assumes you have a computer with a screen, a keyboard, and a file system. A bare metal microprocessor has input and output pins and usually a USART serial port. You need to write your own input and output routines accessing the hardware of the uP. stdio.h simply doesn't apply to a uP. comment out the #include line and see what happens. Rich. |