[wellylug] Wine console

Tony Booth Tony.Booth at treasury.govt.nz
Thu Sep 25 12:45:29 NZST 2003


Hi all

I'm trying to run a _very_ simple program under wineconsole, but can't
get it to work.
 
The file is:
 
#include <stdio.h>
 
int main (int argc, char * argv[])
{
    int a;
    printf("Enter a char:");
    a = getchar();
}
 
It compiles and runs fine under Linux (prints the message and waits for
characters to be typed, ends when Return is pressed).
 
It also compiles using mingw32 cross-compiler and runs fine if put on a
Windows box, but won't run under Wine.
 
Specifically, the behaviour I observe is:
1) Console window opens
2) Console window closes before I can see any text printed (i.e. very
fast), doesn't wait for chars to be typed
3) Wine exits with successful completion indicator.
 
I have had no luck getting winedbg to work at all.
 
I'm using version 0.0.20020411-1 on Debian (stable).  Simple windows
(non-console) apps are working under this version of Wine.
 
Any help appreciated.
 
Incidentally, the background to this is that I'm trying to get a
slightly more complicated program working, also a console app, and not
having any joy.

I've tried the wine-users mailing list without any response.
 
Cheers
Tony



More information about the wellylug mailing list