ok i found this in the main.c:
int main(int argc, char **argv)
should it be:
int SDL_main(int argc, char **argv)

05, at 3:24 AM, smf wrote:

It works it's way through based on dependencies & what needs compiling.
If you build everything as standard then change the makefile it won't build m68kmake again.
But you'll need to trick it into building the file with main() in after you change it with:
$ touch filewithmainin.c

So that it builds it with the new CFLAGS.

I don't have the source here so I can't tell you where it is but grep should be able to help.
In the src directory should be another directory with the xmame code in. Go to that directory
and grep for it.

You could just find the main function in the xmame source and change it to SDL_main.

Phill

----- Original Message ----- From: "Scott Wagner" <[EMAIL PROTECTED]>
Sent: Saturday, October 01, 2005 8:54 AM
Subject: Re: [Xmame] Runtime errors



Sorry kind of redundent but where in the make file does it tell gcc  what to build and when. Does it just step down the unix.mak or is  there a predefined order.

On Oct 1, 2005, at 2:38 AM, smf wrote:


The problem here is that mame needs the cflags, but m68kmame doesn't.
You can work around this by building everything with the standard cflags, then change them to the one for sdl and touch the file with main() in.

Phill

----- Original Message ----- From: "Scott Wagner" <[EMAIL PROTECTED]>
Sent: Saturday, October 01, 2005 8:10 AM
Subject: Re: [Xmame] Runtime errors




Ok instead of putting this as a cflags i put it in the linker. As  LD was the original problem. Here was the problem Lets hope it  works.

Scottietrek:~/xmame-0.100 scott$ make -f makefile.unix
M68K make src/cpu/m68000/m68kmake.c...
/usr/bin/ld: Undefined symbols:
_main
collect2: ld returned 1 exit status
make: *** [xmame.obj/cpu/m68000/m68kmake] Error 1

It seemed more like this was supposed to be a part of the linking.



On Sep 30, 2005, at 8:32 PM, Carl M. Fongheiser wrote:



On Fri, 2005-09-30 at 18:53 -0500, Scott Wagner wrote:



Ok i have done a little research on these pool errors . It seems to
be a normal issue. but my app still does not run. I am going to try
yet another opt levels. I have tried -0s and none i am going to try
-3s now. anyway here is the error.




The problem is that SDL needs to run code before main() gets  going on
Mac OS X.  You can fix this (in a hacked fashion) by adding:

CFLAGS+= -Dmain=SDL_main

somewhere in the Makefile after the other lines that set CFLAGS.

Carl Fongheiser


_______________________________________________
Xmame mailing list





_______________________________________________
Xmame mailing list



-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.9/115 - Release Date: 29/09/2005






_______________________________________________
Xmame mailing list




_______________________________________________
Xmame mailing list



-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.9/115 - Release Date: 29/09/2005





_______________________________________________
Xmame mailing list


Reply via email to