winelib help - program hangs

JaReK myszewsk at cse.Buffalo.EDU
Sun Mar 9 20:31:13 CST 2003


Howdy. I'm a newbie to wine, got its latest version compiled and set on
redhat 8.

I have a source for a program written with VC++ that uses windows threads,
eventobjects and sockets. I would like to run this program on linux using
wine.

Program consists of several .c and .h files. One of the .c files has the
main() method. The program is console-based - does not use MFCs.


What I did is I used winemaker to parse the program source code, generate
config and  makefiles. I made sure to use flags such as --nomfc --console

I edited the Makefile to make sure when linking, proper dlls are attached
(ws2_32 msvcrt).   Program compiles fine; generates all the object files
and the wine exec (progname.exe.so);
I get some warnings about poitner casting, etc.

Now the hard part, when I try to run the program (by executing the
./progname shell script that invokes wine + executable), the wine tells me
it 'Could not load graphics driver 'x11drv' and then simply hangs
occupying 99% of the CPU time.

Now, I tried to use debug +all and got a lot of text printing out, same
stuff over and over (some sort of a loop).

I also wrote a tiny helloworld program using VC++ and did not have trouble
compiling/running it under wine (winemaker + configure + make), it also
complained about the x11drv driver, but then it ran.  However, in that case, there
was only 1 source file.

 I was also wondering how to tell wine which file the main resides in
 and how to compile on wine the windows source without shared libs
(compile the dll functions into the executable).

I would appreciate any input, the program I'm trying to run is complex in
the algorithmic sense, it does not use registries or mfcs; it uses
windows sockets and threads.  At this point, I am not sure whether the
problem is somewhere in my  program or with the wine setup or perhaps
the way I get it compiled.

Any help to get it running I would appreciate a lot :)


Regards ...
Jarek Myszewski
University at Buffalo





More information about the wine-users mailing list