wineg++ problem with the standard library

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I got a really simple code to test but the author unfortunately used conio.h and system("cls") quite a few times. So I thought I'll check if I can use my Wine-1.1.11 instead of a windows installation that I keep on a VM.

I used 'winemaker ./' and then 'make' and that's what I got:

Code:
szczerb@nomad ~/projekty/wine/plansza $ make
wineg++ -c  -mno-cygwin -I.   -o main.o main.cpp
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdio:170: error: ::snprintf has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdio:171: error: ::vfscanf has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdio:172: error: ::vscanf has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdio:174: error: ::vsscanf has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdio:180: error: __gnu_cxx::snprintf has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdio:181: error: __gnu_cxx::vfscanf has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdio:182: error: __gnu_cxx::vscanf has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdio:184: error: __gnu_cxx::vsscanf has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/x86_64-pc-linux-gnu/bits/c++locale.h:55: error: uselocale was not declared in this scope
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/x86_64-pc-linux-gnu/bits/c++locale.h:55: error: invalid type in declaration before ; token
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/x86_64-pc-linux-gnu/bits/c++locale.h: In function int std::__convert_from_v(char*, int, const char*, _Tv, __locale_struct* const&, int):
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/x86_64-pc-linux-gnu/bits/c++locale.h:75: error: __gnu_cxx::__uselocale cannot be used as a function
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/x86_64-pc-linux-gnu/bits/c++locale.h:86: error: snprintf is not a member of std
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/x86_64-pc-linux-gnu/bits/c++locale.h:92: error: __gnu_cxx::__uselocale cannot be used as a function
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cwchar: At global scope:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cwchar:152: error: ::fwide has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cwchar:159: error: ::mbsinit has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cwchar:168: error: ::vfwscanf has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cwchar:172: error: ::vswscanf has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cwchar:176: error: ::vwscanf has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cwchar:195: error: ::wcstof has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cwchar:202: error: ::wmemcmp has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cwchar:203: error: ::wmemcpy has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cwchar:204: error: ::wmemmove has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cwchar:205: error: ::wmemset has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cwchar:233: error: ::wmemchr has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cwchar: In function wchar_t* std::wmemchr(wchar_t*, wchar_t, size_t):
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cwchar:237: error: invalid conversion from const wchar_t* to wchar_t*
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cwchar:237: error:   initializing argument 1 of wchar_t* std::wmemchr(wchar_t*, wchar_t, size_t)
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cwchar: At global scope:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cwchar:253: error: ::wcstold has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cwchar:262: error: ::wcstoll has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cwchar:263: error: ::wcstoull has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cwchar:269: error: __gnu_cxx::wcstold has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cwchar:270: error: __gnu_cxx::wcstoll has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cwchar:271: error: __gnu_cxx::wcstoull has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdlib:117: error: ::div has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdlib:122: error: ::ldiv has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdlib: In function ldiv_t std::div(long int, long int):
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdlib:146: error: ldiv was not declared in this scope
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdlib: At global scope:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdlib:163: error: ::lldiv_t has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdlib:169: error: ::_Exit has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdlib:176: error: ::llabs has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdlib:178: error: lldiv_t does not name a type
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdlib:182: error: ::lldiv has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdlib:193: error: ::atoll has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdlib:194: error: ::strtoll has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdlib:195: error: ::strtoull has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdlib:197: error: ::strtof has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdlib:198: error: ::strtold has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdlib:204: error: __gnu_cxx::lldiv_t has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdlib:206: error: __gnu_cxx::_Exit has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdlib:209: error: __gnu_cxx::llabs has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdlib:210: error: __gnu_cxx::div has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdlib:211: error: __gnu_cxx::lldiv has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdlib:213: error: __gnu_cxx::atoll has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdlib:214: error: __gnu_cxx::strtof has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdlib:215: error: __gnu_cxx::strtoll has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdlib:216: error: __gnu_cxx::strtoull has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdlib:217: error: __gnu_cxx::strtold has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/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/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/bits/char_traits.h:323: error: wmemcmp was not declared in this scope
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/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/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/bits/char_traits.h:331: error: invalid conversion from const wchar_t* to wchar_t*
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/bits/char_traits.h:331: error:   initializing argument 1 of wchar_t* std::wmemchr(wchar_t*, wchar_t, size_t)
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/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/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/bits/char_traits.h:335: error: wmemmove was not declared in this scope
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/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/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/bits/char_traits.h:339: error: wmemcpy was not declared in this scope
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/bits/char_traits.h: In static member function static wchar_t* std::char_traits<wchar_t>::assign(wchar_t*, size_t, wchar_t):
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/bits/char_traits.h:343: error: wmemset was not declared in this scope
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cwctype: At global scope:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cwctype:85: error: ::wctrans_t has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cwctype:90: error: ::iswblank has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cwctype:102: error: ::towctrans has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cwctype:105: error: ::wctrans has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cwctype:106: error: ::wctype has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/x86_64-pc-linux-gnu/bits/ctype_base.h:51: error: _ISupper was not declared in this scope
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/x86_64-pc-linux-gnu/bits/ctype_base.h:52: error: _ISlower was not declared in this scope
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/x86_64-pc-linux-gnu/bits/ctype_base.h:53: error: _ISalpha was not declared in this scope
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/x86_64-pc-linux-gnu/bits/ctype_base.h:54: error: _ISdigit was not declared in this scope
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/x86_64-pc-linux-gnu/bits/ctype_base.h:55: error: _ISxdigit was not declared in this scope
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/x86_64-pc-linux-gnu/bits/ctype_base.h:56: error: _ISspace was not declared in this scope
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/x86_64-pc-linux-gnu/bits/ctype_base.h:57: error: _ISprint was not declared in this scope
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/x86_64-pc-linux-gnu/bits/ctype_base.h:58: error: _ISalpha was not declared in this scope
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/x86_64-pc-linux-gnu/bits/ctype_base.h:58: error: _ISdigit was not declared in this scope
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/x86_64-pc-linux-gnu/bits/ctype_base.h:58: error: _ISpunct was not declared in this scope
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/x86_64-pc-linux-gnu/bits/ctype_base.h:59: error: _IScntrl was not declared in this scope
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/x86_64-pc-linux-gnu/bits/ctype_base.h:60: error: _ISpunct was not declared in this scope
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/x86_64-pc-linux-gnu/bits/ctype_base.h:61: error: _ISalpha was not declared in this scope
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/x86_64-pc-linux-gnu/bits/ctype_base.h:61: error: _ISdigit was not declared in this scope
winegcc: g++ failed
make: *** [main.o] error 2



The code includes only iostream, fstream and conio.h. As you see I'm using gcc 4.1.2. I'm a Gentoo (amd64 profile - not hardened) user, so of course my Wine was build by that version of gcc.

The problem of course is that it doesn't work and I'd like it to work ;]

Any ideas?






[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux