| Compiler Problem[message #102395]
|
Sun, 28 May 2006 14:50
|
|
KeldorKatarn |
 |
Messages:37
Registered:May 2006 Location: Germany |
|
|
Hi guys,
I downloaded the JA2 source code (the original one, no 1.13 or UB) and tried to compile it with VC++ 2005. I get many errors that I think may be caused by the fact that the code is C and I am trying to compile it as C++.
Can anyone confirm this? How much work is it to tweak the code far enough towards C++ to make it at least ready to be compiled any working without transforming the entire code to C++?
I just wanted to play aroung with the code a bit, I didn't plan on making any major changes, since I don't have time for that right now anyway. So I'd just like to get the code to compile so I can try out a few changes and see what they do to the game. But so far, with the code not even compiling as it is, I can't really start doing anything to it =)
Any help would be appreciated.
Report message to a moderator
|
Private 1st Class
|
|
|
|
| Re: Compiler Problem[message #102396]
|
Sun, 28 May 2006 22:09 
|
|
| Realist |
 |
Messages:28
Registered:September 2005 Location: Duesseldorf, Germany |
|
|
Well, the original code as it is compiles only with VC6. Porting it to VC2003 or VC2005 actually requires quite a lot of work. I've tried it myself once but gave up rather quickly.
Fortunately we don't have to re-invent the wheel since the Whitehat Project did a port to VC2003 which is also the code on which 1.13 is based on. So, if you're happy with any of these two code versions, I'd recommend using that. Someone here also provided the VC2005's project files which make it easy to upgrade the code to VC2005.
However, you will need to install Microsoft's Platform SDK, too, which brings the old header files and libraries needed to compile the code.
Report message to a moderator
|
Private 1st Class
|
|
|
|
|
|
|
|
|
|
|
|