-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 How can I use std::string in my winemaker project? If I do a #include <string> along with an #include <windows.h>, I get the following errors: - --- In file included from /usr/include/c++/3.3/i486-linux/bits/c++io.h:35, from /usr/include/c++/3.3/bits/fpos.h:44, from /usr/include/c++/3.3/bits/char_traits.h:46, from /usr/include/c++/3.3/string:47, from wndclass.cxx:2: /usr/include/c++/3.3/cstdio:167: error: `snprintf' not declared /usr/include/c++/3.3/cstdio:168: error: `vfscanf' not declared /usr/include/c++/3.3/cstdio:169: error: `vscanf' not declared /usr/include/c++/3.3/cstdio:171: error: `vsscanf' not declared /usr/include/c++/3.3/cstdio:177: error: `snprintf' not declared /usr/include/c++/3.3/cstdio:178: error: `vfscanf' not declared /usr/include/c++/3.3/cstdio:179: error: `vscanf' not declared /usr/include/c++/3.3/cstdio:181: error: `vsscanf' not declared In file included from /usr/include/c++/3.3/i486-linux/bits/gthr-default.h:37, from /usr/include/c++/3.3/i486-linux/bits/gthr.h:98, from /usr/include/c++/3.3/i486-linux/bits/c++io.h:37, from /usr/include/c++/3.3/bits/fpos.h:44, from /usr/include/c++/3.3/bits/char_traits.h:46, from /usr/include/c++/3.3/string:47, from wndclass.cxx:2: /usr/include/pthread.h:651: error: type specifier omitted for parameter ` clockid_t' /usr/include/pthread.h:651: error: Fehler beim Parsen before `*' token In file included from /usr/include/c++/3.3/bits/fpos.h:45, from /usr/include/c++/3.3/bits/char_traits.h:46, from /usr/include/c++/3.3/string:47, from wndclass.cxx:2: /usr/include/c++/3.3/cwchar:142: error: `fwide' not declared /usr/include/c++/3.3/cwchar:149: error: `mbsinit' not declared /usr/include/c++/3.3/cwchar:157: error: `vfwscanf' not declared /usr/include/c++/3.3/cwchar:159: error: `vswscanf' not declared /usr/include/c++/3.3/cwchar:161: error: `vwscanf' not declared /usr/include/c++/3.3/cwchar:176: error: `wcstof' not declared /usr/include/c++/3.3/cwchar:182: error: `wmemcmp' not declared /usr/include/c++/3.3/cwchar:183: error: `wmemcpy' not declared /usr/include/c++/3.3/cwchar:184: error: `wmemmove' not declared /usr/include/c++/3.3/cwchar:185: error: `wmemset' not declared /usr/include/c++/3.3/cwchar:213: error: `wmemchr' not declared /usr/include/c++/3.3/cwchar: In function `wchar_t* std::wmemchr(wchar_t*, wchar_t, unsigned int)': /usr/include/c++/3.3/cwchar:217: error: invalid conversion from `const wchar_t* ' to `wchar_t*' /usr/include/c++/3.3/cwchar: At global scope: /usr/include/c++/3.3/cwchar:233: error: `wcstold' not declared /usr/include/c++/3.3/cwchar:242: error: `wcstoll' not declared /usr/include/c++/3.3/cwchar:243: error: `wcstoull' not declared /usr/include/c++/3.3/cwchar:249: error: `wcstold' not declared /usr/include/c++/3.3/cwchar:250: error: `wcstoll' not declared /usr/include/c++/3.3/cwchar:251: error: `wcstoull' not declared In file included from /usr/include/c++/3.3/string:47, from wndclass.cxx:2: /usr/include/c++/3.3/bits/char_traits.h: In static member function `static int std::char_traits<wchar_t>::compare(const wchar_t*, const wchar_t*, unsigned int)': /usr/include/c++/3.3/bits/char_traits.h:209: error: `wmemcmp' undeclared (first use this function) /usr/include/c++/3.3/bits/char_traits.h:209: error: (Each undeclared identifier is reported only once for each function it appears in.) /usr/include/c++/3.3/bits/char_traits.h: In static member function `static const wchar_t* std::char_traits<wchar_t>::find(const wchar_t*, unsigned int, const wchar_t&)': /usr/include/c++/3.3/bits/char_traits.h:217: error: invalid conversion from ` const wchar_t*' to `wchar_t*' /usr/include/c++/3.3/bits/char_traits.h: In static member function `static wchar_t* std::char_traits<wchar_t>::move(wchar_t*, const wchar_t*, short unsigned int)': /usr/include/c++/3.3/bits/char_traits.h:221: error: `wmemmove' undeclared (first use this function) /usr/include/c++/3.3/bits/char_traits.h: In static member function `static wchar_t* std::char_traits<wchar_t>::copy(wchar_t*, const wchar_t*, unsigned int)': /usr/include/c++/3.3/bits/char_traits.h:225: error: `wmemcpy' undeclared (first use this function) /usr/include/c++/3.3/bits/char_traits.h: In static member function `static wchar_t* std::char_traits<wchar_t>::assign(wchar_t*, unsigned int, wchar_t) ': /usr/include/c++/3.3/bits/char_traits.h:229: error: `wmemset' undeclared (first use this function) In file included from /usr/include/c++/3.3/bits/stl_algobase.h:67, from /usr/include/c++/3.3/memory:54, from /usr/include/c++/3.3/string:48, from wndclass.cxx:2: /usr/include/c++/3.3/cstdlib: At global scope: /usr/include/c++/3.3/cstdlib:97: error: `div' not declared /usr/include/c++/3.3/cstdlib:102: error: `ldiv' not declared /usr/include/c++/3.3/cstdlib: In function `ldiv_t std::div(long int, long int) ': /usr/include/c++/3.3/cstdlib:122: error: `ldiv' undeclared (first use this function) /usr/include/c++/3.3/cstdlib: At global scope: /usr/include/c++/3.3/cstdlib:139: error: `lldiv_t' not declared /usr/include/c++/3.3/cstdlib:145: error: `_Exit' not declared /usr/include/c++/3.3/cstdlib:156: error: Syntaxfehler before `(' token /usr/include/c++/3.3/cstdlib:157: error: Syntaxfehler before `.' token /usr/include/c++/3.3/cstdlib:157: error: Syntaxfehler before `.' token /usr/include/c++/3.3/cstdlib:160: error: Syntaxfehler before `(' token /usr/include/c++/3.3/cstdlib:161: error: Syntaxfehler before `.' token /usr/include/c++/3.3/cstdlib:161: error: Syntaxfehler before `.' token /usr/include/c++/3.3/cstdlib:172: error: `atoll' not declared /usr/include/c++/3.3/cstdlib:173: error: `strtoll' not declared /usr/include/c++/3.3/cstdlib:174: error: `strtoull' not declared /usr/include/c++/3.3/cstdlib:176: error: `strtof' not declared /usr/include/c++/3.3/cstdlib:177: error: `strtold' not declared /usr/include/c++/3.3/cstdlib:178: error: Fehler beim Parsen before `}' token /usr/include/c++/3.3/cstdlib:183: error: `lldiv_t' not declared /usr/include/c++/3.3/cstdlib:185: error: `_Exit' not declared /usr/include/c++/3.3/cstdlib:189: error: `div' not declared /usr/include/c++/3.3/cstdlib:190: error: `lldiv' not declared /usr/include/c++/3.3/cstdlib:192: error: `atoll' not declared /usr/include/c++/3.3/cstdlib:193: error: `strtof' not declared /usr/include/c++/3.3/cstdlib:194: error: `strtoll' not declared /usr/include/c++/3.3/cstdlib:195: error: `strtoull' not declared /usr/include/c++/3.3/cstdlib:196: error: `strtold' not declared In file included from /usr/include/c++/3.3/iosfwd:46, from /usr/include/c++/3.3/bits/stl_algobase.h:70, from /usr/include/c++/3.3/memory:54, from /usr/include/c++/3.3/string:48, from wndclass.cxx:2: /usr/include/c++/3.3/i486-linux/bits/c++locale.h:53: error: `uselocale' was not declared in this scope winegcc: g++ failed. - --- Greetings, Jan Schiefer -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCg28RzC00UKXFdVcRAp8ZAJ9MR2EcvRA7lsnyOOaE8bykeWRCdgCgozAL uCV7L6mD/lX7IWbareUifbs= =m1xb -----END PGP SIGNATURE----- _______________________________________________ wine-users mailing list wine-users@xxxxxxxxxx http://www.winehq.org/mailman/listinfo/wine-users