Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual studio build fails with 'undeclared identifier' #519

Closed
trrahul opened this issue Mar 26, 2023 · 2 comments
Closed

Visual studio build fails with 'undeclared identifier' #519

trrahul opened this issue Mar 26, 2023 · 2 comments

Comments

@trrahul
Copy link

trrahul commented Mar 26, 2023

I am getting the following errors when building from visual studio 2022. Any ideas why?

llama.cpp\ggml.c(5838,5): error C2065: 'ne12': undeclared identifier
llama.cpp\ggml.c(5839,5): error C2065: 'ne13': undeclared identifier
llama.cpp\ggml.c(5840,5): error C2065: 'ne2': undeclared identifier
llama.cpp\ggml.c(5840,5): error C2065: 'ne12': undeclared identifier
llama.cpp\ggml.c(5841,5): error C2065: 'ne3': undeclared identifier
llama.cpp\ggml.c(5841,5): error C2065: 'ne13': undeclared identifier
llama.cpp\ggml.c(5844,5): error C2065: 'nb00': undeclared identifier
llama.cpp\ggml.c(5852,5): error C2065: 'ne0': undeclared identifier
llama.cpp\ggml.c(5853,5): error C2065: 'ne1': undeclared identifier
llama.cpp\ggml.c(5854,5): error C2065: 'ne2': undeclared identifier
llama.cpp\ggml.c(5855,5): error C2065: 'ne3': undeclared identifier

Generated the solution using these commands.

cmake -S . -B build/ -D CMAKE_BUILD_TYPE=Release
cmake --build build/ --config Release
@slaren
Copy link
Member

slaren commented Mar 26, 2023

Some variables that are only used in an assert were commented out in a recent change, and that may have broken debug builds. Building on release should fix that for now, or just uncomment the lines above the errors.

@slaren
Copy link
Member

slaren commented Mar 26, 2023

This should be fixed in 939ad2d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants