[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help to build libssh on windows
[Thread Prev] | [Thread Next]
[Date Prev] | [Date Next]
- Subject: Re: Help to build libssh on windows
- From: Les Trois Toques <les3toques@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Thu, 23 Sep 2010 17:05:09 +0200
- To: libssh@xxxxxxxxxx
i try to compile this:
#include <libssh/libssh.h>
#include <stdlib.h>
#include <stdio.h>
int main(void)
{
ssh_session my_ssh_session = ssh_new();
if (my_ssh_session == NULL)
exit(-1);
else
{
printf("Initialisation terminé");
ssh_free(my_ssh_session);
}
return 0;
}
when i compile this program: gcc -Ilibsh/include -o sample libssh/sample.c
-L -lssh
i got this message:
/tmp/cc6DVa3x.o: in function 'main.c':
sample.c:(.text+0x12): undefined reference to `ssh_new`
sample.c:(.text+0x3e): undefined reference to 'ssh_free'
collect2: ld returned 1 exit status
what's the problem here ?
| Help to build libssh on windows | Les Trois Toques <les3toques@xxxxxxxxx> |
| Re: Help to build libssh on windows | Andreas Schneider <asn@xxxxxxxxxxxx> |
| Re: Help to build libssh on windows | Les Trois Toques <les3toques@xxxxxxxxx> |
| Re: Help to build libssh on windows | Les Trois Toques <les3toques@xxxxxxxxx> |