Windows 11
VS Community 2022 Version 17.6.2
Trouble compiling
Moderator: Oberlus
Trouble compiling
- Attachments
-
- compileerror.png (21.51 KiB) Viewed 928 times
Re: Trouble compiling
MSBuild version 17.5.1+f6fdcf537 in CI builds fine.
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-04-14.ad50e93.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-04-14.ad50e93.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm
Re: Trouble compiling
Right, so to get that far I need to go into project properties and add to additional include directories: ;./ otherwise its not finding StdAfx
I no longer get the C1001 error if I go into project properties and change C++ language standard from:
preview -features from the latest C++ Working Draft
to:
ISO C+ +20 Standard
but its still not compiling. I get a ton of:
error LNK2001: unresolved external symbol
I no longer get the C1001 error if I go into project properties and change C++ language standard from:
preview -features from the latest C++ Working Draft
to:
ISO C+ +20 Standard
but its still not compiling. I get a ton of:
error LNK2001: unresolved external symbol
- Geoff the Medio
- Programming, Design, Admin
- Posts: 13603
- Joined: Wed Oct 08, 2003 1:33 am
- Location: Munich
Re: Trouble compiling
Make sure you've got the right SDK version and that you've switched the configuration at the top of the GUI to match. GLEW linker errors usually indicate a mismatch. Probly you have it in Win32 mode but have an x64 SDK, since the Win32 config has the "latest" C++ standard set, while the x64 config has C++20 set by default.
Re: Trouble compiling
Yeah that seems to have been the issue. I switched to a command line which seems to run faster then VS andGeoff the Medio wrote: ↑Sun Jun 04, 2023 11:11 am Probly you have it in Win32 mode but have an x64 SDK, since the Win32 config has the "latest" C++ standard set, while the x64 config has C++20 set by default.
msbuild freeorion.sln /p:Configuration=Release /p:Platform=x64 is working so far (it's still compiling).
Edit: it worked