On Wed, 15 Oct 2014 23:32:42 +0000 (UTC) Electropepper PIC <electropep...@yahoo.com> wrote:
> I am trying to compile this header file > http://burningsmell.org/pic16f628/src/tsmdelay.h , > whit code : > #define KHZ 1000L > > #include <pic12f1822.h> > #include "tsmdelay.h" > #include "tsmtypes.h" > > /* Setup chip configuration */ > __code int __at(_CONFIG1) __CONFIG = _FOSC_INTOSC & _WDTE_OFF & _PWRTE_OFF & > _MCLRE_ON & _CP_OFF & _CPD_OFF & _BOREN_OFF & _CLKOUTEN_OFF & _IESO_OFF & > _FCMEN_OFF; > > void setup(void); > unsigned char minute = 60; > > > > void main(void) { > > setup(); > > > while(1) { > > while (minute--){ > DELAY_BIG_US(1000000LU); > } > LATA |= (1<<2); > } > > } > void setup(void) { > > OSCCON = 0b01011000; > LATA = 0; > TRISA = 0x00; > PORTA = 0x00; > } > > And i keep getting error :message: Using default linker script > "/usr/local/share/gputils/lkr/12f1822_g.lkr". > error: Missing definition for symbol "_dvar", required by "main.o". > error: Missing definition for symbol "_cycle_eater", required by "main.o". > make: *** [main.o] Error 1 > The source code is not complete. The missing symbols there are in another source module. These need to look for, or it is necessary to write it, and it is then necessary to compile these also. Finally must link the generated object codes. Károly ------------------------------------------------------------------------------ Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://p.sf.net/sfu/Zoho _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user