当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 3 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 追问kdevelop的配置
帖子发表于 : 2007-06-29 4:58 

注册: 2007-05-17 9:26
帖子: 22
送出感谢: 0 次
接收感谢: 0 次
我在kdevelop里面写好程序,按照扫盲贴的步骤运行到第二步[Buide]-》[Run Config]出现如下错误

checking for C++ compiler default output file name...
configure: error: C++ compiler cannot create executables
See `config.log' for more details.

请问怎么办?
我是新人./config命令不知道在哪儿输入,在终端里输入说是非法命令,还有,怎么看我的config.log文件?
对了,我的kdevelop怎么按F1没有帮助文档
请问怎么看到帮助文档?


页首
 用户资料  
 
2 楼 
 文章标题 : 找到config.log啦
帖子发表于 : 2007-06-29 5:43 

注册: 2007-05-17 9:26
帖子: 22
送出感谢: 0 次
接收感谢: 0 次
找到config.log啦,在我工程的debug文件夹里
帮忙看一下为什么出错的
是不是环境还没搞定阿

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.61. Invocation command line was

$ /home/newflypig/helloword/configure --enable-debug=full

## --------- ##
## Platform. ##
## --------- ##

hostname = newflypig
uname -m = i686
uname -r = 2.6.20-16-generic
uname -s = Linux
uname -v = #2 SMP Thu Jun 7 20:19:32 UTC 2007

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1723: checking for a BSD-compatible install
configure:1779: result: /usr/bin/install -c
configure:1790: checking whether build environment is sane
configure:1833: result: yes
configure:1861: checking for a thread-safe mkdir -p
configure:1900: result: /bin/mkdir -p
configure:1913: checking for gawk
configure:1929: found /usr/bin/gawk
configure:1940: result: gawk
configure:1951: checking whether make sets $(MAKE)
configure:1972: result: yes
configure:2283: checking for C++ compiler version
configure:2290: i586-mingw32msvc-c++ --version >&5
/home/newflypig/helloword/configure: line 2291: i586-mingw32msvc-c++: command not found
configure:2293: $? = 127
configure:2300: i586-mingw32msvc-c++ -v >&5
/home/newflypig/helloword/configure: line 2301: i586-mingw32msvc-c++: command not found
configure:2303: $? = 127
configure:2310: i586-mingw32msvc-c++ -V >&5
/home/newflypig/helloword/configure: line 2311: i586-mingw32msvc-c++: command not found
configure:2313: $? = 127
configure:2336: checking for C++ compiler default output file name
configure:2363: i586-mingw32msvc-c++ -O0 -g3 conftest.cpp >&5
/home/newflypig/helloword/configure: line 2364: i586-mingw32msvc-c++: command not found
configure:2366: $? = 127
configure:2404: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "helloword"
| #define VERSION "0.1"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2411: error: C++ compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-O0 -g3'
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=i586-mingw32msvc-c++
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /home/newflypig/helloword/missing --run aclocal-1.10'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /home/newflypig/helloword/missing --run tar'
AUTOCONF='${SHELL} /home/newflypig/helloword/missing --run autoconf'
AUTOHEADER='${SHELL} /home/newflypig/helloword/missing --run autoheader'
AUTOMAKE='${SHELL} /home/newflypig/helloword/missing --run automake-1.10'
AWK='gawk'
CPPFLAGS=''
CXX='i586-mingw32msvc-c++'
CXXDEPMODE=''
CXXFLAGS='-O0 -g3'
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/newflypig/helloword/missing --run makeinfo'
OBJEXT=''
PACKAGE='helloword'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
SET_MAKE=''
SHELL='/bin/bash'
STRIP=''
VERSION='0.1'
ac_ct_CXX=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=' -I$(srcdir)'
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='$(SHELL) /home/newflypig/helloword/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE "helloword"
#define VERSION "0.1"

configure: exit 77


页首
 用户资料  
 
3 楼 
 文章标题 :
帖子发表于 : 2008-01-07 14:55 

注册: 2007-11-14 18:30
帖子: 6
送出感谢: 0 次
接收感谢: 0 次
确认你已经安装了g++后,按照下面的方式操作:

在kdevelop 中开启Project Options,然后在Configure Options的内容中,分别确认C和c++使用的
compiler,在各自的Compiler command(cc)和Compiler command(cxx)中分别填入gcc和g++.在对话框里面按下OK之后, IDE会问你是否要重建,选rerun即可。


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 3 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 3 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译