mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-07-31 00:03:07 +03:00
doc: Better explain LIBSSH_STATIC.
This commit is contained in:
@ -17,8 +17,14 @@ On UNIX systems linking against the static version of the library is the
|
|||||||
same as linking against the shared library. Both have the same name. Some
|
same as linking against the shared library. Both have the same name. Some
|
||||||
build system require to use the full path to the static library.
|
build system require to use the full path to the static library.
|
||||||
|
|
||||||
On Windows you need to define LIBSSH_STATIC in the compiler command
|
To be able to compile the application you're developing you need to either pass
|
||||||
line. This is required cause the dynamic library needs to specify the
|
LIBSSH_STATIC as a define in the compiler command line or define it before you
|
||||||
dllimport attribute.
|
include libssh.h. This is required cause the dynamic library needs to specify
|
||||||
|
the dllimport attribute.
|
||||||
|
|
||||||
|
@code
|
||||||
|
#define LIBSSH_STATIC 1
|
||||||
|
#include <libssh/libssh.h>
|
||||||
|
@endcode
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user