'std::*' not declared in C++ when trying to compile with wineg++

Sergio sergio.t at videotron.ca
Sat Nov 12 11:34:41 CST 2005


Hi all,

I am again having trouble when compiling other c++ projects. This time I am
not even able to get at least one file compiled. I did a serach in the
Internet but really did not understand what to do. This problem is maybe
not directly related to wine but to g++. It seems the compiler isnot able
to find some declarations.

Here is the output I am getting:
wineg++ -c -I/usr/include/wine/windows -I/usr/include/wine/msvcrt
-I../include  -o versioninfo/CPlugin.o versioninfo/CPlugin.cpp
/usr/include/c++/4.0.2/cstdlib:105: error: ‘::div’ has not been declared
/usr/include/c++/4.0.2/cstdlib:110: error: ‘::ldiv’ has not been declared
/usr/include/c++/4.0.2/cstdlib: In function ‘ldiv_t std::div(long int, long
int)’:
/usr/include/c++/4.0.2/cstdlib:134: error: ‘ldiv’ was not declared in this
scope
/usr/include/c++/4.0.2/cstdlib: At global scope:
/usr/include/c++/4.0.2/cstdlib:160: error: ‘::lldiv_t’ has not been declared
/usr/include/c++/4.0.2/cstdlib:166: error: ‘::_Exit’ has not been declared
/usr/include/c++/4.0.2/cstdlib:176: error: ‘lldiv_t’ does not name a type
/usr/include/c++/4.0.2/cstdlib:180: error: ‘lldiv_t’ does not name a type
/usr/include/c++/4.0.2/cstdlib:193: error: ‘::atoll’ has not been declared
/usr/include/c++/4.0.2/cstdlib:194: error: ‘::strtoll’ has not been declared
/usr/include/c++/4.0.2/cstdlib:195: error: ‘::strtoull’ has not been
declared
/usr/include/c++/4.0.2/cstdlib:197: error: ‘::strtof’ has not been declared
/usr/include/c++/4.0.2/cstdlib:198: error: ‘::strtold’ has not been declared
/usr/include/c++/4.0.2/cstdlib:204: error: ‘__gnu_cxx::lldiv_t’ has not been
declared
/usr/include/c++/4.0.2/cstdlib:206: error: ‘__gnu_cxx::_Exit’ has not been
declared
/usr/include/c++/4.0.2/cstdlib:210: error: ‘__gnu_cxx::div’ has not been
declared
/usr/include/c++/4.0.2/cstdlib:211: error: ‘__gnu_cxx::lldiv’ has not been
declared
/usr/include/c++/4.0.2/cstdlib:213: error: ‘__gnu_cxx::atoll’ has not been
declared
/usr/include/c++/4.0.2/cstdlib:214: error: ‘__gnu_cxx::strtof’ has not been
declared
/usr/include/c++/4.0.2/cstdlib:215: error: ‘__gnu_cxx::strtoll’ has not been
declared
/usr/include/c++/4.0.2/cstdlib:216: error: ‘__gnu_cxx::strtoull’ has not
been declared
/usr/include/c++/4.0.2/cstdlib:217: error: ‘__gnu_cxx::strtold’ has not been
declared
/usr/include/c++/4.0.2/cstdio:168: error: ‘::snprintf’ has not been declared
/usr/include/c++/4.0.2/cstdio:169: error: ‘::vfscanf’ has not been declared
/usr/include/c++/4.0.2/cstdio:170: error: ‘::vscanf’ has not been declared
/usr/include/c++/4.0.2/cstdio:172: error: ‘::vsscanf’ has not been declared
/usr/include/c++/4.0.2/cstdio:178: error: ‘__gnu_cxx::snprintf’ has not been
declared
/usr/include/c++/4.0.2/cstdio:179: error: ‘__gnu_cxx::vfscanf’ has not been
declared
/usr/include/c++/4.0.2/cstdio:180: error: ‘__gnu_cxx::vscanf’ has not been
declared
/usr/include/c++/4.0.2/cstdio:182: error: ‘__gnu_cxx::vsscanf’ has not been
declared
/usr/include/c++/4.0.2/i586-suse-linux/bits/c++locale.h:55: error:
‘uselocale’ was not declared in this scope
/usr/include/c++/4.0.2/i586-suse-linux/bits/c++locale.h:55: error: invalid
type in declaration before ‘;’ token
/usr/include/c++/4.0.2/i586-suse-linux/bits/c++locale.h: In function ‘int
std::__convert_from_v(char*, int, const char*, _Tv, __locale_struct*
const&, int)’:
/usr/include/c++/4.0.2/i586-suse-linux/bits/c++locale.h:73: error:
‘__gnu_cxx::__uselocale’ cannot be used as a function
/usr/include/c++/4.0.2/i586-suse-linux/bits/c++locale.h:84: error:
‘snprintf’ is not a member of ‘std’
/usr/include/c++/4.0.2/i586-suse-linux/bits/c++locale.h:90: error:
‘__gnu_cxx::__uselocale’ cannot be used as a function
/usr/include/bits/sigthread.h: At global scope:
/usr/include/bits/sigthread.h:32: error: expected ‘,’ or ‘...’ before ‘*’
token
/usr/include/c++/4.0.2/cwchar:151: error: ‘::fwide’ has not been declared
/usr/include/c++/4.0.2/cwchar:158: error: ‘::mbsinit’ has not been declared
/usr/include/c++/4.0.2/cwchar:167: error: ‘::vfwscanf’ has not been declared
/usr/include/c++/4.0.2/cwchar:171: error: ‘::vswscanf’ has not been declared
/usr/include/c++/4.0.2/cwchar:175: error: ‘::vwscanf’ has not been declared
/usr/include/c++/4.0.2/cwchar:192: error: ‘::wcstof’ has not been declared
/usr/include/c++/4.0.2/cwchar:199: error: ‘::wmemcmp’ has not been declared
/usr/include/c++/4.0.2/cwchar:200: error: ‘::wmemcpy’ has not been declared
/usr/include/c++/4.0.2/cwchar:201: error: ‘::wmemmove’ has not been declared
/usr/include/c++/4.0.2/cwchar:202: error: ‘::wmemset’ has not been declared
/usr/include/c++/4.0.2/cwchar:230: error: ‘::wmemchr’ has not been declared
/usr/include/c++/4.0.2/cwchar: In function ‘wchar_t* std::wmemchr(wchar_t*,
wchar_t, size_t)’:
/usr/include/c++/4.0.2/cwchar:234: error: invalid conversion from ‘const
wchar_t*’ to ‘wchar_t*’
/usr/include/c++/4.0.2/cwchar:234: error:   initializing argument 1 of
‘wchar_t* std::wmemchr(wchar_t*, wchar_t, size_t)’
/usr/include/c++/4.0.2/cwchar: At global scope:
/usr/include/c++/4.0.2/cwchar:250: error: ‘::wcstold’ has not been declared
/usr/include/c++/4.0.2/cwchar:259: error: ‘::wcstoll’ has not been declared
/usr/include/c++/4.0.2/cwchar:260: error: ‘::wcstoull’ has not been declared
/usr/include/c++/4.0.2/cwchar:266: error: ‘__gnu_cxx::wcstold’ has not been
declared
/usr/include/c++/4.0.2/cwchar:267: error: ‘__gnu_cxx::wcstoll’ has not been
declared
/usr/include/c++/4.0.2/cwchar:268: error: ‘__gnu_cxx::wcstoull’ has not been
declared
/usr/include/c++/4.0.2/bits/char_traits.h: In static member function ‘static
int std::char_traits<wchar_t>::compare(const wchar_t*, const wchar_t*,
size_t)’:
/usr/include/c++/4.0.2/bits/char_traits.h:323: error: ‘wmemcmp’ was not
declared in this scope
/usr/include/c++/4.0.2/bits/char_traits.h: In static member function ‘static
const wchar_t* std::char_traits<wchar_t>::find(const wchar_t*, size_t,
const wchar_t&)’:
/usr/include/c++/4.0.2/bits/char_traits.h:331: error: invalid conversion
from ‘const wchar_t*’ to ‘wchar_t*’
/usr/include/c++/4.0.2/bits/char_traits.h:331: error:   initializing
argument 1 of ‘wchar_t* std::wmemchr(wchar_t*, wchar_t, size_t)’
/usr/include/c++/4.0.2/bits/char_traits.h: In static member function ‘static
wchar_t* std::char_traits<wchar_t>::move(wchar_t*, const wchar_t*,
size_t)’:
/usr/include/c++/4.0.2/bits/char_traits.h:335: error: ‘wmemmove’ was not
declared in this scope
/usr/include/c++/4.0.2/bits/char_traits.h: In static member function ‘static
wchar_t* std::char_traits<wchar_t>::copy(wchar_t*, const wchar_t*,
size_t)’:
/usr/include/c++/4.0.2/bits/char_traits.h:339: error: ‘wmemcpy’ was not
declared in this scope
/usr/include/c++/4.0.2/bits/char_traits.h: In static member function ‘static
wchar_t* std::char_traits<wchar_t>::assign(wchar_t*, size_t, wchar_t)’:
/usr/include/c++/4.0.2/bits/char_traits.h:343: error: ‘wmemset’ was not
declared in this scope
winegcc: g++ failed.
make: *** [versioninfo/CPlugin.o] Error 2


My bet is that I am missing some includes. or that I need to specify some
parametres in the compiler options. But I am a complete noob in c++
development.

Any help will he highly appreciated. Thanks.





More information about the wine-devel mailing list