My notes for compiling Torcs with vs 2005 (vc8)

"ju jackie" <[email protected]>
Newsgroups gmane.games.torcs.devel
Message-ID <[email protected]>
Compilation under vc6 is very smooth, but same job with vc8 is tough enough.
Finally compilation and running is OK with vc8(2005), and my notes is
following, hope to be helpful to others may concern:

1. modify winnt.h line 222
#define POINTER_64 __ptr64
typedef void *PVOID;
typedef void * POINTER_64 PVOID64;

2. In project client and track, use code generation option
"multithread", don't use "multithread dll"

3. add link option "/force:multiple" in case symbol redefinition warning

4. when compiling client project, there will be error LNK2001:
unresolved external symbol _errno
create a new cpp to sovle it
extern "C"
{
int __mb_cur_max;
unsigned short* _pctype;
int errno;
}

5. fix errors caused by type-casting check and windows API change
(like sqrt(..) )


Cheers,
Jackie Ju

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.