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

error: undefined symbol: __kmpc_global_thread_num #5896

Open
Beschecher opened this issue Feb 6, 2025 · 0 comments
Open

error: undefined symbol: __kmpc_global_thread_num #5896

Beschecher opened this issue Feb 6, 2025 · 0 comments

Comments

@Beschecher
Copy link

error log | 日志或报错信息 | ログ

1>ld: error: undefined symbol: __kmpc_global_thread_num
1>>>> referenced by cpu.cpp:2779 (D:/vcpkg/buildtrees/ncnn/src/20240102-41fdb5eb85.clean/src\cpu.cpp:2779)
1>>>> cpu.cpp.o:(ncnn::set_cpu_thread_affinity(ncnn::CpuSet const&)) in archive D:\AIVoiceAndroid\AIVoiceAndroid\ncnn\lib\Debug\libncnnd.a
1>>>> referenced by absval.cpp:26 (D:/vcpkg/buildtrees/ncnn/src/20240102-41fdb5eb85.clean/src/layer\absval.cpp:26)
1>>>> absval.cpp.o:(ncnn::AbsVal::forward_inplace(ncnn::Mat&, ncnn::Option const&) const) in archive D:\AIVoiceAndroid\AIVoiceAndroid\ncnn\lib\Debug\libncnnd.a
1>>>> referenced by absval_arm.cpp:31 (D:/vcpkg/buildtrees/ncnn/src/20240102-41fdb5eb85.clean/src/layer/arm\absval_arm.cpp:31)
1>>>> absval_arm.cpp.o:(ncnn::AbsVal_arm::forward_inplace(ncnn::Mat&, ncnn::Option const&) const) in archive D:\AIVoiceAndroid\AIVoiceAndroid\ncnn\lib\Debug\libncnnd.a

context | 编译/运行环境 | バックグラウンド

vcpkg + Visual Studio Android

how to reproduce | 复现步骤 | 再現方法

  1. 使用vcpkg生成在Debug模式下的静态库libncnnd.a
  2. 将头文件和静态库导入到项目中使用
  3. 编译后报错(Visual Studio的NDK版本是23r)

more | 其他 | その他

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

1 participant