gcc编译标志 [英] gcc compilation flag

查看:217
本文介绍了gcc编译标志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以解释为什么我们在gcc中使用-m标志?
我运行man gcc命令的结果是相当不清楚的任何机构可以解释我在汇编中的这个标志的作用吗?
如何使用-m标记正确的语法?
i需要它,因为我通过make命令运行了一个自动生成的makefile,但它显示了以下错误:
cc1:错误:无法识别的命令行选项-m
任何人都可以解释这是什么?

解决方案

-m 总是跟着一个 machine-option ,这通常是机器相关的。常见的例子是 -m32 -m64 ,用于在支持两者的体系结构上选择32位和64位版本。 p>

听起来您在某处有空或未初始化的makefile变量。


can any body explain me why we use -m flag in gcc ? I run man gcc command result are quite unclear can any body explain me role of this flag in compilation? how to use -m flag its proper syntax? i need it because i'm running a auto generated makefile through make command but it shows an error which is following: cc1: error: unrecognized command line option "-m" can anybody explain what is that ?

解决方案

-m is always followed by a machine-option, which will typically be machine-dependent. Common examples are -m32 and -m64 for selecting 32 bit and 64 bit builds on architectures which support both.

It sounds like you have an empty or uninitialised makefile variable somewhere.

这篇关于gcc编译标志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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