Compiling Mame With Open2x


Creature XL

Active Member
Joined
Jun 12, 2004
Messages
563
Age
47
Location
Hannover.de
Website
Visit site
Hi,
I was doing a little modification to the MAME 5.1 sourcecode (explained in "Cool ideas and...".
The code compiles fine, but the linker gives me hell.
It can't find the "crt1.o". I added the path where it is include using "+Xlinker -L/opt/open2x/..." (the Xlink is there because the MAME Makefile uses "g++" to link. Further I added "/opt/open2x/.../lib/crt1.o" to the list of files we are to be linked.
But ld still says: "Can't find crt1.o". So now I am out of ideas. Any help?
I am useing the open2x toolchain to compile, because it works fine with compiling other stuff like gpSP and my own projects.

thanks for your input,
creature
 
I've only seen this happen when the target uses custom linker scripts. Although not the correct way, you can fix it by copying an appropriate crt1.o into the same dir as the app. It's just one of gcc's startup files.
 
Back
Top