Skip to content
Discussion options

You must be logged in to vote

generate_random_id() is not exposed as part of libtorrent's API. I take it you're linking against libtorrent as a shared library and expect to find this function available to you. It's not. It (probably) works if you link statically against libtorrent. You can also force this function to be exported by building libtorrent in test-mode, where functions that ordinarilly aren't exported are, in order to test them.

You can do that by defining TORRENT_EXPORT_EXTRA as part of the build, or passing export-extra=on to the b2 command line.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AaronBeier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants