Welcome!

General Emulation => MAME => Topic started by: XorXe on December 19, 2005, 09:21:31 PM

Title: Compiling problems =(
Post by: XorXe on December 19, 2005, 09:21:31 PM
Hi guys i try to compile ekmame, but i have problems in fronthlp.c i have a sintax errors  :confused: but i never touch this file, this is the error.

(http://img474.imageshack.us/img474/6789/ms0pq.jpg)

and this in my fronthlp.c (http://ccc.1asphost.com/XorXe/fronthlp.c)
Title: Re: Compiling problems =(
Post by: iq_132 on December 20, 2005, 04:24:19 AM
Have you tried deleting your obj dir?  It's possible that it just didn't build correctly the first time.
Title: Re: Compiling problems =(
Post by: XorXe on December 20, 2005, 05:31:33 AM
Yes i delete the objet dir but dont work  :confused:

And i replace 421 to 440 lines for other source (same lines) but doesnt work.
Title: Re: Compiling problems =(
Post by: iq_132 on December 22, 2005, 07:03:01 PM
I think the problem may be here:

Code: [Select]
#ifdef UNICODE
WCHAR tname[MAX_PATH];
MultiByteToWideChar(CP_ACP, 0, name, -1, tname, sizeof(tname) / sizeof(tname[0]));
#else
const char *tname = name;
#endif

Are you defining UNICODE or no?
If you're not, I'd suggest commenting out:
// WCHAR...
// MultiByte..
Title: Re: Compiling problems =(
Post by: XorXe on December 23, 2005, 12:46:08 AM
mmm i think unicode is only for compiling in asian languajes, but im compile in english.

And i modify fronthlp.c like this

Code: [Select]
#ifdef UNICODE
// WCHAR tname[MAX_PATH];
// MultiByteToWideChar(CP_ACP, 0, name, -1, tname, sizeof(tname) / sizeof(tname[0]));
#else
const char *tname = name;
#endif

but i already have problems.

(http://img369.imageshack.us/img369/8905/ms220xp.jpg)
Title: Re: Compiling problems =(
Post by: MOONAIR on April 13, 2006, 02:07:11 AM
I meet the same problem.Try to download w32api-3.6.tar.gz....Good Luck!