[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Suggestion: mention ssh_init() in "The Tutorial"?
[Thread Prev] | [Thread Next]
[Date Prev] | [Date Next]
- Subject: Suggestion: mention ssh_init() in "The Tutorial"?
- From: Mason Hieb <masonbdhieb@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Thu, 30 Dec 2021 10:45:51 -0600
- To: libssh@xxxxxxxxxx
Hi, I'm a complete newbie to this library, and was *really* struggling to
get the tutorial to work for me because I kept getting the "Library Not
Initialized" error but couldn't understand why.
I discovered - after much frustration and searching - that because I'm
statically linking the library, I need to add "ssh_init()" to the start of
my program (and "ssh_finalize()" at the end). The tutorial assumes a
dynamic build.
I humbly recommend, from my newbie perspective, that it might be good to
mention this in Chapter 1 of the tutorial ("if you are using a static
library build of sshlib, then you must add these functions" etc)
Thanks!
Archive administrator: postmaster@lists.cynapses.org