#87380 - yanos - Tue Jun 13, 2006 5:55 pm
I have a warning during link that I don't really like:
If I remove -specs=ds_arm9.specs from LDFLAGS, it won't be able to find _start, witch scares me even more. Before, I was doing gba developpement and you had to supply a linkscript and a the ctr0.o object file. I'm not sure how to proceed with the ds.
Here is my Makefile:
I am trying to build with devkitpro19 and the latest libnds.
Code: |
main.cpp arm-eabi-g++ -MMD -MP -MF ./build/main.d -Wall -O2 -fno-exceptions -fno-rtti -mcpu=arm9tdmi -mtune=arm9tdmi -I/opt/devkitpro/libnds/include -DARM9 -c main.cpp -o main.o dsSprite.cpp arm-eabi-g++ -MMD -MP -MF ./build/dsSprite.d -Wall -O2 -fno-exceptions -fno-rtti -mcpu=arm9tdmi -mtune=arm9tdmi -I/opt/devkitpro/libnds/include -DARM9 -c dsSprite.cpp -o dsSprite.o linking test.arm9 /opt/devkitpro/devkitARM/bin/arm-eabi-ld.real: warning: cannot find entry symbol cs=ds_arm9.specs; defaulting to 00008000 |
If I remove -specs=ds_arm9.specs from LDFLAGS, it won't be able to find _start, witch scares me even more. Before, I was doing gba developpement and you had to supply a linkscript and a the ctr0.o object file. I'm not sure how to proceed with the ds.
Here is my Makefile:
Code: |
include $(DEVKITARM)/ds_rules export LD := $(PREFIX)ld CFLAGS := -Wall -O2 -fno-exceptions -fno-rtti -mcpu=arm9tdmi -mtune=arm9tdmi -I$(DEVKITPRO)/libnds/include -DARM9 CXXFLAGS := $(CFLAGS) LIBPATHS := -L$(DEVKITARM)/lib -L$(DEVKITPRO)/libnds/lib LIBS := -lnds9 LDFLAGS := -specs=ds_arm9.specs DEPSDIR := ./build OFILES := main.o dsSprite.o all: test.nds test.arm9:$(OFILES) clean: rm -f *.o |
I am trying to build with devkitpro19 and the latest libnds.