llama.cpp icon indicating copy to clipboard operation
llama.cpp copied to clipboard

Windows fixes

Open etra0 opened this issue 1 year ago • 0 comments

This would be the initial PR to be able to compile stuff in Windows.

In particular, MSVC is very picky about the features you can use and you cannot.

With C++11

  • You cannot use designated initializers (when initializing a struct, you cannot specify the fields names)
  • You cannot use VLAs, so I changed it to a vector.

A PR for the CMake build system (as agreed in #22) will be separated.

These changes were tested with MSVC 19.34.31937.0 (VS Studio 2022) and in macOS 12.6 with Apple clang version 13.1.6

etra0 avatar Mar 12 '23 03:03 etra0