C++ compiler problems with FC2

Steve Friedman steve at adsi-m4.com
Tue Aug 31 17:03:30 UTC 2004


Unfortunately, my spam filter killed the various replies to my message, so 
this is a new thread (I've eliminated *that* rule)...

Yes, it was dumb of me to not include the code that I was trying to 
compile -- it was from www.opengc.org.  (As an aside, I had the same test 
results as Rob Cochran.)

The file that I was trying to compile begins:

#include <FL/Fl.H>   // this is from fltk-devel
#include "ogcAppObject.h"

And, ogcAppObject.h begins:

#include <iostream>

These are the error messages:

> make > err.out 2>&1
cmake.depends is up-to-date
/home/steve/opengc55-fgfs094/opengc/Source: building default_target
Building object file /home/steve/opengc55-fgfs094/opengc/Source/Base/main.o...
In file included from /usr/include/c++/3.3.3/bits/char_traits.h:45,
                  from /usr/include/c++/3.3.3/ios:46,
                  from /usr/include/c++/3.3.3/ostream:45,
                  from /usr/include/c++/3.3.3/iostream:45,
                  from /home/steve/opengc55-fgfs094/opengc/Source/Base/ogcAppObject.h:54,
                  from /home/steve/opengc55-fgfs094/opengc/Source/Base/main.cpp:45:
/usr/include/c++/3.3.3/cstring:79: error: `memcpy' not declared
/usr/include/c++/3.3.3/cstring:80: error: `memmove' not declared
/usr/include/c++/3.3.3/cstring:81: error: `strcpy' not declared
/usr/include/c++/3.3.3/cstring:82: error: `strncpy' not declared
/usr/include/c++/3.3.3/cstring:83: error: `strcat' not declared
/usr/include/c++/3.3.3/cstring:84: error: `strncat' not declared
/usr/include/c++/3.3.3/cstring:85: error: `memcmp' not declared
/usr/include/c++/3.3.3/cstring:86: error: `strcmp' not declared
/usr/include/c++/3.3.3/cstring:87: error: `strcoll' not declared
/usr/include/c++/3.3.3/cstring:88: error: `strncmp' not declared
/usr/include/c++/3.3.3/cstring:89: error: `strxfrm' not declared
/usr/include/c++/3.3.3/cstring:90: error: `strcspn' not declared
/usr/include/c++/3.3.3/cstring:91: error: `strspn' not declared
/usr/include/c++/3.3.3/cstring:92: error: `strtok' not declared
/usr/include/c++/3.3.3/cstring:93: error: `memset' not declared
/usr/include/c++/3.3.3/cstring:94: error: `strerror' not declared
/usr/include/c++/3.3.3/cstring:95: error: `strlen' not declared
/usr/include/c++/3.3.3/cstring:97: error: `memchr' not declared
/usr/include/c++/3.3.3/cstring: In function `void* std::memchr(void*, int,
    unsigned int)':
/usr/include/c++/3.3.3/cstring:101: error: invalid conversion from `const void*
    ' to `void*'
/usr/include/c++/3.3.3/cstring: At global scope:
/usr/include/c++/3.3.3/cstring:103: error: `strchr' not declared
/usr/include/c++/3.3.3/cstring:109: error: `strpbrk' not declared
/usr/include/c++/3.3.3/cstring:115: error: `strrchr' not declared
/usr/include/c++/3.3.3/cstring:121: error: `strstr' not declared
In file included from /usr/include/c++/3.3.3/ios:46,
                  from /usr/include/c++/3.3.3/ostream:45,
                  from /usr/include/c++/3.3.3/iostream:45,
                  from /home/steve/opengc55-fgfs094/opengc/Source/Base/ogcAppObject.h:54,
                  from /home/steve/opengc55-fgfs094/opengc/Source/Base/main.cpp:45:
/usr/include/c++/3.3.3/bits/char_traits.h: In static member function `static
    int std::char_traits<char>::compare(const char*, const char*, unsigned int)
    ':
/usr/include/c++/3.3.3/bits/char_traits.h:139: error: `memcmp' undeclared
    (first use this function)
/usr/include/c++/3.3.3/bits/char_traits.h:139: error: (Each undeclared
    identifier is reported only once for each function it appears in.)
/usr/include/c++/3.3.3/bits/char_traits.h: In static member function `static
    size_t std::char_traits<char>::length(const char*)':
/usr/include/c++/3.3.3/bits/char_traits.h:143: error: `strlen' undeclared
    (first use this function)
/usr/include/c++/3.3.3/bits/char_traits.h: In static member function `static
    const char* std::char_traits<char>::find(const char*, unsigned int, const
    char&)':
/usr/include/c++/3.3.3/bits/char_traits.h:147: error: invalid conversion from `
    const void*' to `void*'
/usr/include/c++/3.3.3/bits/char_traits.h: In static member function `static
    char* std::char_traits<char>::move(char*, const char*, unsigned int)':
/usr/include/c++/3.3.3/bits/char_traits.h:151: error: `memmove' undeclared
    (first use this function)
/usr/include/c++/3.3.3/bits/char_traits.h: In static member function `static
    char* std::char_traits<char>::copy(char*, const char*, unsigned int)':
/usr/include/c++/3.3.3/bits/char_traits.h:155: error: `memcpy' undeclared
    (first use this function)
/usr/include/c++/3.3.3/bits/char_traits.h: In static member function `static
    char* std::char_traits<char>::assign(char*, unsigned int, char)':
/usr/include/c++/3.3.3/bits/char_traits.h:159: error: `memset' undeclared
    (first use this function)
In file included from /usr/include/c++/3.3.3/memory:54,
                  from /usr/include/c++/3.3.3/string:48,
                  from /usr/include/c++/3.3.3/bits/locale_classes.h:47,
                  from /usr/include/c++/3.3.3/bits/ios_base.h:47,
                  from /usr/include/c++/3.3.3/ios:49,
                  from /usr/include/c++/3.3.3/ostream:45,
                  from /usr/include/c++/3.3.3/iostream:45,
                  from /home/steve/opengc55-fgfs094/opengc/Source/Base/ogcAppObject.h:54,
                  from /home/steve/opengc55-fgfs094/opengc/Source/Base/main.cpp:45:
/usr/include/c++/3.3.3/bits/stl_algobase.h: In function `void
    std::fill(unsigned char*, unsigned char*, const unsigned char&)':
/usr/include/c++/3.3.3/bits/stl_algobase.h:549: error: `memset' undeclared
    (first use this function)
/usr/include/c++/3.3.3/bits/stl_algobase.h: In function `void std::fill(signed
    char*, signed char*, const signed char&)':
/usr/include/c++/3.3.3/bits/stl_algobase.h:556: error: `memset' undeclared
    (first use this function)
/usr/include/c++/3.3.3/bits/stl_algobase.h: In function `void std::fill(char*,
    char*, const char&)':
/usr/include/c++/3.3.3/bits/stl_algobase.h:563: error: `memset' undeclared
    (first use this function)
/usr/include/c++/3.3.3/bits/stl_algobase.h: In function `bool
    std::lexicographical_compare(const unsigned char*, const unsigned char*,
    const unsigned char*, const unsigned char*)':
/usr/include/c++/3.3.3/bits/stl_algobase.h:793: error: `memcmp' undeclared
    (first use this function)
In file included from /usr/include/c++/3.3.3/memory:58,
                  from /usr/include/c++/3.3.3/string:48,
                  from /usr/include/c++/3.3.3/bits/locale_classes.h:47,
                  from /usr/include/c++/3.3.3/bits/ios_base.h:47,
                  from /usr/include/c++/3.3.3/ios:49,
                  from /usr/include/c++/3.3.3/ostream:45,
                  from /usr/include/c++/3.3.3/iostream:45,
                  from /home/steve/opengc55-fgfs094/opengc/Source/Base/ogcAppObject.h:54,
                  from /home/steve/opengc55-fgfs094/opengc/Source/Base/main.cpp:45:
/usr/include/c++/3.3.3/bits/stl_uninitialized.h: In function `char*
    std::uninitialized_copy(const char*, const char*, char*)':
/usr/include/c++/3.3.3/bits/stl_uninitialized.h:118: error: `memmove'
    undeclared (first use this function)
/usr/include/c++/3.3.3/bits/stl_uninitialized.h: In function `wchar_t*
    std::uninitialized_copy(const wchar_t*, const wchar_t*, wchar_t*)':
/usr/include/c++/3.3.3/bits/stl_uninitialized.h:126: error: `memmove'
    undeclared (first use this function)
In file included from /usr/include/c++/3.3.3/bits/ios_base.h:47,
                  from /usr/include/c++/3.3.3/ios:49,
                  from /usr/include/c++/3.3.3/ostream:45,
                  from /usr/include/c++/3.3.3/iostream:45,
                  from /home/steve/opengc55-fgfs094/opengc/Source/Base/ogcAppObject.h:54,
                  from /home/steve/opengc55-fgfs094/opengc/Source/Base/main.cpp:45:
/usr/include/c++/3.3.3/bits/locale_classes.h: In member function `bool
    std::locale::_Impl::_M_check_same_name()':
/usr/include/c++/3.3.3/bits/locale_classes.h:260: error: `strcmp' undeclared
    (first use this function)
In file included from /usr/include/c++/3.3.3/bits/codecvt.h:334,
                  from /usr/include/c++/3.3.3/bits/locale_facets.h:528,
                  from /usr/include/c++/3.3.3/bits/basic_ios.h:44,
                  from /usr/include/c++/3.3.3/ios:51,
                  from /usr/include/c++/3.3.3/ostream:45,
                  from /usr/include/c++/3.3.3/iostream:45,
                  from /home/steve/opengc55-fgfs094/opengc/Source/Base/ogcAppObject.h:54,
                  from /home/steve/opengc55-fgfs094/opengc/Source/Base/main.cpp:45:
/usr/include/c++/3.3.3/i386-redhat-linux/bits/codecvt_specializations.h: In
    constructor `std::__enc_traits::__enc_traits()':
/usr/include/c++/3.3.3/i386-redhat-linux/bits/codecvt_specializations.h:78: error: `
    memset' undeclared (first use this function)
/usr/include/c++/3.3.3/i386-redhat-linux/bits/codecvt_specializations.h: In
    constructor `std::__enc_traits::__enc_traits(const char*, const char*, int,
    int)':
/usr/include/c++/3.3.3/i386-redhat-linux/bits/codecvt_specializations.h:86: error: `
    strncpy' undeclared (first use this function)
/usr/include/c++/3.3.3/i386-redhat-linux/bits/codecvt_specializations.h: In
    copy constructor `std::__enc_traits::__enc_traits(const std::__enc_traits&)
    ':
/usr/include/c++/3.3.3/i386-redhat-linux/bits/codecvt_specializations.h:97: error: `
    strncpy' undeclared (first use this function)
/usr/include/c++/3.3.3/i386-redhat-linux/bits/codecvt_specializations.h: In
    member function `std::__enc_traits& std::__enc_traits::operator=(const
    std::__enc_traits&)':
/usr/include/c++/3.3.3/i386-redhat-linux/bits/codecvt_specializations.h:107: error: `
    strncpy' undeclared (first use this function)
In file included from /usr/include/c++/3.3.3/bits/locale_facets.tcc:41,
                  from /usr/include/c++/3.3.3/locale:47,
                  from /usr/include/c++/3.3.3/bits/ostream.tcc:37,
                  from /usr/include/c++/3.3.3/ostream:535,
                  from /usr/include/c++/3.3.3/iostream:45,
                  from /home/steve/opengc55-fgfs094/opengc/Source/Base/ogcAppObject.h:54,
                  from /home/steve/opengc55-fgfs094/opengc/Source/Base/main.cpp:45:
/usr/include/c++/3.3.3/cmath: At global scope:
/usr/include/c++/3.3.3/cmath:107: error: `acosf' not declared
/usr/include/c++/3.3.3/cmath:110: error: `asinf' not declared
/usr/include/c++/3.3.3/cmath:113: error: `atanf' not declared
/usr/include/c++/3.3.3/cmath:116: error: `atan2f' not declared
/usr/include/c++/3.3.3/cmath:119: error: `ceilf' not declared
/usr/include/c++/3.3.3/cmath:122: error: `coshf' not declared
/usr/include/c++/3.3.3/cmath:125: error: `expf' not declared
/usr/include/c++/3.3.3/cmath:128: error: `floorf' not declared
/usr/include/c++/3.3.3/cmath:131: error: `fmodf' not declared
/usr/include/c++/3.3.3/cmath:134: error: `frexpf' not declared
/usr/include/c++/3.3.3/cmath:137: error: `ldexpf' not declared
/usr/include/c++/3.3.3/cmath:140: error: `logf' not declared
/usr/include/c++/3.3.3/cmath:143: error: `log10f' not declared
/usr/include/c++/3.3.3/cmath:146: error: `modff' not declared
/usr/include/c++/3.3.3/cmath:149: error: `powf' not declared
/usr/include/c++/3.3.3/cmath:152: error: `sinhf' not declared
/usr/include/c++/3.3.3/cmath:155: error: `tanf' not declared
/usr/include/c++/3.3.3/cmath:158: error: `tanhf' not declared
/usr/include/c++/3.3.3/cmath: In function `float std::acos(float)':
/usr/include/c++/3.3.3/cmath:184: error: `acosf' undeclared in namespace `
    __gnu_cxx::__c99_binding'
/usr/include/c++/3.3.3/cmath: At global scope:
/usr/include/c++/3.3.3/cmath:190: error: `acos' not declared
/usr/include/c++/3.3.3/cmath: In function `long double std::acos(long double)':
/usr/include/c++/3.3.3/cmath:194: error: `::acosl' undeclared (first use here)
/usr/include/c++/3.3.3/cmath: At global scope:
/usr/include/c++/3.3.3/cmath:200: error: `asin' not declared
/usr/include/c++/3.3.3/cmath: In function `float std::asin(float)':
/usr/include/c++/3.3.3/cmath:204: error: `asinf' undeclared in namespace `
    __gnu_cxx::__c99_binding'
/usr/include/c++/3.3.3/cmath: In function `long double std::asin(long double)':
/usr/include/c++/3.3.3/cmath:212: error: `::asinl' undeclared (first use here)
/usr/include/c++/3.3.3/cmath: At global scope:
/usr/include/c++/3.3.3/cmath:218: error: `atan' not declared
/usr/include/c++/3.3.3/cmath: In function `float std::atan(float)':
/usr/include/c++/3.3.3/cmath:222: error: `atanf' undeclared in namespace `
    __gnu_cxx::__c99_binding'
/usr/include/c++/3.3.3/cmath: In function `long double std::atan(long double)':
/usr/include/c++/3.3.3/cmath:230: error: `::atanl' undeclared (first use here)
/usr/include/c++/3.3.3/cmath: At global scope:
/usr/include/c++/3.3.3/cmath:236: error: `atan2' not declared
/usr/include/c++/3.3.3/cmath: In function `float std::atan2(float, float)':
/usr/include/c++/3.3.3/cmath:240: error: `atan2f' undeclared in namespace `
    __gnu_cxx::__c99_binding'
/usr/include/c++/3.3.3/cmath: In function `long double std::atan2(long double,
    long double)':
/usr/include/c++/3.3.3/cmath:249: error: `::atan2l' undeclared (first use here)
/usr/include/c++/3.3.3/cmath: At global scope:
/usr/include/c++/3.3.3/cmath:256: error: `ceil' not declared
/usr/include/c++/3.3.3/cmath: In function `float std::ceil(float)':
/usr/include/c++/3.3.3/cmath:260: error: `ceilf' undeclared in namespace `
    __gnu_cxx::__c99_binding'
/usr/include/c++/3.3.3/cmath: In function `long double std::ceil(long double)':
/usr/include/c++/3.3.3/cmath:268: error: `::ceill' undeclared (first use here)
/usr/include/c++/3.3.3/cmath: At global scope:
/usr/include/c++/3.3.3/cmath:274: error: `cos' not declared
/usr/include/c++/3.3.3/cmath:284: error: `cosh' not declared
/usr/include/c++/3.3.3/cmath: In function `float std::cosh(float)':
/usr/include/c++/3.3.3/cmath:288: error: `coshf' undeclared in namespace `
    __gnu_cxx::__c99_binding'
/usr/include/c++/3.3.3/cmath: In function `long double std::cosh(long double)':
/usr/include/c++/3.3.3/cmath:296: error: `::coshl' undeclared (first use here)
/usr/include/c++/3.3.3/cmath: At global scope:
/usr/include/c++/3.3.3/cmath:302: error: `exp' not declared
/usr/include/c++/3.3.3/cmath: In function `float std::exp(float)':
/usr/include/c++/3.3.3/cmath:306: error: `expf' undeclared in namespace `
    __gnu_cxx::__c99_binding'
/usr/include/c++/3.3.3/cmath: In function `long double std::exp(long double)':
/usr/include/c++/3.3.3/cmath:314: error: `::expl' undeclared (first use here)
/usr/include/c++/3.3.3/cmath: At global scope:
/usr/include/c++/3.3.3/cmath:320: error: `fabs' not declared
/usr/include/c++/3.3.3/cmath:330: error: `floor' not declared
/usr/include/c++/3.3.3/cmath: In function `float std::floor(float)':
/usr/include/c++/3.3.3/cmath:334: error: `floorf' undeclared in namespace `
    __gnu_cxx::__c99_binding'
/usr/include/c++/3.3.3/cmath: In function `long double std::floor(long double)
    ':
/usr/include/c++/3.3.3/cmath:342: error: `::floorl' undeclared (first use here)
/usr/include/c++/3.3.3/cmath: At global scope:
/usr/include/c++/3.3.3/cmath:348: error: `fmod' not declared
/usr/include/c++/3.3.3/cmath: In function `float std::fmod(float, float)':
/usr/include/c++/3.3.3/cmath:352: error: `fmodf' undeclared in namespace `
    __gnu_cxx::__c99_binding'
/usr/include/c++/3.3.3/cmath: In function `long double std::fmod(long double,
    long double)':
/usr/include/c++/3.3.3/cmath:361: error: `::fmodl' undeclared (first use here)
/usr/include/c++/3.3.3/cmath: At global scope:
/usr/include/c++/3.3.3/cmath:368: error: `frexp' not declared
/usr/include/c++/3.3.3/cmath: In function `float std::frexp(float, int*)':
/usr/include/c++/3.3.3/cmath:372: error: `frexpf' undeclared in namespace `
    __gnu_cxx::__c99_binding'
/usr/include/c++/3.3.3/cmath: In function `long double std::frexp(long double,
    int*)':
/usr/include/c++/3.3.3/cmath:380: error: `::frexpl' undeclared (first use here)
/usr/include/c++/3.3.3/cmath: At global scope:
/usr/include/c++/3.3.3/cmath:387: error: `ldexp' not declared
/usr/include/c++/3.3.3/cmath: In function `float std::ldexp(float, int)':
/usr/include/c++/3.3.3/cmath:391: error: `ldexpf' undeclared in namespace `
    __gnu_cxx::__c99_binding'
/usr/include/c++/3.3.3/cmath: In function `long double std::ldexp(long double,
    int)':
/usr/include/c++/3.3.3/cmath:400: error: `::ldexpl' undeclared (first use here)
/usr/include/c++/3.3.3/cmath: At global scope:
/usr/include/c++/3.3.3/cmath:407: error: `log' not declared
/usr/include/c++/3.3.3/cmath: In function `float std::log(float)':
/usr/include/c++/3.3.3/cmath:411: error: `logf' undeclared in namespace `
    __gnu_cxx::__c99_binding'
/usr/include/c++/3.3.3/cmath: In function `long double std::log(long double)':
/usr/include/c++/3.3.3/cmath:419: error: `::logl' undeclared (first use here)
/usr/include/c++/3.3.3/cmath: At global scope:
/usr/include/c++/3.3.3/cmath:425: error: `log10' not declared
/usr/include/c++/3.3.3/cmath: In function `float std::log10(float)':
/usr/include/c++/3.3.3/cmath:429: error: `log10f' undeclared in namespace `
    __gnu_cxx::__c99_binding'
/usr/include/c++/3.3.3/cmath: In function `long double std::log10(long double)
    ':
/usr/include/c++/3.3.3/cmath:437: error: `::log10l' undeclared (first use here)
/usr/include/c++/3.3.3/cmath: At global scope:
/usr/include/c++/3.3.3/cmath:443: error: `modf' not declared
/usr/include/c++/3.3.3/cmath: In function `float std::modf(float, float*)':
/usr/include/c++/3.3.3/cmath:447: error: `modff' undeclared in namespace `
    __gnu_cxx::__c99_binding'
/usr/include/c++/3.3.3/cmath: In function `long double std::modf(long double,
    long double*)':
/usr/include/c++/3.3.3/cmath:461: error: `::modfl' undeclared (first use here)
/usr/include/c++/3.3.3/cmath: At global scope:
/usr/include/c++/3.3.3/cmath:482: error: `pow' not declared
/usr/include/c++/3.3.3/cmath: In function `float std::pow(float, float)':
/usr/include/c++/3.3.3/cmath:486: error: `powf' undeclared in namespace `
    __gnu_cxx::__c99_binding'
/usr/include/c++/3.3.3/cmath: In function `long double std::pow(long double,
    long double)':
/usr/include/c++/3.3.3/cmath:495: error: `::powl' undeclared (first use here)
/usr/include/c++/3.3.3/cmath: At global scope:
/usr/include/c++/3.3.3/cmath:514: error: `sin' not declared
/usr/include/c++/3.3.3/cmath:524: error: `sinh' not declared
/usr/include/c++/3.3.3/cmath: In function `float std::sinh(float)':
/usr/include/c++/3.3.3/cmath:528: error: `sinhf' undeclared in namespace `
    __gnu_cxx::__c99_binding'
/usr/include/c++/3.3.3/cmath: In function `long double std::sinh(long double)':
/usr/include/c++/3.3.3/cmath:536: error: `::sinhl' undeclared (first use here)
/usr/include/c++/3.3.3/cmath: At global scope:
/usr/include/c++/3.3.3/cmath:542: error: `sqrt' not declared
/usr/include/c++/3.3.3/cmath:552: error: `tan' not declared
/usr/include/c++/3.3.3/cmath: In function `float std::tan(float)':
/usr/include/c++/3.3.3/cmath:556: error: `tanf' undeclared in namespace `
    __gnu_cxx::__c99_binding'
/usr/include/c++/3.3.3/cmath: In function `long double std::tan(long double)':
/usr/include/c++/3.3.3/cmath:564: error: `::tanl' undeclared (first use here)
/usr/include/c++/3.3.3/cmath: At global scope:
/usr/include/c++/3.3.3/cmath:570: error: `tanh' not declared
/usr/include/c++/3.3.3/cmath: In function `float std::tanh(float)':
/usr/include/c++/3.3.3/cmath:574: error: `tanhf' undeclared in namespace `
    __gnu_cxx::__c99_binding'
/usr/include/c++/3.3.3/cmath: In function `long double std::tanh(long double)':
/usr/include/c++/3.3.3/cmath:582: error: `::tanhl' undeclared (first use here)
make[3]: *** [/home/steve/opengc55-fgfs094/opengc/Source/Base/main.o] Error 1
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Source] Error 2
make: *** [default_target] Error 2


Steve





More information about the fedora-test-list mailing list