Dirbaio / ASMPatchTemplate

ASM Patch template for Nintendo DS games.
9 stars 6 forks source link

-LGCC error #3

Open TheGameratorT opened 6 years ago

TheGameratorT commented 6 years ago
mvsl_nospritelimit.s
arm-none-eabi-gcc -MMD -MP -MF /home/Utilizador/Desktop/ASMPatchTemplate-master/build/mvsl_nospritelimit.d -x assembler-with-cpp -g  -c /home/Utilizador/Desktop/ASMPatchTemplate-master/source/mvsl_nospritelimit.s -o mvsl_nospritelimit.o
linking newcode.elf
arm-none-eabi-ld  -T /home/Utilizador/Desktop/ASMPatchTemplate-master/build/../symbols.x -T /home/Utilizador/Desktop/ASMPatchTemplate-master/build/../linker.x -g  -Map newcode.map -Ttext 0x021901E0     mvsl_nospritelimit.o -L/opt/devkitpro/libnds/lib -L/opt/devkitpro/devkitARM/lib -L/opt/devkitpro/devkitARM/arm-none-eabi/lib -L/opt/devkitpro/devkitARM/lib/gcc/arm-none-eabi/5.3.0 -lnds9 -lc -lgcc -o /home/Utilizador/Desktop/ASMPatchTemplate-master/newcode.elf
C:\devkitPro\devkitARM\bin\arm-none-eabi-ld.exe: cannot find -lgcc
make[1]: *** [/home/Utilizador/Desktop/ASMPatchTemplate-master/Makefile:149: /home/Utilizador/Desktop/ASMPatchTemplate-master/newcode.elf] Error 1
rm mvsl_nospritelimit.o
make: *** [Makefile:122: build] Error 2
TheGameratorT commented 6 years ago

Fixed

TheGameratorT commented 6 years ago

In the makefile change:

export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib) -L$(DEVKITARM)/lib/gcc/arm-none-eabi/5.3.0 by export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib) -L$(DEVKITARM)/lib/gcc/arm-none-eabi/8.3.0

TheGameratorT commented 6 years ago

Sorry I dunno how to pull request