简体   繁体   English

在具有32位二进制文​​件的64位计算机上编译AC程序

[英]Compiling a c program on a 64 bit machine with a 32 bit binary

I am currently trying to use the libssh.dll library to implement ac program that shall connect to remote computers.I am using gcc to compile the program. 我目前正在尝试使用libssh.dll库来实现将连接到远程计算机的ac程序。我正在使用gcc来编译该程序。 When compiling this program, I received this error: 编译该程序时,出现以下错误:

i386 architecture of input file 'libssh/bin/libssh.ddl' is incompatible with i386:x86-64 output

I tried compiling the program with the -m32 flag, but then i receive these errors: 我尝试使用-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

Any ideas how to fix this issue? 任何想法如何解决此问题?

You need to install the 32-bit version of the C library. 您需要安装32位版本的C库。

The 32-bit libraries are required if you want to be able to compile and link with the -m32 option. 如果要能够编译和链接-m32选项,则需要32位库。

Have you installed cygwin32 ? 您安装了cygwin32吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 64位机器上的32位标准C库 - 32 bit standard C library on 64 bit machine 在64位Linux上编译32位应用程序 - Compiling 32 Bit Application on 64 Bit Linux C:在处理 32 位程序时,在 Windows 64 位计算机上将 int 转换为 int* 时出现警告 - C: Warning when casting int to int* on Windows 64-bit machine when working on 32-bit program 在 64 位机器上使用 Visual Studio 编译 32 位应用程序 - Compiling 32-bit application using Visual Studio on a 64-bit machine 在64位计算机上编译32位:/ usr / bin / ld:找不到-l <someLibs> - Compiling 32bit on 64bit machine : /usr/bin/ld: cannot find -l<someLibs> 编译和链接32位架构的C程序 - Compiling and Linking a C-Program for a 32-bit Architecture 从32位计算机转移到64位计算机的通用结构 - Generic structure to transfer from 32 bit machine to 64 bit machine 在64位计算机上处​​理文件,但在32位计算机上开发 - processing files in 64 bit machine but developing in 32 bit machine 在64位计算机上编译tcpsplice - Compiling tcpsplice on a 64-bit machine 在64位Windows 7计算机上编译时,C语言中的Flex会生成不受支持的16位应用程序 - Flex in C produces Unsupported 16 bit Application while compiling on 64 bit Windows 7 Machine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM