ggml.c syntax errors when trying to build with cmake #952
Replies: 4 comments 5 replies
-
I assume it's the |
Beta Was this translation helpful? Give feedback.
-
Removing the restrict keyword allowed compilation with cmake on windows for me. |
Beta Was this translation helpful? Give feedback.
-
If you are using visual studio, check if it is newer than "Visual Studio 2019 version 16.8". /std::c11 is supported since then. CMake does not append the /std::c11 flag for older version of visual studio c compiler either. |
Beta Was this translation helpful? Give feedback.
-
the error is in the cmakelists and it the syntax error on new versions for me, it a bug |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm following the instructions in the Readme exactly as specified. The
cmake ..
command worked just fine, but when I runcmake --build . --config Release
I am immediately confronted with more than a hundred syntax errors, starting withggml.h(811,63): error C2146: syntax error: missing ')' before identifier 'x'
and ending withggml.c(10843,31): fatal error C1003: error count exceeds 100; stopping compilation
.Any suggestions for what the issue might be?
Beta Was this translation helpful? Give feedback.
All reactions