Tag: libssh

使用libssh链接期间未定义的符号

我使用libssh来完成两个系统之间的连接,ssh服务器是redhat,客户端是CentOS。 我的代码编译和链接就好了,除了在运行时我一直看到这个, [1] libssh 0.5.5 (c) 2003-2010 Aris Adamantiadis (aris@0xbadc0de.be) Distributed under the LGPL, please refer to COPYING file for information about your rights, using threading threads_noop [2] Nonblocking connection socket: 4 [2] Socket connecting, now waiting for the callbacks to work [1] Socket connection callback: 1 (0) [1] SSH server banner: SSH-2.0-OpenSSH_5.3 [1] Analyzing […]

在具有32位二进制文​​件的64位机器上编译ac程序

我目前正在尝试使用libssh.dll库来实现应该连接到远程计算机的ac程序。我正在使用gcc来编译程序。 编译此程序时,我收到此错误: i386 architecture of input file ‘libssh/bin/libssh.ddl’ is incompatible with i386:x86-64 output 我尝试用-m32标志编译程序,但后来我收到这些错误: /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-cygwin/4.8.2//libgcc_s.dll.a when searching for -lgcc_s /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-cygwin/4.8.2//libgcc.a when searching for -lgcc /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-cygwin/4.8.2/../../../libcygwin.a when searching for -lcygwin /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-cygwin/4.8.2/libgcc_s.dll.a when searching for -lgcc_s /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-cygwin/4.8.2//libgcc.a when searching for -lgcc 有任何想法如何解决这个问题?