[Wine] Re: My first winelib app - where am I going wrong?

vitamin wineforum-user at winehq.org
Tue Dec 16 20:53:40 CST 2008

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:

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.

More information about the wine-users mailing list