1

gcc -L c:\NeoDev\m68k\lib -m68000 -O3 -Wall -fomit-frame-pointer -ffast-math -fno-builtin -nostartfiles -nodefaultlibs -D__cart__ -Wl,-Tc:\NeoDev\src\system\neocart.x c:\NeoDev\tmp\crt0_cart.o c:\NeoDev\tmp\main.o c:\NeoDev\tmp\palettes.o c:\NeoDev\tmp\ball16.o c:\NeoDev\tmp\ball32.o c:\NeoDev\tmp\ball.o c:\NeoDev\tmp\ball48.o c:\NeoDev\tmp\ship.o -lDATlib -lmath -lc -lgcc -o test.o

c:\NeoDev\tmp\crt0_cart.o: In function `__security_code':
c:\NeoDev\tmp\crt0_cart.o(.text+0x10e): undefined reference to `bkp_data'

Hi everybody
Trying to include datlib in current tests but i have this error when i compile
i am using the neothunder dev folder and the 0.3 datlib
Someone have an idea ?
Thanks in advance
Chuck/Dune

2

You need to declare a backup data section in main.c (or somehere else of your convenience):

typedef struct __attribute__((packed,aligned(2))) backupData { char debugDip1; char debugDip2; //custom data below } backupData; backupData bkp_data;

3

Thanks HPMAN
smile

4

Just one more question HPMAN
I use the doc of the DatLib to install it
I dont see anywhere this code sample, i made a mistake ?

5

It should be in the sample code with the lib.

Doc doesn't talk about that because it has nothing to do with the lib, but is a general NeoGeo thing.

6

C'est un bon argument smile