Menu

#5 Missing headers

open
nobody
None
5
2010-02-04
2010-02-04
No

Hi,

I've got three compilation errors when I tried to compile gmrun (both 0.9.2
and cvs) on my machine[1]:

a) gtkcompletionline.cc:219: error: ‘strlen’ was not declared in this scope
b) ci_string.h:29: error: ‘::strncasecmp’ has not been declared
c) prefs.cc:37: error: ‘getenv’ was not declared in this scope

I've solved those errors by including some missing headers in each one of the
listed files; respectively:

a) #include <cstring>
b) #include <cstring>
c) #include <cstdlib>

Thank you,

--
Douglas

1.
uname -a
Linux paraibuna 2.6.25.18-0.2-default #1 SMP 2008-10-21 16:30:26 +0200 x86_64
x86_64 x86_64 GNU/Linux

g++ -v
Using built-in specs.
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --with-local-prefix=/usr/local
--infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64
--libexecdir=/usr/lib64 --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=/lib64
--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=x86_64-suse-linux
Thread model: posix
gcc version 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036] (SUSE
Linux)

Discussion


Log in to post a comment.

MongoDB Logo MongoDB