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

[Bug]: link error: undefined reference to `xqc_engine_get_conn_by_scid' #464

Closed
zheisure opened this issue Dec 3, 2024 · 1 comment
Closed

Comments

@zheisure
Copy link
Contributor

zheisure commented Dec 3, 2024

What happened?

如标题所示,在使用xquic动态库时,发生链接错误undefined reference to `xqc_engine_get_conn_by_scid'

Steps To Reproduce

编译环境:
CMake Version: 3.29.7
CMake Generator: Ninja
Operating System: Ubuntu22.04(Linux 5.15.167.4-microsoft-standard-WSL2)
Compiler: GNU 11.4.0
Building with dynamic libssl

编写demo,demo中只要调用了 xqc_engine_get_conn_by_scid就会发生链接错误

Relevant log output

[build] /usr/bin/ld: code/client/CMakeFiles/client.dir/App.cpp.o: in function `App::On_conn_create_notify(xqc_connection_s*, xqc_cid_s const*, void*, void*)':
[build] /***/App.cpp:28: undefined reference to `xqc_engine_get_conn_by_scid'
[build] collect2: error: ld returned 1 exit status
zheisure added a commit to zheisure/xquic that referenced this issue Dec 3, 2024
Yanmei-Liu pushed a commit that referenced this issue Dec 4, 2024
@Yanmei-Liu
Copy link
Collaborator

Thanks for the solution in #465. The PR has been merged.

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

2 participants