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 ../lib/obj/MINGW32/ReleaseD/dll_main.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 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@rogers.com]
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.
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@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
On Thu, Aug 19, 2004 at 04:00:19PM +1000, Scott Snell wrote:
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 ../lib/obj/MINGW32/ReleaseD/dll_main.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 int)':
Just got back from vacation. Why is it including a cstdlib? Anyway, can you send me exactly what you did, so I can try to reproduce it on my box?