Can't get a minimal Windows app running with winelib
Chris Seaton
chris at chrisseaton.com
Thu Feb 12 10:47:40 CST 2004
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
More information about the wine-devel
mailing list