Hello everyone.

I'm new to SDCC, and I could use a nudge in the right direction.

I have installed the latest snapshot (sdcc-20080609-5192-setup.exe) under Win XP (SP2) and also the latest GPUtils.  I've created a very basic project for the PIC12F675, consisting of a main.h and a main.c.

The tools all seem to be installed and working, as I can compile and assemble, and the assembly looks exactly as I would expect.  The issue that I have is during the link process.  I'm not sure if it is the libsdcc.lib that is causing the problem, but I think that I've got the right one (from the pic directory).  Anyway, when I build, I get:

C:\projects\rewrite>sdcc -S -V -mpic14 -p12f675 main.c
+ C:\PROGRA~1\SDCC\bin\sdcpp.exe -nostdinc -Wall -std=c99 -obj-ext=.o -DSDCC_MOD
="12f675" -I"C:\Program Files\SDCC\bin\..\include\pic14" -I"C:\Program Files\SDC
C\bin\..\include" -I"C:\Program Files\SDCC\bin\..\include\pic"  "main.c"

C:\projects\rewrite>gpasm -c main.asm

C:\projects\rewrite>gplink -m -c -s 12f675i.lkr -o rfpic.hex -I c:\projects\ligh
tcontrol\rewrite libsdcc.lib pic12f675.lib main.o
warning: processor mismatch in "shadowregs.o"
warning: processor mismatch in "idata.o"
warning: processor mismatch in "_gptrget1.o"
warning: processor mismatch in "_gptrget2.o"
error: linker script has no definition that matches the type of section "UDL_ida

Could someone please give me some hints on what might be wrong?

I appreciate the help!


SDCC version:

SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.8.2 #5192 (Jun  9 2008) (MINGW32)

The source code is really simple:

#define __12f675
#include <pic12f675.h>
#include "main.h"


unsigned int at 0x2007  __CONFIG = CONFIG_WORD;

static void Intr(void) interrupt 0


void initialize (void)


void main (void)

 while(1) //main program loop
main.h has only a single #define that I'll use later in development:

#define    CARD_READER    1