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

fix linking error when compiling C example code #111

Closed

Conversation

Diam2023
Copy link

@Diam2023 Diam2023 commented Sep 9, 2023

Added pthread and dl lib for linking
image
image

@kornelski
Copy link
Member

Are you sure libdl is necessary?

I'm also concerned about Windows compatibility, where pthreads will be an inconvenient requirement.

@Diam2023
Copy link
Author

I tested it in Debian and WSL, and both libpthread and libdl were missing. However, I tested it in another Arch today, but the above problem did not occur.
I don’t know if it has something to do with the platform, I will close this PR, thank you.

Test Env:

Debian

  • Linux 8-7-debian 5.10.0-16-amd64 #\1 SMP Debian 5.10.127-2 (2022-07-23) x86_64 GNU/Linux

WSL

  • Linux Diam-WINDOWS 5.15.90.1-microsoft-standard-WSL2 #\1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Arch

  • Linux Arch 6.5.2-arch1-1 #\1 SMP PREEMPT_DYNAMIC Wed, 06 Sep 2023 21:01:01 +0000 x86_64 GNU/Linux

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

Successfully merging this pull request may close these issues.

2 participants