Skip to content

c++ ort make的时候报错undefined reference to `OrtGetApiBase' #265

@defzhangaa

Description

@defzhangaa

按照操作步骤,直到cmake .. 都正常,然后执行make -j就不行了
报错信息如下:
[ 50%] Building CXX object CMakeFiles/demo.dir/main.cpp.o
[100%] Linking CXX executable demo
/usr/bin/ld: CMakeFiles/demo.dir/main.cpp.o: in function __static_initialization_and_destruction_0(int, int)': main.cpp:(.text+0x17d6): undefined reference to OrtGetApiBase'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/demo.dir/build.make:132: demo] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/demo.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions