SGDK 1.41
My program compiles successfully, but when I add to the code VDP_setPalette(PAL0, floor1.palette->data) an error occurs at the build process
Build log:
Code: Select all
^
C:\Users\ALKO\AppData\Local\Temp\cciQpyUe.ltrans4.ltrans.o: In function `VDP_setPalette':
<artificial>:(.text+0x896): multiple definition of `VDP_setPalette'
E:/sgdk112/lib/libmd.a(vdp_pal_a.o):(.text+0x114): first defined here
C:\Users\ALKO\AppData\Local\Temp\cciQpyUe.ltrans4.ltrans.o: In function `VDP_setPaletteColors':
<artificial>:(.text+0x8ea): multiple definition of `VDP_setPaletteColors'
E:/sgdk112/lib/libmd.a(vdp_pal_a.o):(.text+0x66): first defined here
C:\Users\ALKO\AppData\Local\Temp\cciQpyUe.ltrans4.ltrans.o: In function `VDP_getPalette':
<artificial>:(.text+0xa14): multiple definition of `VDP_getPalette'
E:/sgdk112/lib/libmd.a(vdp_pal_a.o):(.text+0xcc): first defined here
C:\Users\ALKO\AppData\Local\Temp\cciQpyUe.ltrans4.ltrans.o: In function `VDP_getPaletteColors':
<artificial>:(.text+0xa7e): multiple definition of `VDP_getPaletteColors'
E:/sgdk112/lib/libmd.a(vdp_pal_a.o):(.text+0x0): first defined here
make.exe: *** [out/rom.out] Error 1
rm res/sprite.s res/music.s res/gfx.s
Process terminated with status 2 (0 minute(s), 2 second(s))
8 error(s), 7 warning(s) (0 minute(s), 2 second(s))