Skip to content

MSVC build issues #139

@Mahno9

Description

@Mahno9

Trying to build raylib-cpp with MSVC I've got two issues:

  1. Incorrect linker flags for MSVC (cl.exe) specified in tests\CMakeLists.txt. Seems like there are flags only for gcc and no option for MSVC.
[build] cl : command line error D8021: invalid numeric argument '/Wextra' [C:\Projects\C++\raylib-cpp\build_vscode\tests\raylib_test.vcxproj]
  1. The next error appear in case of type conversion from initializer list to Vector3:
    (Godbolt link with the error reproducing)
[build] C:\Projects\C++\raylib-cpp\examples\core\core_world_screen.cpp(46,110): error C4576: a parenthesized type followed by an initializer list is a non-standard explicit type conversion syntax [C:\Projects\C++\raylib-cpp\build_vscode\examples\core_world_screen.vcxproj

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