MAMEWorld >> Programming
View all threads Index   Flat Mode Flat  

Digitalghost
MAMEHub Creator
Reged: 06/15/10
Posts: 67
Loc: California, USA
Send PM
Compiling MAME with visual studio's compiler
08/10/10 05:47 PM


Hey all,

Here are the main issues that I had to resolve to compile MAME with the visual studio compiler:

1) MSVC uses the file extension to decide whether it's c++ or c code, so all of the c++ files had to have their extensions changed to cpp. Also, I wrote a regex to convert all of the #include "*.c" to #include "*.cpp".
2) "interface" is a keyword in MSVC, so I had to prepend all of the "interface"s with something (e.g. dev_interface).
3) alloc and alloca don't exist, so I changed them to malloc and then freed them from the heap before the data went out of scope

If anyone wants these changes, you can grab the ClientServerMAME code and delete the NSM_* files and the code that references those files. All of the code that uses the ClientServer portion is wrapped around if(netClient) or if(netServer) so it isn't hard to remove. The current (0.2) version of ClientServerMAME is based on MAME 0.138.


Check out MAMEHub here: http://www.mamehub.info/







Entire thread
Subject Posted by Posted on
* Compiling MAME with visual studio's compiler Digitalghost 08/10/10 05:47 PM
. * Re: Compiling MAME with visual studio's compiler lharms  08/14/10 01:09 AM
. * Re: Compiling MAME with visual studio's compiler R. Belmont  08/13/10 04:59 PM
. * Re: Compiling MAME with visual studio's compiler Digitalghost  08/15/10 08:53 PM
. * Re: Compiling MAME with visual studio's compiler drewcifer  08/16/10 12:28 AM
. * Re: Compiling MAME with visual studio's compiler Digitalghost  08/16/10 03:21 AM
. * Re: Compiling MAME with visual studio's compiler R. Belmont  08/18/10 05:08 PM
. * Re: Compiling MAME with visual studio's compiler Digitalghost  08/18/10 06:12 PM
. * Re: Compiling MAME with visual studio's compiler Digitalghost  08/15/10 07:50 PM

Extra information Permissions
Moderator:  Pi 
0 registered and 30 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 6491