Skip to content

Compiling LegacyClonk fails after following README #137

Description

@Enthusiastus

Following the README.md compiling LegacyClonk on latest Visual Studio 2022 fails with:

Error LNK2038 mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in cmake_pch.cxx.obj C:\Users\amki.AD\LegacyClonk\out\build\x64-Debug\LegacyClonk C:\Users\amki.AD\LegacyClonk\out\build\x64-Debug\fmt.lib(format.obj) 1
Error LNK2038 mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in cmake_pch.cxx.obj C:\Users\amki.AD\LegacyClonk\out\build\x64-Debug\LegacyClonk C:\Users\amki.AD\LegacyClonk\out\build\x64-Debug\fmt.lib(format.obj) 1

Error LNK1319 2 mismatches detected C:\Users\amki.AD\LegacyClonk\out\build\x64-Debug\LegacyClonk C:\Users\amki.AD\LegacyClonk\out\build\x64-Debug\clonk.exe 1

Setting the compilation to "Release" in CMakeSettings.json works and creates a release build just fine. That step isn't mentioned in the README file and I couldn't get a Debug build to work yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions