#22435 - auchzahgen - Mon Jun 21, 2004 8:07 am
Hi, I'm trying to write some C++ code for the GBA using devkitadv-r5-beta-3 but I keep getting link errors when I build it. The code I'm compiling is:
and the error's I'm getting are:
ld: warning: cannot find entry symbol _start; defaulting to 08000000
test.o: In function `main':
test.o(.text+0x14): undefined reference to `operator new(unsigned long)'
test.o(.text+0x20): undefined reference to `operator delete(void*)'
The commands I'm using to compile are:
gcc -c test.cpp
ld -o test.elf test.o
I'm guessing that the linker isn't finding the proper libraries to link with. I don't know how to fix this though. Can somebody give me a hand?
Thanks,
-auchzahgen
Code: |
int main()
{ int *test = new int; delete test; return 0; } |
and the error's I'm getting are:
ld: warning: cannot find entry symbol _start; defaulting to 08000000
test.o: In function `main':
test.o(.text+0x14): undefined reference to `operator new(unsigned long)'
test.o(.text+0x20): undefined reference to `operator delete(void*)'
The commands I'm using to compile are:
gcc -c test.cpp
ld -o test.elf test.o
I'm guessing that the linker isn't finding the proper libraries to link with. I don't know how to fix this though. Can somebody give me a hand?
Thanks,
-auchzahgen