I actually get errors when doing this.  <br><br><div><div>d:\src\llvm\tools\lldb\test\lang\c\shared_lib>make CC=d:\src\llvm\build\ninja\bin\clang.exe</div><div>'g++' is not recognized as an internal or external command,</div><div>operable program or batch file.</div><div>The system cannot find the file specified.</div><div>The system cannot find the file specified.</div><div>d:\src\llvm\build\ninja\bin\clang.exe -g -O0 -m32  -fPIC -Id:/src/llvm/tools/lldb/test/make/../../include   -c -o main.o main.c</div><div>d:\src\llvm\build\ninja\bin\clang.exe -g -O0 -m32  -fPIC -Id:/src/llvm/tools/lldb/test/make/../../include   -c -o foo.o foo.c</div><div>d:\src\llvm\build\ninja\bin\clang.exe -g -O0 -m32  -fPIC -Id:/src/llvm/tools/lldb/test/make/../../include  -fuse-ld=lld foo.o -shared -o "libfoo.so"</div><div>clang.exe: warning: argument unused during compilation: '-shared'</div><div>Cannot infer subsystem; assuming /subsystem:console</div><div>Undefined symbol: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\lib\libcmt.lib(f:\binaries\Intermediate\vctools\crt_bld\SELF_X86\crt\prebuild\build\INTEL\mt_obj\nativec\\crt0.obj): _main</div><div>symbol(s) not found</div><div>clang.exe: error: linker command failed with exit code 1 (use -v to see invocation)</div><div>make: *** [libfoo.so] Error 1</div></div><div><br></div><div><br></div><div>This probably hints a deeper issue or just something else I haven't gotten around to fixing yet (like maybe it's broken for all C files, and only works for C++).</div><div><br></div><div>Just so I understand, is this a location where it's supposed to find system libraries, like libc or similar?  Or is this for something else?  Clang is pretty good about automatically finding all required libraries on Windows, so if it's just for that it might not be needed, but if it's a place we're putting our own shared libraries, then maybe we do.</div><br><div class="gmail_quote">On Tue Dec 02 2014 at 3:26:32 PM Greg Clayton <<a href="mailto:clayborg@gmail.com">clayborg@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You will actually want to set this correctly for windows. To find out what settings to use use:<br>
<br>
cd test/lang/c/shared_lib<br>
make<br>
<br>
Then look for the shared library that was created "libfoo.dll"? If so your setup would be:<br>
<br>
<br>
```<br>
        elif sys.platform.startswith('<u></u>windows'):<br>
            cls.platformContext = _PlatformContext('PATH', 'lib', 'dll')<br>
<br>
```<br>
<br>
REPOSITORY<br>
  rL LLVM<br>
<br>
<a href="http://reviews.llvm.org/D6484" target="_blank">http://reviews.llvm.org/D6484</a><br>
<br>
<br>
</blockquote></div>