compile rom with Dev C++ (under windows)

Posted by Jyniver on Fri 02 Apr 2004 10:51 AM — 4 posts, 21,950 views.

Sweden #0
Hi, I have download the rom (2.4b6) source code
and I'm trying to compile it. But its never working.
It's always alots of errors (the program totlay dislike the whole code it seems to ;)..) and the program complaining on that there's no .cpp file.

I'm using Windows and Dev C++

How do I do to make it work...
Canada #1
One of the problems is probably that ROM is C, not C++, I think, and there is a difference, that might explain all the errors. See if you can change the settings in the program to compile under C instead of C++.
Australia Forum Administrator #2
When you start a new posting here there is a message "If there is an error, an exact copy of the error message(s) - or a least the first 100. If you make a post saying 'I got an error' then we just have to reply asking what the error was, which wastes time.".

It is fascinating to know "It's always alots of errors" but *what* errors, that is the question.

USA #3
Download this version and compile it under msvs c++ it worked fine for me.
http://www.mudmagic.com/cgi-bin/codes/jump.cgi?ID=343

1.) Start a new project and make it an empty win32 console, dont use win32 application. Name your project in the upper box on the right. Then select an empty project.

2.) Once complete you will need to add these two librarys otherwise you will have linking problems. Under link tab add wsock32.lib & winmm.lib.

To do this just goto ptoject at top and goto settings.

Then click on the Link tab and goto object/libary moduels: click in the box and press end then add wsock32.lib winmm.lib.
Then click ok.

3.) On the bottom right you need to click on File View the click the plus next to yourmudname files at top left.

Right click on the Source folder and then add files to folder. Goto the rom24 folder in the src folder and copy all the .c files into this folder.

The right click on the Header folder and the add files to folder. Goto the rom24 folder in the src folder and move all the .h folders into this one.

4.) Just click on Build at the top and goto build yourfilename.exe and builf the file.

All done this is what worked for me.