nonoitall wrote: > Now I try to compile the same code with Winelib, but I'm having problems: > > Code: > winegcc -mwindows -mno-cygwin *.c -o main > > This is not correct. You need to use something like this: Code: winegcc -Bwinebuild -I/usr/include/local/src/wine.git-build/include -I/usr/local/src/wine.git/include -mwindows test.c -o test.exe.so -luser32 -lkernel32 Adjust path to your Wine's include directory.