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

Re: does libssh support Mac OS X?


thanks,i got

On 2014年9月19日, at 上午12:53, Andreas Schneider <asn@xxxxxxxxxxxxxx> wrote:

> On Friday 19 September 2014 00:30:07 wenew zhang wrote:
>> i use -L option but still get the symbols error!
>> 
>> thanks
>> 
>> wenewzha:examples wenewzhang$ clang senddata.c -I/opt/local/include
>> -L/opt/local/lib -lssh Undefined symbols for architecture x86_64:
>>  "_connect_ssh", referenced from:
>>      _main in senddata-5e6199.o
>> ld: symbol(s) not found for architecture x86_64
>> clang: error: linker command failed with exit code 1 (use -v to see
>> invocation) wenewzha:examples wenewzhang$
> 
> libssh doesn't provide a symbol named 'connect_ssh'. If you try to compile the 
> senddata.c from the examples directory you also need to compile and link
> 
>   authentication.c                                                                                                                                                                   
>   knownhosts.c                                                                                                                                                                       
>   connect_ssh.c
> 
> see examples/CMakeLists.txt ...
> 
> If you compile from source, the examples are compiled by default ...
> 
> 
> 
> 	-- andreas
> 
> -- 
> Andreas Schneider                   GPG-ID: CC014E3D
> www.cryptomilk.org                asn@xxxxxxxxxxxxxx
> 
> 


References:
Re: does libssh support Mac OS X?Andreas Schneider <asn@xxxxxxxxxxxxxx>
Re: does libssh support Mac OS X?wenew zhang <wenewboy@xxxxxxxxx>
Re: does libssh support Mac OS X?Andreas Schneider <asn@xxxxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org