Undefined reference when trying to use lt::dht::generate_random_id() #7893
Unanswered
AaronBeier
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. As the title suggests i'm trying to use
lt::dht::generate_random_id()
but getwhen trying to compile my program. I found #7447 which mentions i need to set
TORRENT_USE_LIBCRYPTO
for openssl. I'm on arch linux and the pkgfile requires openssl so i assume libcrypto iis what i want: https://gitlab.archlinux.org/archlinux/packaging/packages/libtorrent-rasterbar/-/blob/main/PKGBUILD?ref_type=headsAdding -lcrypto and -lssl does nothing. I've also tried defining that at the top of my code and in my gcc command via -D but still get the error. Any ideas? I'd be fine with switching to cmake if that would make it easier.
Beta Was this translation helpful? Give feedback.
All reactions