iostream and msvcrt?

Boaz Harrosh boaz at hishome.net
Sun Aug 22 07:18:06 CDT 2004


Scott Snell wrote:

>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
>int)':
>
>I'm sure its something simple but I'm still not comfortable around
>gcc/winegcc.
>
>thanks,
>
>Scott.
>
>  
>
>>-----Original Message-----
>>From:	Dimitrie O. Paun [SMTP:dpaun at rogers.com]
>>
>>    
>>
>>>>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.
>>    
>>

You need to have your stlport/config/stl_wine.h (I based mine on 
stl_mycomp.h, not stl_gcc.h) and change /stlport/config/stlcomp.h to 
include it (based on a WINE_GCC flag). You need to do that because of 
the way STLPort works with headers. you must put a path that will 
Definitely select wine/msvcrt as the source of stdc. I used ../msvcrt in 
the header and than Just fixed up the -I list in makefiles (and the 
WINE_GCC flag or is there a flag that is defined by wingcc).

Free Life
Boaz





More information about the wine-devel mailing list