Re: Problem using winelib to compile Std Lib strings

2005-02-27 Thread Boaz Harrosh
Rob D wrote:
The files I cant seem to compile are ones that use std string.

If you are using msvcrt, You cannot use native g++ std with Winelib. In 
this case you'll need to grab STLPort. And hack on it to compile over 
wine & msvcrt headers. This is for two reason. 1- The headers are 
incompatible (Headers separation is really bad especially gcc's) 2. 
you'll have a risk of runtime memory corruption, as programmers usually 
mix between allocation methods. So you'll have some buffers allocated in 
Wine system that try to released on g++ heap and vis versa.

If you want I can package for you an OLD STLPort. The dynamic Libraries 
you will not be able to use as it uses a very old wine build. But you 
should be able to compile and use the static libraries.

The development Ive been tasked with will move several people off of
winblows machines and onto Solaris 10 if I can succeed, so it is even
more critical in my mind to get this to work.
Yes this is very important! If they're used to Windows MSDEV. they might 
like KDevelop3, and the debugger is also nice for Winelib. You do have 
KDE libs for Sun right???

Free life
Boaz



Re: Problem using winelib to compile Std Lib strings

2005-02-26 Thread Jon Griffiths
Hi Rob,

>I get a few errors like the following:
>error: ::div has not been declared
>error: ::ldiv has not been declared

div and ldiv may or may not be included in the std namespace. Try
changing the calls to either remove the scope resolution from their
calls or adding std before it.

>And tons about /usr/include/pthread.h like the following:
>error: uintptr_t does not name a type
>error: caddr_t has not been declared

You may need to rebuild your gcc supplied headers, check out:

http://supportforum.sun.com/sunos/index.php?t=msg&th=2097&start=0&rid=0

for details.

If you need/needed to make any fixes to Wine to get it working under
Solaris, please consider sending any changes to wine-patches or
documenting the process (AFAIK not many ppl are using Wine under
solaris).

Hope this helps,
Jon


=
"Don't wait for the seas to part, or messiahs to come;
 Don't you sit around and waste this chance..." - Live

[EMAIL PROTECTED]



__ 
Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250