Can't get a minimal Windows app running with winelib

Dimitrie O. Paun dimi at
Thu Feb 12 11:23:17 CST 2004

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:

The other libs:
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


More information about the wine-devel mailing list