#312 missing definition for symbol "_TRISD", required by "portb-t

closed-invalid
Toolchain (47)
5
2012-10-19
2012-10-10
Anonymous
No

Hello,

While trying to compile I get the following error:

sdcc --use-non-free -mpic16 -p18f4320 -V --debug -I/home/promet/Tech and Projects/Piklab/ -I/usr/share/sdcc/include/ -c portb-test.c
+ "/usr/bin/sdcpp" -nostdinc -Wall -I"/home/promet/Tech and Projects/Piklab/" -I"/usr/share/sdcc/include/" -Dpic18f4320 -D__18f4320 -DSTACK_MODEL_SMALL -obj-ext=.o -DSDCC_MODEL_SMALL -DSDCC=290 -DSDCC_REVISION=5416 -DSDCC_pic16 -D__pic16 -isystem "/usr/bin/../share/sdcc/include/pic16" -isystem "/usr/share/sdcc/include/pic16" -isystem "/usr/bin/../share/sdcc/include" -isystem "/usr/share/sdcc/include" "portb-test.c"
+ "/usr/bin/gpasm" -DSDCC_MODEL_SMALL -DSTACK_MODEL_SMALL -g -c "portb-test.asm" -o "portb-test.o"
warning 117: unknown compiler option '--use-non-free' ignored
sdcc --use-non-free -mpic16 -p18f4320 -V --debug -Wl-c -Wl-m -I/home/promet/Tech and Projects/Piklab/ -oportb-test.hex portb-test.o
warning 117: unknown compiler option '--use-non-free' ignored
using default linker script "/usr/share/gputils/lkr/18f4320.lkr"
missing definition for symbol "_TRISD", required by "portb-test.o"
missing definition for symbol "_TRISDbits", required by "portb-test.o"
+ "/usr/bin/gplink" -I"/usr/bin/../share/sdcc/lib/pic16" -I"/usr/share/sdcc/lib/pic16" -I"/usr/bin/../share/sdcc/lib" -I"/usr/share/sdcc/lib" -c -m -w -r -o portb-test.hex portb-test.o crt0i.o libdev18f4320.lib libsdcc.lib
+ "/usr/bin/gplink" -I"/usr/bin/../share/sdcc/lib/pic16" -I"/usr/share/sdcc/lib/pic16" -I"/usr/bin/../share/sdcc/lib" -I"/usr/share/sdcc/lib" -c -m -w -r -o portb-test.hex portb-test.o crt0i.o libdev18f4320.lib libsdcc.lib returned errorcode 256
*** Exited with status: 1 ***

As far as I can tell, TRISD, and TRISDbits are defined in the header files I've examined, yet the build balks.

SDCC VERSION: SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.9.0 #5416 (Feb 3 2010) (UNIX)
PIKLAB VERSION: Version 0.16.1 -- Using KDE Development Platform 4.8.5 (4.8.5)

Described in more detail here: https://sourceforge.net/projects/piklab/forums/forum/633023/topic/5872886

Thanks for your time!

Discussion

  • Nicolas Hadacek

    Nicolas Hadacek - 2012-10-19
    • status: open --> closed-invalid
     

Log in to post a comment.