Thanks for your reply, Roderick. I've compile my project with wineg++, but I have the same result: undefined reference to WINAPI functions. Any suggestion? One more question: there is the different between including -lkernel32 and /usr/lib/wine/kernel32.dll.so in project file? When I'm trying to include -lkernel32 library I've got the error: "Cannot find -lkernel32", when I compile with /usr/lib/wine/kernel32.dll.so I've succeded, but have undefined reference errors.