The TORCS Racing Board
Username: Password: Remember Me?
Lost Password Register
Author: timfoden | Created: 2017-05-09 21:12:27
Subject: My test race 5 (very minor) errors found -- robobug and usr_2017
Hi Guys,

Just a couple of small things found while building with VS2008 on Windows...

usr_2017
========

linemode.cpp and manual_override.cpp don't appear to be included in the supplied
.vcproj file (but are in the VS2006 .dsp)

this results in lots of link errors like the following:
>> driver.obj : error LNK2019: unresolved external symbol "public: __thiscall LLineMode::~LLineMode(void)" (??1LLineMode@@QAE@XZ) referenced in function "public: void * __thiscall LLineMode::`scalar deleting destructor'(unsigned int)" (??_GLLineMode@@QAEPAXI@Z)
>> driver.obj : error LNK2019: unresolved external symbol "public: __thiscall LManualOverrideCollection::~LManualOverrideCollection(void)" (??1LManualOverrideCollection@@QAE@XZ) referenced in function "public: void * __thiscall LManualOverrideCollection::`scalar deleting destructor'(unsigned int)" (??_GLManualOverrideCollection@@QAEPAXI@Z)
... etc...

robobug
=======

robobug.cpp uses snprintf which doesn't exist in the version of Visual Studio I'm
using (VS2008), but can be included from TORCS via the <portability.h> header.

this results in a compile error like the following:
>> .\robobug.cpp(114) : error C3861: 'snprintf': identifier not found

Chees, Tim.

Last Edited: 2017-05-09 21:13:13 by timfoden
    Author: firechief | Created: 2017-05-10 03:09:54
    Subject: Re: My test race 5 (very minor) errors found -- robobug and usr_2017
    Thanks Tim, will fix :)
    Last Edited: 2017-05-10 03:09:54 by firechief
    Author: dummy | Created: 2017-05-10 09:50:49
    Subject: Re: My test race 5 (very minor) errors found -- robobug and usr_2017
    Thanks Tim, replaced snprintf with sprintf.
    Last Edited: 2017-05-10 09:50:49 by dummy