Skip to content

Windows + VS2022 compilation errors (missing includes, linking, incomplete types) #82

@lu-si-ye

Description

@lu-si-ye

Environment:

  • Windows 11
  • Visual Studio 2022 (17.14)
  • CMake 4.3
  • SFML 2.6.2 (x64)
  • GLEW 2.3.1 (x64)
  • GLM 1.0.1

Steps:

  1. Checkout commit e803ca5 (the "ep 4" version)
  2. cmake -S . -B build -G "Visual Studio 17 2022" -A x64
  3. cmake --build build --config Release

Observed issues (all require manual fixes):

  1. Missing includes:

    • STD_Util.h needs
    • Structures_Builder.h needs
    • Several files missing /
  2. CMakeLists.txt:

    • sfml-audio.lib was not linked (needed by Music_Player)
    • GLEW hardcoded to Win32 path, breaks x64 build
  3. Missing function implementation:

    • getFileNamesFromFolder() declared but never implemented
  4. Incomplete type / link errors:

    • CBlock::getData() declared but not defined (fixed by inline dummy in Nodes.h)
    • Block::Data_Holder is forward-declared but never fully defined
    • Multiple files fail with "dummy uses undefined class Block::Data_Holder"
  5. Additional issues:

    • Several struct/class mismatches (C4099 warnings)
    • CMake_minimum_required version triggers deprecation warning

This is not a complaint — just a report in case anyone else tries to build this on Windows.
With the fixes above, the project eventually links and runs (though with warnings).

Thanks for sharing the code.

(Finally, debugging this code has left me completely exhausted. I hope the author will update it as soon as possible and provide detailed instructions.Thank you very much.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions