hyy 发表于 2003-1-10 10:58:22

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

#./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
makeall-recursive
make: Entering directory `/home/work/myicqd-0.9b2'
Making all in myicqd
make: Entering directory `/home/work/myicqd-0.9b2/myicqd'
Making all in des
make: 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: Leaving directory `/home/work/myicqd-0.9b2/myicqd/des'
make: 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: *** Error 1
make: Leaving directory `/home/work/myicqd-0.9b2/myicqd'
make: *** Error 1
make: Leaving directory `/home/work/myicqd-0.9b2/myicqd'
make: *** Error 1
make: Leaving directory `/home/work/myicqd-0.9b2'
make: *** Error 2


高手看看怎么会事?

huzheng 发表于 2003-1-10 11:44:37

gcc3.2对c++程序要求更高了,用gcc2.96编译吧。
或者等freeman装了rh8,他就会修改下代码了.估计就是myicq1.0 :)

Anomymous 发表于 2003-1-11 17:17:44

#include <iostream.h>

HeartIcy 发表于 2003-1-21 23:41:55

记得留空格会过滤的

huzheng 发表于 2003-1-22 00:01:17

myicqd1.0已经可以在gcc3.2上成功编译了,虽然还是有警告 :)
页: [1]
查看完整版本: 在rh8.0上编译myicqd0.9b2出现如下错误