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

vs2010 编译 error C3861: '_InterLockedCompareExchang‘ #123

Closed
XueDx opened this issue Sep 1, 2017 · 6 comments
Closed

vs2010 编译 error C3861: '_InterLockedCompareExchang‘ #123

XueDx opened this issue Sep 1, 2017 · 6 comments

Comments

@XueDx
Copy link

XueDx commented Sep 1, 2017

我用cmake构建vs2010工程,编译时遇到error C3861: '_InterLockedCompareExchange问题。
另外git上以下 vs2013 vs2015 工程,编译通过,修改为vs2010也会遇到同样的C3861问题。
请问 NCNN 能用vs2010编译运行吗?

vs2015 https://github.com/guozhongluo/ncnn-vs2015-examples-demo
vs2013 https://github.com/liyemei/ncnn-windows-vs2013

编译器输出:

Output
1> mat_pixle.cpp
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\memory(1047): error C3861: '_InterLockedCompareExchange': identifier not found
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\memory(1054): error C3861: '_InterLockedIncrement': identifier not found
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\memory(1059): error C3861: '_InterLockedIncrement': identifier not found
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\memory(1064): error C3861: '_InterLockedDecrement': identifier not found
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\memory(1073): error C3861: '_InterLockedDecrement': identifier not found

_InterLockedIncrement 指向 Microsoft Visual Studio 10.0\VC\include\intrin.h line 181,编译器却无法识别。

@cuixing158
Copy link

请问解决了吗,VS2013,ncnn2018012版本遇到同样问题

@guozhongluo
Copy link

guozhongluo commented Feb 7, 2018 via email

@GarrickLin
Copy link

用vs2015编译,遇到同样的错误

@ran130683
Copy link

用vs2015编译,遇到同样的错误 +1

@GarrickLin
Copy link

#283

@nihui
Copy link
Member

nihui commented Apr 7, 2018

fixed in 3977d32

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

6 participants