iostream and msvcrt?

Boaz Harrosh boaz at hishome.net
Tue Aug 17 03:17:43 CDT 2004


Using gcc's c++ libraries will not work with msvcrt. If it will compile 
(which it doesn't) it will not load. (Some circular linking)
Your best bet is STLPort. Check it out. What I have done is a special 
makefiles set with special config.h that compiles and links STLPort over 
msvcrt. I have written to STLPort if they want my changes as support for 
another platform but I never got a response from them. Do you need me to 
dig out the old HD and pack you an STLPort compiled over msvcrt?
You might need to make some changes because it is from before winegcc 
times,. Going strait for gcc. and maybe some wine stuff changed since than.

Scott Snell wrote:

>Hi All,
>
>Thanks to everyone who has helped me with winelib, so far most things are
>going really well!  However here is an issue I cant solve - iostream and
>msvcrt.  Here is an example file:
>
>// test.cpp module
>#include <process.h>
>#include <iostream>
>
>int test()
>{
>        return 1;
>}
>
>
>If I compile it using:
>
>wineg++ -c  -mno-cygwin -I/usr/local/include/wine/msvcrt -o test.o test.cpp
>
>or 
>
>wineg++ -c -I/usr/local/include/wine/msvcrt -o test.o test.cpp
>
>I get a multitude of errors such as:
>
>In file included from /usr/include/c++/3.3.2/iosfwd:46,
>                 from /usr/include/c++/3.3.2/ios:44,
>                 from /usr/include/c++/3.3.2/ostream:45,
>                 from /usr/include/c++/3.3.2/iostream:45,
>                 from test.cpp:2:
>/usr/include/c++/3.3.2/i386-redhat-linux/bits/c++locale.h:53: error:
>`uselocale' was not declared in this scope
>In file included from
>/usr/include/c++/3.3.2/i386-redhat-linux/bits/c++io.h:35,
>                 from /usr/include/c++/3.3.2/bits/fpos.h:44,
>                 from /usr/include/c++/3.3.2/iosfwd:49,
>                 from /usr/include/c++/3.3.2/ios:44,
>                 from /usr/include/c++/3.3.2/ostream:45,
>                 from /usr/include/c++/3.3.2/iostream:45,
>                 from test.cpp:2:
>/usr/include/c++/3.3.2/cstdio:167: error: `snprintf' not declared
>/usr/include/c++/3.3.2/cstdio:168: error: `vfscanf' not declared
>/usr/include/c++/3.3.2/cstdio:169: error: `vscanf' not declared
>/usr/include/c++/3.3.2/cstdio:171: error: `vsscanf' not declared
>
>
>So whats my newbie mistake?
>
>thanks,
>
>Scott.
>  
>



More information about the wine-devel mailing list