[cfe-dev] Link error in Clang Visual studio 2008

Francois Pichet pichet2000 at gmail.com
Mon Dec 13 17:04:21 PST 2010


On Mon, Dec 13, 2010 at 7:35 PM, Surinder <surifilms at gmail.com> wrote:
> Hi,
>
> I have compiled llvm on Windows Visual Studio 2008.  The project builds
> successfully.  However, on executing clang to compile a simple hello world C
> program, I get following link error. (I had to add C:\Documents and
> Settings\suri\llvm\bin\Debug into window path to invoke clang ).
>
> Any help would be appreciated.
> End of search list.
>  "link.exe" -out:a.out -defaultlib:libcmt -nologo
> C:/DOCUME~1/suri/LOCALS~1/Temp
> /cc-000000.o
> clang: error: unable to execute command: program not executable
> clang: error: linker command failed due to signal 1 (use -v to see
> invocation)


clang is trying to call link.exe from the msvc toolchain. link.exe is
not in your PATH environment.
Please note that using clang on Windows with MSVC is experimental.




More information about the cfe-dev mailing list