I can't get a minimal Windows app to run with winelib (it compiles fine).

I'm compiling

-----------------------------------
#include <stdlib.h>
#include <windows.h>

int WINAPI WinMain(HINSTANCE Instance, HINSTANCE PreviousInstance, LPSTR CommandLine, int ComandShow)
{
return EXIT_SUCCESS;
}
-----------------------------------


With

winegcc -mwindows -o test.exe -Iwine/windows test.c -lwine -lkernel32.dll -luser32.dll

Which succeeds but when I run ./test I get

err:heap:HEAP_GetPtr Invalid heap (nil)!
Segmentation fault

Any ideas, anyone?

Chris Seaton



Reply via email to