C compiler cannot create executables

Feb 6th, 2009

转载本站文章请注明,转载自:扶凯[http://www.php-oa.com]

本文链接: http://www.php-oa.com/2009/02/06/c-compiler-cannot-create-executables.html

 

在64位的机器上编译软件时,常常出现如下这个错

checking for C compiler default output file name… configure: error: C compiler cannot create executables

其实不是C编译器有问题,是因为env中一个变量设置过了,所以认为不对,报上面的错.解决的方法很简单

CFLAGS="”

这样给CFLAGS变量 给个空值就行了.

Del.icio.us Google书签 Digg Live Bookmark Technorati Furl Yahoo书签 Facebook 百度搜藏 新浪 ViVi 365Key 网摘 天极网摘 和讯网摘 博拉网 POCO 网摘 饭否 QQ 书签 Digbuzz 我挖网 Mister Wong
Tags:
  1. falcon
    Mar 14th, 2009 at 11:20
    Reply | Quote | #1

    哎,centos4.7 编译zabbix出错了,checking for C compiler default output file name… configure: error: C compiler cannot create executables
    试了好多方法,都没解决。。