#26457 - RiZeUp - Thu Sep 16, 2004 1:23 am
I'm trying to learn how to get multiplayer working on gba. The come i'm looking at is in c while my application is in c++. When I compile my code i get an undefined reference in my ASM code. From what I could gather(correct me if im wrong) g++ mangles the names and functiones when compiling.
What do I need to do to fix this?
here is my makefile(i tried both ways). I'm really running out of ideas.
rem g++ -c -O3 -mthumb -mthumb-interwork main.cpp
rem g++ -c -O3 -mthumb -mthumb-interwork multiplayer.cpp
g++ -Wall -O -mthumb -mthumb-interwork -o mp.elf main.cpp multiplayer.cpp
g++ -mthumb -mthumb-interwork -o mp.elf main.o multiplayer.o
objcopy -O binary mp.elf multiplayer.gba
_________________
~RiZeUp
What do I need to do to fix this?
here is my makefile(i tried both ways). I'm really running out of ideas.
rem g++ -c -O3 -mthumb -mthumb-interwork main.cpp
rem g++ -c -O3 -mthumb -mthumb-interwork multiplayer.cpp
g++ -Wall -O -mthumb -mthumb-interwork -o mp.elf main.cpp multiplayer.cpp
g++ -mthumb -mthumb-interwork -o mp.elf main.o multiplayer.o
objcopy -O binary mp.elf multiplayer.gba
_________________
~RiZeUp