[Libssh] undefined refs linking to server functions
Aris Adamantiadis
aris at 0xbadc0de.be
Fri Apr 11 09:33:07 CEST 2008
Matt Lawson a écrit :
> Hi,
>
> I've been using the libssh library successfully for
> while from a shared library, but only the 'client'
> functions.
>
> Now I'm interested in doing some server functions as
> well. So I followed the instructions here:
>
> http://0xbadc0de.be/wiki/libssh:newapi
>
> My application compiles fine, when I try to link
> though, a bunch of the server type functions come back
> as undefined:
> undefined reference to
> `ssh_bind_set_options(ssh_bind_struct*,
> ssh_options_struct*)'
> undefined reference to
> `ssh_bind_listen(ssh_bind_struct*)'
> undefined reference to
> `ssh_bind_set_blocking(ssh_bind_struct*, int)'
> undefined reference to
> `ssh_bind_free(ssh_bind_struct*)'
> undefined reference to `ssh_bind_new()'
>
Hello,
Could you paste the complete link line ? I guess you're trying to link
against an older version of libssh that doesn't provide those symbols.
Regards,
Aris
More information about the Libssh
mailing list