Can't get a minimal Windows app running with winelib
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
On Thu, 12 Feb 2004, Chris Seaton wrote:
winegcc -mwindows -o test.exe -Iwine/windows test.c -lwine -lkernel32.dll -luser32.dll
You don't need these: -Iwine/windows -lwine The other libs: -lkernel32.dll -luser32.dll are not needed either, they are linked in by default. So the above can be built as such: winegcc -mwindows -o test.exe test.c
Which succeeds but when I run ./test I get
err:heap:HEAP_GetPtr Invalid heap (nil)! Segmentation fault
This is strange, can you please send a the output of ./test --debugmsg +relay,+all 2>test.log -- Dimi.
participants (2)
-
Chris Seaton -
Dimitrie O. Paun