M-.-n
Member
Hi guys,
I'm in trouble and I don't understand what happens. I use to work with a packaged version of the arm-stuff & MrMirko's sdk.. everything was fine and I was pretty happy. Now, I thought I would be a good boy and upgrade to the latest version of devkitpro and I can't get it to work:
First of all, there's a minor confilicts in the headers. If I do include <stdio.h> & some other part happens to include <gp32.h> there's errors related to redefinitions of GPFILE & the smc_xxx routines. Not that this is a real big deal, I can update the headers, it is more as bug reporting.
Then, I can't get the thing to link. It seems all memory/string related routines are not found; I get thousands of undefined reference to:
> operator new (alltypes)
> opertator delete (all types)
> isalpha,atoi,strlen & related
> memcpy & related
then a couple of
> undefined reference to `__cxa_pure_virtual'
> undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
The makefile structure should be ok since it is outside of the compiler scope. I am using:
CC = $(DEVARM)/bin/arm-elf-gcc
LD = $(DEVARM)/bin/arm-elf-gcc
CFLAGS = -Wall -O4 -s -mtune=arm9tdmi -fomit-frame-pointer\
-ffast-math \
-fno-exceptions \
-c -DPLATFORM_$(PLATFORM)
and
LDFLAGS = -Wall -Wl,-Map,$(EXE).map -specs=gp32.specs
and I am using cygwin (not that it should matter really)
Can anybody tell me wtf is happening ? I'm really puzzled by this !!
Thanks a bunch
I'm in trouble and I don't understand what happens. I use to work with a packaged version of the arm-stuff & MrMirko's sdk.. everything was fine and I was pretty happy. Now, I thought I would be a good boy and upgrade to the latest version of devkitpro and I can't get it to work:
First of all, there's a minor confilicts in the headers. If I do include <stdio.h> & some other part happens to include <gp32.h> there's errors related to redefinitions of GPFILE & the smc_xxx routines. Not that this is a real big deal, I can update the headers, it is more as bug reporting.
Then, I can't get the thing to link. It seems all memory/string related routines are not found; I get thousands of undefined reference to:
> operator new (alltypes)
> opertator delete (all types)
> isalpha,atoi,strlen & related
> memcpy & related
then a couple of
> undefined reference to `__cxa_pure_virtual'
> undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
The makefile structure should be ok since it is outside of the compiler scope. I am using:
CC = $(DEVARM)/bin/arm-elf-gcc
LD = $(DEVARM)/bin/arm-elf-gcc
CFLAGS = -Wall -O4 -s -mtune=arm9tdmi -fomit-frame-pointer\
-ffast-math \
-fno-exceptions \
-c -DPLATFORM_$(PLATFORM)
and
LDFLAGS = -Wall -Wl,-Map,$(EXE).map -specs=gp32.specs
and I am using cygwin (not that it should matter really)
Can anybody tell me wtf is happening ? I'm really puzzled by this !!
Thanks a bunch