gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > What bad error!

#6075 - Link - Fri May 16, 2003 4:22 pm

who can help me to understand this bad error:

Code:


C:\devkitadv\bin>gcc -o test5.elf test5.c
C:\DOCUME~1\marco\IMPOST~1\Temp/ccIdbaaa.o: In function `main':
C:\DOCUME~1\marco\IMPOST~1\Temp/ccIdbaaa.o(.text+0x64): undefined reference to
DMA_Copy'
C:\DOCUME~1\marco\IMPOST~1\Temp/ccIdbaaa.o(.text+0x90): undefined reference to
DMA_Copy'
C:\DOCUME~1\marco\IMPOST~1\Temp/ccIdbaaa.o(.text+0x230): undefined reference to
`mappaMap'
collect2: ld returned 1 exit status
C:\DOCUME~1\marco\IMPOST~1\Temp/ccIdbaaa.o: In function `main':
C:\DOCUME~1\marco\IMPOST~1\Temp/ccIdbaaa.o(.text+0x64): undefined reference to
DMA_Copy'
C:\DOCUME~1\marco\IMPOST~1\Temp/ccIdbaaa.o(.text+0x90): undefined reference to
DMA_Copy'
C:\DOCUME~1\marco\IMPOST~1\Temp/ccIdbaaa.o(.text+0x230): undefined reference to
`mappaMap'

C:\devkitadv\bin>objcopy -O binary test5.elf test5.bin
objcopy: test5.elf: No such file or directory

#6077 - Daikath - Fri May 16, 2003 4:31 pm

Did you include ccIdbaaa.o in your makefile? (if you use MS Visual C++).
_________________
?There are no stupid questions but there are a LOT of inquisitive idiots.?

#6080 - Link - Fri May 16, 2003 4:54 pm

However what are these files?
Why are these not showed and explained in pernproject site?

#6091 - Daikath - Fri May 16, 2003 11:30 pm

I don't know, all I know is that they help you include other Cfiles to the compile process.

If you want to add another Cfile, go to your makefile and add the filename except with a .c a .o. Then add wichever array or function they have like this.

If it is a u8 const array

you type in extern u8 const array (only the exact same type and name with extern in front of it).

And ask Dovoto why these arent included in The Pern Project ;).
_________________
?There are no stupid questions but there are a LOT of inquisitive idiots.?