Ive undertaken the task of converting 2 rather large Win32 applications to run on Solaris 10.
I have managed to tweak nearly all of the files so they will compile with wine after running winemaker.
The files I cant seem to compile are ones that use std string.
I get a few errors like the following: error: ::div has not been declared error: ::ldiv has not been declared
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 error: caddr_t does not name a type error: pthread_attr_t was not declared in this scope
The files in question have lines like the following: #include <string> using namespace std;
Ive tried including various additional header files like <sys/types.h> and <dtrace/h>, with varying success, but still approx 200 errors when trying to compile these files.
The error lines say they are from include/c++/3.4.2, so Im assuming that it is using the 3.4.2 compiler as opposed to the 2.95 one also installed on these machines.
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.
Rob
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