compilation error in strrchr

Hi All,

I am getting the following error while compiling ACE_Wrappers on
OPENSUSE11:



config/fromheader.cpp: In function const char* basename(const char*,
char)â:
config/fromheader.cpp:241: error: strrchr was not declared in this
scope

The following are the gcc version details:

Opensuse11: gcc -v
Using built-in specs.
Target: i586-suse-linux
Configured with: …/configure --prefix=/usr
–with-local-prefix=/usr/local --infodir=/usr/share/info
–mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib
–enable-languages=c,c++,objc,fortran,obj-c++,java,ada
–enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.3
–enable-ssp --disable-libssp --with-bugurl=http://bugs.opensuse.org/
–with-pkgversion=‘SUSE Linux’ --disable-libgcj --with-slibdir=/lib
–with-system-zlib --enable-__cxa_atexit
–enable-libstdcxx-allocator=new --disable-libstdcxx-pch
–program-suffix=-4.3 --enable-version-specific-runtime-libs
–enable-linux-futex --without-system-libunwind --with-cpu=generic
–build=i586-suse-linux
Thread model: posix
gcc version 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision
135036] (SUSE Linux)

Thanks and Regards,
Vivek


vivek1717

vivek1717’s Profile: http://forums.opensuse.org/member.php?userid=18532
View this thread: http://forums.opensuse.org/showthread.php?t=405486

But the same compiles well on Opensuse10


vivek1717

vivek1717’s Profile: http://forums.opensuse.org/member.php?userid=18532
View this thread: http://forums.opensuse.org/showthread.php?t=405486

You should probably ask the author of ace_wrappers. They may have the
fixes needed to compile with gcc 4.3.1.


ken_yap

ken_yap’s Profile: http://forums.opensuse.org/member.php?userid=221
View this thread: http://forums.opensuse.org/showthread.php?t=405486