[cfe-dev] Compiling a simple Win32 program

Cesar Mello cmello at gmail.com
Wed Jun 6 03:54:53 PDT 2012


I've tried to compile this simple program:

#include <windows.h>

int main()
::MessageBoxW(NULL, L"Test!", L"Test!", MB_OK);
return 0;

It compiles nicely, but fails to link. Please can you tell me how to
specify user32 and gdi32 libraries for the linker? Sorry if I'm being too
newbie. :-)

Thank you a lot!

Best regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120606/59a1650a/attachment.html>

More information about the cfe-dev mailing list