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

Errors while building gkuniq #37

Open
aksenovdeca opened this issue Jul 22, 2024 · 1 comment
Open

Errors while building gkuniq #37

aksenovdeca opened this issue Jul 22, 2024 · 1 comment

Comments

@aksenovdeca
Copy link

Platform Win10,SDK 10.0.26100.0
While trying building project for VS2022 I get such errors
7>E:\GKlib\test\gkuniq.c(79,13): error C2065: 'asm': undeclared identifier
7>E:\GKlib\test\gkuniq.c(79,13): error C2143: syntax error: missing ';' before 'volatile'
7>E:\GKlib\test\gkuniq.c(85,11): error C2065: 'asm': undeclared identifier
7>E:\GKlib\test\gkuniq.c(85,11): error C2143: syntax error: missing ';' before 'volatile'

I don't have any idea how to fix it

@jinTai-GitHub
Copy link

I meet this error too. This function which met errors seems not important.
So I slove this issue by set "NO_X86" during cmake ("-DNO_X86=ON"), so that this function does not work.
This is how i build GKlib:

git clone https://github.com/KarypisLab/GKlib.git
cd GKlib
mkdir build
cd build

cmake .. -G "Visual Studio 17 2022" -A x64 -DNO_X86=ON -DOPENMP=ON -DCMAKE_INSTALL_PREFIX="D:/Programs/buildLibs/GKlib"

open .sln file in vs studio 2022, switch to release and generate "F7", many warns but no errors.

Run Command Prompt as Administrator:
cmake -DBUILD_TYPE=Release -P .\cmake_install.cmake

the files appears in “D:/Programs/buildLibs/GKlib”

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