So, i wanted to build srb2_3ds(can't leave link, I made the account for this post), but I'm having problems with the linking of the final .elf.
For some reasons, the linker recognizes the same header file twice(or at least this is the issue i think I'm having).
As you can see(the errors are hundreds, but basically all the same, and just replicas of 4 or 5 actually unique errors, that still are "double declaration" errors, so I'll just leave the last one):
So, the "multiple definition" of ATTRPACK is on "srb2_3ds/source/doomtype.h:256", and the original declaration is on "srb2_3ds/source/nds/../doomtype.h:256", which is in fact the same exact file, at the same exact line, but the file is read twice. What could've I done wrong?
For some reasons, the linker recognizes the same header file twice(or at least this is the issue i think I'm having).
As you can see(the errors are hundreds, but basically all the same, and just replicas of 4 or 5 actually unique errors, that still are "double declaration" errors, so I'll just leave the last one):
Code:
/opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/bin/ld: lua_thinkerlib.o:/home/andrea/Desktop/SRB2/srb2_3ds/source/doomtype.h:256: multiple definition of `ATTRPACK';
i_main.o:/home/andrea/Desktop/SRB2/srb2_3ds/source/nds/../doomtype.h:256: first defined here
collect2: error: ld returned 1 exit status
make[1]: *** [/opt/devkitpro/devkitARM/3ds_rules:42: /home/andrea/Desktop/SRB2/srb2_3ds/srb2_3ds.elf] Error 1