This won't be able to work. The linker error is telling you,
effectively, that you're not importing user32. However, kernel32 can't import user32. Kernel32 is at a lower level than user32. And a console program especially can't rely on user32 being loaded and initialized to satisfy the request you're making. Regards, Ken actually the correct fix would be to transfer this computation to wineconsole (which already imports user32), but thats' not a really trivial task A+