[cfe-dev] Compiling a simple Win32 program

Nikola Smiljanic popizdeh at gmail.com
Tue Jun 12 05:02:36 PDT 2012


Here's some info about the issues that were discussed in this thread:

1. Patch for forwarding -l argumets to link.exe is already on cfe-commits
but I'm missing a test, this is my first priority. We haven't decided if
extension should be added where needed, so that -luser32 becomes user32.lib?

2. There is a much better way to solve the problem of choosing the linker.
Clang should look for the active linker using the environment variables.
This way it will always find "the right one", provided that Clang was
invoked through desired Visual Studio Tools Command Prompt (running
vcvars.bat is also an option). The same should go for msys. This is what I
plan to do next, at least the Visual Studio part since I know very little
about msys. The patch that was attached in this thread can be safely
ignored :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120612/b6853caa/attachment.html>


More information about the cfe-dev mailing list