...
#elif defined(pic18f452)
//# include <pic18f452.h>
# include <pic18f458.h> /*changed by Eckard Klotz*/
...
You should better ask those tools' authors for answers. They have nothing to do with C::B itself and most probably no one can help you here.
Here is a Makefile using GPUTILS:
.c.o:
sdcc -S -V -mpic14 -p16F877 $<
gpasm -c $*.asm
$(PRJ).hex: $(OBJS)
gplink -m -s $(PRJ).lkr -o $(PRJ).hex $(OBJS) libsdcc.lib
Here is a Makefile using MPLAB:
.c.o:
sdcc -S -V -mpic14 -p16F877 $<
mpasmwin /q /o $*.asm
$(PRJ).hex: $(OBJS)
mplink /v $(PRJ).lkr /m $(PRJ).map /o $(PRJ).hex $(OBJS) libsdcc.lib
sdcc.exe --out-fmt-ihx -mpic16 -Wall -p18f458 -D__18F458 --out-fmt-ihx -mpic16 --verbose --debug -Wall -p18f458 --out-fmt-ihx -mpic16 -I..\..\..\H -I..\..\..\Def -IC:\sdcc\include -IC:\include -c ..\..\..\C\xxx.C -o obj\Release\C\xxx.rel
Usage: gpasm [options] file
Options: [defaults in brackets after descriptions]
-a FMT, --hex-format FMT Select hex file format. [inhx32]
-c, --object Output relocatable object.
-d, --debug Output debug messages.
-D SYM=VAL, --define SYM=VAL Define SYM with value VAL.
-e [ON|OFF], --expand [ON|OFF] Macro expansion.
-g, --debug-info Use debug directives for COFF.
-h, --help Show this usage message.
-i, --ignore-case Case insensitive.
-I DIR, --include DIR Specify include directory.
-l, --list-chips List supported processors.
-L, --force-list Ignore nolist directives.
-m, --dump Memory dump.
-M, --deps Output dependency file.
-o FILE, --output FILE Alternate name of output file.
-p PROC, --processor PROC Select processor.
-q, --quiet Quiet.
-r RADIX, --radix RADIX Select radix. [hex]
-u, --absolute Use absolute pathes.
-v, --version Show version.
-w [0|1|2], --warning [0|1|2] Set message level.
-y, --extended Enable 18xx extended mode.
Default header file path D:\Tools\gputils\header
Report bugs to:
<URL:http://gputils.sourceforge.net/>
Processor: 18f458
sdcc: Calling preprocessor...
sdcc: Generating code...
sdcc: Calling assembler...