如何在64位机器上编译32位应用程序? [英] How to compile 32 bit application on 64 bit machine?

查看:221
本文介绍了如何在64位机器上编译32位应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All,


我有一台Linux 64位机器,我已经安装了GCC 3.2.2。

现在我想编译一个32位的小.c文件。我试图使用

-m32选项将文件编译为32位。但我的编译器失败

来识别该选项。

有人可以告诉我如何在64位上编译32位的.c文件

bit machine。


提前致谢

-Vittal

Hello All,

I have a Linux 64 bit machine and I have installed GCC 3.2.2 on it.
Now I want to a compile a small .c file for 32 bit. I tried to use
-m32 option for compiling the file as 32 bit. But my compiler failed
to recognise that option.
Can somebody tell me how I can compile a .c file for 32 bit on a 64
bit machine.

Thanks in advance
-Vittal

推荐答案

Vittal< vs ********* @ yahoo.com>写道:
Vittal <vs*********@yahoo.com> wrote:
Hello All,

我有一台Linux 64位机器,我已经安装了GCC 3.2.2。
现在我要编译一个小的.c文件为32位。我尝试使用
-m32选项将文件编译为32位。但是我的编译器无法识别该选项。
有人可以告诉我如何在64位机器上编译32位的.c文件。
Hello All,

I have a Linux 64 bit machine and I have installed GCC 3.2.2 on it.
Now I want to a compile a small .c file for 32 bit. I tried to use
-m32 option for compiling the file as 32 bit. But my compiler failed
to recognise that option.
Can somebody tell me how I can compile a .c file for 32 bit on a 64
bit machine.




错误的新闻组!在一个讨论您的

平台/系统甚至GNU编译器集合(gnu.gcc)上的编程的小组中发布。

-

Z(Zo**********@daimlerchrysler.com)

LISP值得学习深刻的启蒙经验

当你有了终于明白了;这段经历会让你在剩下的日子里成为更好的程序员。 - Eric S. Raymond



Wrong newsgroup! Post in a group that discusses programming on your
platform/system or even the GNU compiler collection (gnu.gcc).
--
Z (Zo**********@daimlerchrysler.com)
"LISP is worth learning for the profound enlightenment experience
you will have when you finally get it; that experience will make you
a better programmer for the rest of your days." -- Eric S. Raymond


2003年7月10日23:07:50 -0700,

Vittal< vs ***** ****@yahoo.com>写道:
On 10 Jul 2003 23:07:50 -0700,
Vittal <vs*********@yahoo.com> wrote:
Hello All,

我有一台Linux 64位机器,我已经安装了GCC 3.2.2。
现在我要编译一个小的.c文件为32位。我尝试使用
-m32选项将文件编译为32位。但是我的编译器无法识别该选项。
Hello All,

I have a Linux 64 bit machine and I have installed GCC 3.2.2 on it.
Now I want to a compile a small .c file for 32 bit. I tried to use
-m32 option for compiling the file as 32 bit. But my compiler failed
to recognise that option.




新闻组comp.lang.c用于讨论C语言;不是讨论编译器选项的
。您应该在gnu.gcc.help上询问您的

问题,人们在那里讨论gcc。


Martien

- < br $> b $ b |

Martien Verbruggen |我们天生赤裸,潮湿,饥饿。然后

|事情变得更糟。

|



The newsgroup comp.lang.c is for the discussion of the C language; not
for discussion of compiler options. You should probably ask your
question on gnu.gcc.help, where people discuss gcc.

Martien
--
|
Martien Verbruggen | We are born naked, wet and hungry. Then
| things get worse.
|


vs ********* @ yahoo.com (维塔尔)在留言中写道:< f9 ******************** ******@posting.google。 com> ...
vs*********@yahoo.com (Vittal) wrote in message news:<f9**************************@posting.google. com>...
Hello All,

我有一台Linux 64位机器,我已经安装了GCC 3.2.2。
现在我想要编译一个32位的小.c文件。我尝试使用
-m32选项将文件编译为32位。但是我的编译器无法识别该选项。
有人可以告诉我如何在64位机器上编译32位的.c文件。
Hello All,

I have a Linux 64 bit machine and I have installed GCC 3.2.2 on it.
Now I want to a compile a small .c file for 32 bit. I tried to use
-m32 option for compiling the file as 32 bit. But my compiler failed
to recognise that option.
Can somebody tell me how I can compile a .c file for 32 bit on a 64
bit machine.




关闭主题。可能是一些编译器选项 - 一个开关或一个pragma或

的东西。你的文件说了什么?



Off topic. Probably some compiler option - a switch or a pragma or
something. What does your documentation say?


这篇关于如何在64位机器上编译32位应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆