iostream and msvcrt?

Scott Snell ssnell at
Thu Aug 19 01:00:19 CDT 2004

Hi Dimi,

Thanks for helping out.  I made the changes you suggested to the
gcc-mingw.mak file for STLPort.  When I go make it does a:

wineg++ -I../stlport -W -Wno-sign-compare -Wno-unused -Wno-uninitialized
-mno-cygwin -O2 -D_STLP_USE_DYNAMIC_LIB dll_main.cpp -c -o

which throws up a world of errors, such as:

In file included from ../stlport/cstdlib:25,
from ../stlport/stl/debug/_debug.c:160,
from ../stlport/stl/debug/_debug.h:418,
from ../stlport/utility:40,
from dll_main.cpp:35:
/usr/include/c++/3.3.2/cstdlib:97: error: `div' not declared
/usr/include/c++/3.3.2/cstdlib:102: error: `ldiv' not declared
/usr/include/c++/3.3.2/cstdlib: In function `ldiv_t std::div(long int, long

I'm sure its something simple but I'm still not comfortable around



> -----Original Message-----
> From:	Dimitrie O. Paun [SMTP:dpaun at]
> On Wed, Aug 18, 2004 at 11:32:33AM +0300, Boaz Harrosh wrote:
> > >
> > Better go with gcc-mingw.mak, as threading and OS is more Windows than 
> > Linux. See if they have a -nocygwin variant.
> Yes, it should work with the gcc-mingw.mak by changing
>    gcc -> winegcc
>    g++ -> wineg++
> > >adding a path pointing to /include/wine/MSVCRT.
> > >
> No, you shouldn't need that. You just need to make sure you pass
> the -mno-cygwin flag to winegcc/wineg++.
> -- 
> Dimi.

More information about the wine-devel mailing list