|
From: Gary M. <Gar...@st...> - 2001-09-04 09:18:16
|
With the Borland C version of SDC V2.21, a default path for include files and library files is hard coded into the search path for these type of files, however the documentation I have seen gives the wrong default installation path. In order to use the default paths you have to have a directory /sdcc directly in the root directory of the C drive. Off the top of my head I can't remember the necessary directories beneath /sdcc. I would like to see support added for two new environmental variables. These would allow the user to define a default include and library directory. Under DOS (or even Cygwin) these are easy to setup. This would remove the need to either hard code paths into the SDCC source code, and remove the need to follow the directory structure currently imposed. Of course you can use the -I and -L switches on the command line (or in a makefile), but that's too much for me to type. regards... --Gary On Sep 4, 10:33am, m.v...@ca... wrote: > Subject: RE: [Sdcc-user] FAQ... > I know it's poor form to answer my own question, but the answer is to make > sure you link in the lib. My cygwin install doesn't have the libs installed > (<shrug>), but my windows one does. the correct syntax is: > > sdcc --model-small -L /path/to/libs file.c > > Cheers, > Matthew van de Werken > Electronics Engineer > CSIRO Exploration & Mining - Gravity Group > 1 Technology Court - Pullenvale - Qld - 4069 > ph: (07) 3327 4685 fax: (07) 3327 4455 > email: m.v...@ca... > > > > -----Original Message----- > > From: M.v...@ca... [mailto:M.v...@ca...] > > Sent: Tuesday, 4 September 2001 9:57 AM > > To: sdc...@li... > > Subject: [Sdcc-user] FAQ... > > > > > > This is probably an FAQ, but anyway: > > > > I'm trying to compile a simple program under SDCC, and can't > > get it to run > > in my target device. That target is an Analog Devices ADuC812 > > (8051 type) > > development board. The board works fine using the test > > programs supplied, > > but I can't seem to compile even a simple "Hello World" program. > > > > When I compile, I get the error "?ASlink-Warning-Undefined Global > > '__sdcc_external_startup' referenced by module 'blink'". I've > > tried using > > the cygwin version, the native windows version, and a Linux > > version on my > > box at home. What do I need to do to get rid of this warning?? > > > > Cheers, > > Matthew van de Werken > > Electronics Engineer > > CSIRO Exploration & Mining - Gravity Group > > 1 Technology Court - Pullenvale - Qld - 4069 > > ph: (07) 3327 4685 fax: (07) 3327 4455 > > email: m.v...@ca... > > > > _______________________________________________ > > Sdcc-user mailing list > > Sdc...@li... > > https://lists.sourceforge.net/lists/listinfo/sdcc-user > > > > _______________________________________________ > Sdcc-user mailing list > Sdc...@li... > https://lists.sourceforge.net/lists/listinfo/sdcc-user > >-- End of excerpt from m.v...@ca... -- --Gary STMicroelectronics, 1000 Aztec West, Almondsbury, Bristol BS32 4SQ, UK. Tel: +44 1454 462639 FAX: +44 1454 617910 |