Skip to content

Compile bug: error C2065: 'M_PI' : undeclared identifier on Windows 11 #34

Description

@NERVxxxx

Git commit

x

Operating systems

Windows

GGML backends

CUDA

Problem description & steps to reproduce

Hello,

I'm trying to compile on windows 11 but have an error. I tried on Linux and its working ...

Here what I did :
git clone https://github.com/TheTom/llama-cpp-turboquant.git : OK
cd llama-cpp-turboquant : OK
git checkout feature/turboquant-kv-cache : OK
cmake -B build -DGGML_CUDA=ON -DCMAKE_BUILD_TYPE=Release : OK
cmake --build build -j : NOK

...
Building Custom Rule C:/Users/user/Downloads/llama-cpp-turboquant/tools/mtmd/CMakeLists.txt
C:\Users\user\Downloads\llama-cpp-turboquant\ggml\src\ggml-turbo-quant.c(61,45): error C2065: 'M_PI' : identificateur non déclaré [C:\Users\user\Downloads\llama-cpp-turboquant\build\ggml\src\ggml-base.vcxpr
oj]
Building Custom Rule C:/Users/user/Downloads/llama-cpp-turboquant/tools/mtmd/CMakeLists.txt
...

Can you help me ?

First Bad Commit

No response

Compile command

cmake --build build -j

Relevant log output

Building Custom Rule C:/Users/user/Downloads/llama-cpp-turboquant/tools/mtmd/CMakeLists.txt
C:\Users\user\Downloads\llama-cpp-turboquant\ggml\src\ggml-turbo-quant.c(61,45): error C2065: 'M_PI' : identificateur non déclaré [C:\Users\user\Downloads\llama-cpp-turboquant\build\ggml\src\ggml-base.vcxpr
oj]
Building Custom Rule C:/Users/user/Downloads/llama-cpp-turboquant/tools/mtmd/CMakeLists.txt

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