Link Error - using MS VS 2022 Community

Stuart McCann <[email protected]> Mon, 20 Mar 2023 12:39:39 -0400
Newsgroups gmane.games.torcs.devel
Message-ID <CANLcmOK8Gz6PAPRt-_vfv7v2V08TYF52ukoioQ6351fZcQ0cXg@mail.gmail.com>
--===============0044044132765299161==
Content-Type: multipart/alternative; boundary="000000000000a0a32905f7579288"

--000000000000a0a32905f7579288
Content-Type: text/plain; charset="UTF-8"

Hi All,

I am trying to build Torcs 1.3.8 test code drop. I'm using MS VS 2022
Community and running Windows 11. I've traced the problem down to building
the 'robottools' package. I'm unable to build robottools.dll. The error I'm
getting from robottools.log is:

******
  rttelem.cpp
  rttrack.cpp
C:\torcs-1.3.8-test1\src\libs\robottools\rttrack.cpp(275,5): warning C4305:
'-=': truncation from 'double' to 'tdble'
C:\torcs-1.3.8-test1\src\libs\robottools\rttrack.cpp(275,5): warning C4305:
'+=': truncation from 'double' to 'tdble'
C:\torcs-1.3.8-test1\src\libs\robottools\rttrack.cpp(297,5): warning C4305:
'-=': truncation from 'double' to 'tdble'
C:\torcs-1.3.8-test1\src\libs\robottools\rttrack.cpp(297,5): warning C4305:
'+=': truncation from 'double' to 'tdble'
  Generating Code...
     Creating library .\Debug/robottools.lib and object
.\Debug/robottools.exp
*ul_vs2008_32.lib*(ulError.obj) : error LNK2019: unresolved external symbol
___iob_func referenced in function "void __cdecl ulSetError(enum
ulSeverity,char const *,...)" (?ulSetError@@YAXW4ulSeverity@@PBDZZ)
*ul_vs2008_32.lib*(ulError.obj) : error LNK2019: unresolved external symbol
_vsprintf referenced in function "void __cdecl ulSetError(enum
ulSeverity,char const *,...)" (?ulSetError@@YAXW4ulSeverity@@PBDZZ)
.\Debug\robottools.dll : fatal error LNK1120: 2 unresolved externals
*****

The error code is referencing *ul_vs2008_32.lib* so it seems that VS 2022
needs to have some VS 2008 software installed to build. VS 2008 is out of
support now.

Has anyone encountered this error before? If so, then how did you resolve
it?

Kind Regards,
Stuart

P.S.: I'm new to this codebase and MS Visual Studio so please be patient
with me.  Thanks in advance.

--000000000000a0a32905f7579288
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi All,<div><br></div><div>I am trying to build Torcs 1.3.=
8 test code drop. I&#39;m using MS VS 2022 Community and running Windows 11=
. I&#39;ve traced the problem down to building the &#39;robottools&#39; pac=
kage. I&#39;m unable to build robottools.dll. The error I&#39;m getting fro=
m robottools.log is:</div><div><br></div><div>******</div><div>=C2=A0 rttel=
em.cpp<br>=C2=A0 rttrack.cpp<br>C:\torcs-1.3.8-test1\src\libs\robottools\rt=
track.cpp(275,5): warning C4305: &#39;-=3D&#39;: truncation from &#39;doubl=
e&#39; to &#39;tdble&#39;<br>C:\torcs-1.3.8-test1\src\libs\robottools\rttra=
ck.cpp(275,5): warning C4305: &#39;+=3D&#39;: truncation from &#39;double&#=
39; to &#39;tdble&#39;<br>C:\torcs-1.3.8-test1\src\libs\robottools\rttrack.=
cpp(297,5): warning C4305: &#39;-=3D&#39;: truncation from &#39;double&#39;=
 to &#39;tdble&#39;<br>C:\torcs-1.3.8-test1\src\libs\robottools\rttrack.cpp=
(297,5): warning C4305: &#39;+=3D&#39;: truncation from &#39;double&#39; to=
 &#39;tdble&#39;<br>=C2=A0 Generating Code...<br>=C2=A0 =C2=A0 =C2=A0Creati=
ng library .\Debug/robottools.lib and object .\Debug/robottools.exp<br><b>u=
l_vs2008_32.lib</b>(ulError.obj) : error LNK2019: unresolved external symbo=
l ___iob_func referenced in function &quot;void __cdecl ulSetError(enum ulS=
everity,char const *,...)&quot; (?ulSetError@@YAXW4ulSeverity@@PBDZZ)<br><b=
>ul_vs2008_32.lib</b>(ulError.obj) : error LNK2019: unresolved external sym=
bol _vsprintf referenced in function &quot;void __cdecl ulSetError(enum ulS=
everity,char const *,...)&quot; (?ulSetError@@YAXW4ulSeverity@@PBDZZ)<br>.\=
Debug\robottools.dll : fatal error LNK1120: 2 unresolved externals<br></div=
><div>*****</div><div><br></div><div>The error code is referencing=C2=A0<b>=
ul_vs2008_32.lib</b> so it seems that VS 2022 needs to have some VS 2008 so=
ftware installed to=C2=A0build. VS 2008 is out of support now.=C2=A0=C2=A0<=
/div><div><br></div><div>Has anyone encountered=C2=A0this error before? If =
so, then how did you resolve it?</div><div><br></div><div>Kind Regards,</di=
v><div>Stuart</div><div><br></div><div>P.S.: I&#39;m new to this codebase a=
nd MS Visual Studio so please be patient with me.=C2=A0 Thanks in advance.<=
/div></div>

--000000000000a0a32905f7579288--


--===============0044044132765299161==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============0044044132765299161==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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

--===============0044044132765299161==--