Re: a query about TORCS

"#PAN KE#" <[email protected]> Thu, 6 Aug 2009 18:59:31 +0800
Newsgroups gmane.games.torcs.devel
Message-ID <7E6A13108843344DB501A16A7297FD3F02C4A353@MAIL22.student.main.ntu.edu.sg>
Dear Folks,
 
I think I may know about the reason now. As TORCS used the plib open GL library, I also need to recompile the plib library with the multi-threaded C Runtime library.
 
Regards,
Pan Ke

________________________________

From: #PAN KE# [mailto:[email protected]]
Sent: Thu 8/6/2009 6:31 PM
To: [email protected]
Subject: [Torcs-devel] a query about TORCS


Dear Folks,
 
I have a query about the compilation and execution of TORCS. The platform I am working on is Windows VC6. I have downloaded the TORCS source code and compiled and executed it successfully under VC6 with the default debug mode setting (C Runtime library used is Debug Single Threaded).
 
With the code unchanged, I change the C Runtime library to Debug Multithreaded DLL, the compilation complains about the missing definition of _errno. I solved this compilation error with the addition of a libc_errno.c with the following code in the client project:
 
extern int * _errno(); 
int errno() { return (*_errno()); };
 
The compilation works fine. However, when I run it, a problem occurs complaing about access violation.
 
Does anyone know the reason? Why just changing the usage of single threaded library to the usage of multithreaded library causes such a serious problem?
 
Thanks very much.
 
Regards,
Pan Ke

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

_______________________________________________
Torcs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/torcs-devel