QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 963|回复: 4

在rh8.0上编译myicqd0.9b2出现如下错误

[复制链接]
发表于 2003-1-10 10:58:22 | 显示全部楼层 |阅读模式
#./configure --prefix=/server/myicqd
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for a C-Compiler...
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking how to run the C preprocessor... gcc -E
checking for a C++-Compiler...
checking for g++... g++
checking whether the C++ compiler (g++  -s) works... yes
checking whether the C++ compiler (g++  -s) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether g++ supports -fno-exceptions... yes
checking whether g++ supports -fno-rtti... yes
checking whether g++ supports -fno-check-new... yes
checking whether g++ supports -fexceptions... yes
checking whether g++ supports -frtti... yes
checking how to run the C++ preprocessor... g++ -E
checking whether g++ supports -frepo... yes
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking for object suffix... o
checking for executable suffix... no
checking for ranlib... ranlib
checking for strip... strip
updating cache ./config.cache
loading cache ./config.cache within ltconfig
checking for objdir... .libs
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.lo... yes
checking if g++ supports -fno-rtti -fno-exceptions ... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... Linux ld.so
checking command to parse /usr/bin/nm -B output... ok
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for dlopen in -ldl... yes
checking for dlfcn.h... yes
checking whether a program can dlopen itself... no
creating libtool
updating cache ./config.cache
loading cache ./config.cache
checking for dlopen in -ldl... (cached) yes
checking for shl_unload in -ldld... no
checking for extra includes... no
checking for extra libs... no
updating cache ./config.cache
creating ./config.status
creating Makefile
creating myicqd/Makefile
creating myicqd/docs/Makefile
creating myicqd/docs/en/Makefile
creating myicqd/des/Makefile
creating config.h

#make
make  all-recursive
make[1]: Entering directory `/home/work/myicqd-0.9b2'
Making all in myicqd
make[2]: Entering directory `/home/work/myicqd-0.9b2/myicqd'
Making all in des
make[3]: Entering directory `/home/work/myicqd-0.9b2/myicqd/des'
gcc -DHAVE_CONFIG_H -I. -I. -I../..     -O2 -c des.c
rm -f libdes.a
ar cru libdes.a des.o
ranlib libdes.a
make[3]: Leaving directory `/home/work/myicqd-0.9b2/myicqd/des'
make[3]: Entering directory `/home/work/myicqd-0.9b2/myicqd'
g++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/include/mysql -Ides    -O2 -fno-exceptions -fno-rtti -fno-check-new -c main.cpp
main.cpp: In function `int main(int, char**)':
main.cpp:87: `cerr' undeclared (first use this function)
main.cpp:87: (Each undeclared identifier is reported only once for each
   function it appears in.)
main.cpp:87: `endl' undeclared (first use this function)
make[3]: *** [main.o] Error 1
make[3]: Leaving directory `/home/work/myicqd-0.9b2/myicqd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/work/myicqd-0.9b2/myicqd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/work/myicqd-0.9b2'
make: *** [all-recursive-am] Error 2


高手看看怎么会事?
发表于 2003-1-10 11:44:37 | 显示全部楼层
gcc3.2对c++程序要求更高了,用gcc2.96编译吧。
或者等freeman装了rh8,他就会修改下代码了.估计就是myicq1.0
回复

使用道具 举报

发表于 2003-1-11 17:17:44 | 显示全部楼层
#include <iostream.h>
回复

使用道具 举报

发表于 2003-1-21 23:41:55 | 显示全部楼层
记得留空格会过滤的
回复

使用道具 举报

发表于 2003-1-22 00:01:17 | 显示全部楼层
myicqd1.0已经可以在gcc3.2上成功编译了,虽然还是有警告 :)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-17 17:51 , Processed in 0.048491 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表