<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt">Hii,<br><br>I still can't read files from a root directory on Windows.<br>I am getting the following error<br><br>error: error reading 'C:\test.c'<br><br>I've tried with the current llvm trunk and with the 3.1 and 3.0 version. <br>None of them worked. Any other path works just fine!!<br><br>Does anyone now what the problem might by?<br><br>Thanks in advance!!!<br>Peter<br><br><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div id="yiv533597738"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;"><br>Von: NAKAMURA Takumi <geek4civic@gmail.com><br>An: Peter <clang_llvm_123-4@yahoo.de><br>Cc: "cfe-dev@cs.uiuc.edu"
<cfe-dev@cs.uiuc.edu><br>Gesendet: 15:35 Sonntag, 11.Dezember 2011<br>Betreff: Re: [cfe-dev] clang::FileManager -> getFile returns NULL on Windows Visual Studio ### On Linux everything works fine<br><br>2011/12/11 Peter <clang_llvm_123-4@yahoo.de>:<br>> main.exe c:\test.c<br><br>Would you like to try not on the root directory?<br><br>See also;
http://llvm.org/bugs/show_bug.cgi?id=10331<br><br>...Takumi<br><br><div style="font-family:times new roman, new york, times, serif;font-size:12pt;"> </div> </div></div></div><div><br></div> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1"> <b><span style="font-weight:bold;">Von:</span></b> Peter <clang_llvm_123-4@yahoo.de><br> <b><span style="font-weight: bold;">An:</span></b> "cfe-dev@cs.uiuc.edu" <cfe-dev@cs.uiuc.edu> <br> <b><span style="font-weight: bold;">Gesendet:</span></b> 12:03 Sonntag, 11.Dezember 2011<br> <b><span style="font-weight: bold;">Betreff:</span></b> [cfe-dev] clang::FileManager -> getFile returns NULL on Windows Visual Studio ### On Linux everything works fine<br> </font> </div> <br><div>Hi everybody,</div><div><br></div><div>I just started hacking on a small command line tool and</div><div>when I try to get a file with the following code it always gives</div><div>me an empty address.
<br></div><div><br></div><div>main.exe c:\test.c </div><div><br></div><div>The same code compiled and running on linux works just fine.</div><div><br></div><div>int main (int argc, char **argv)<br>{<br> int ret = 0;<br><br> clang::FileManager *fm = new clang::FileManager(clang::FileSystemOptions());<br> const clang::FileEntry* file = fm->getFile(llvm::StringRef(argv[1]));<span class="yiv121536922tab"> </span><br><br> return(ret);<br>}</div><div><br></div><div>Is it a bug? I hope anybody can help me?</div><div><br></div><div>Thanks in
advance,</div>Peter<br><br> </div> </div> </div></body></html>