Skip to content

error: undefined symbol: __kmpc_global_thread_num #5896

Open
@Beschecher

Description

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 | 其他 | その他

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions