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

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

Open
defzhangaa opened this issue Jun 13, 2024 · 0 comments
Open

Comments

@defzhangaa
Copy link

按照操作步骤,直到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

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