Chinaunix

标题: linux下编译的一个问题 [打印本页]

作者: wd    时间: 2004-06-07 18:41
标题: linux下编译的一个问题
我要编译一个东西,configure的时候出现下面的内容


  1. checking build system type... i686-pc-linux-gnu
  2. checking host system type... i686-pc-linux-gnu
  3. checking target system type... i686-pc-linux-gnu
  4. checking for a BSD-compatible install... /usr/bin/install -c
  5. checking whether build environment is sane... yes
  6. checking for gawk... gawk
  7. checking whether make sets $(MAKE)... yes
  8. checking for g++... no
  9. checking for c++... no
  10. checking for gpp... no
  11. checking for aCC... no
  12. checking for CC... no
  13. checking for cxx... no
  14. checking for cc++... no
  15. checking for cl... no
  16. checking for FCC... no
  17. checking for KCC... no
  18. checking for RCC... no
  19. checking for xlC_r... no
  20. checking for xlC... no
  21. checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables
  22. See `config.log' for more details.
复制代码


我装了gcc,为什么还不行哪?
作者: platinum    时间: 2004-06-07 18:42
标题: linux下编译的一个问题
按提示来看,编译过程没有用到gcc哦~
作者: wd    时间: 2004-06-07 18:45
标题: linux下编译的一个问题
明白了,呵呵
光装gcc没有用,不会编译c++文档
还得装gcc编译c++的支持
作者: platinum    时间: 2004-06-07 20:38
标题: linux下编译的一个问题
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no

应该装上面的任何一种都可以,但唯独没有gcc,呵呵




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2