[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: undefined reference to `ssh_new`


Hi,

You probably forgot to link with libssh. If you're compiling by hand,
just add -lssh to the command line, or if you're using an IDE, configure
it to link with the "ssh" library.

Aris

Shawn Braune a écrit :
> Yes, I am new to this library and i guess on the intermediate level of
> programing, but when I was just trying to try out libssh by just
> declaring a session and using the ssh_new() I get this when I compile it
> 
> /tmp/ccK5xvPt.o: In function `main':
> test.c:(.text+0xa): undefined reference to `ssh_new'
> collect2: ld returned 1 exit status
> 
> I honestly I am stumped on this, and it is most likely a easy fix but I
> am stumped. Could anyone possible point me in the right direction??
> 
> 


Follow-Ups:
Re: undefined reference to `ssh_new`Shawn Braune <n30h4x@xxxxxxxxx>
References:
undefined reference to `ssh_new`Shawn Braune <n30h4x@xxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org