<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>>Peter, I believe I have fixed the issue in r158596.</div><div>yheaaaaaaaa... :):) Takumi, I just updated my svn brunch and it works now. Thanks so</div><div>much for your work!!!!</div><div><br></div><div>Best regards from Germany!!<br></div><div><br></div>  <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 dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">Von:</span></b> NAKAMURA Takumi <geek4civic@gmail.com><br> <b><span style="font-weight: bold;">An:</span></b> Peter <clang_llvm_123-4@yahoo.de> <br><b><span style="font-weight: bold;">CC:</span></b> "cfe-dev@cs.uiuc.edu" <cfe-dev@cs.uiuc.edu> <br> <b><span style="font-weight:
 bold;">Gesendet:</span></b> 8:10 Samstag, 16.Juni 2012<br> <b><span style="font-weight: bold;">Betreff:</span></b> Re: [cfe-dev] clang::FileManager -> getFile returns NULL on Windows Visual Studio ### On Linux everything works fine<br> </font> </div> <br>Peter, I believe I have fixed the issue in r158596.<br><br>...Takumi<br><br>2012/6/14 Peter <<a ymailto="mailto:clang_llvm_123-4@yahoo.de" href="mailto:clang_llvm_123-4@yahoo.de">clang_llvm_123-4@yahoo.de</a>>:<br>> 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>><br>> Von: NAKAMURA Takumi <<a
 ymailto="mailto:geek4civic@gmail.com" href="mailto:geek4civic@gmail.com">geek4civic@gmail.com</a>><br>> An: Peter <<a ymailto="mailto:clang_llvm_123-4@yahoo.de" href="mailto:clang_llvm_123-4@yahoo.de">clang_llvm_123-4@yahoo.de</a>><br>> Cc: "<a ymailto="mailto:cfe-dev@cs.uiuc.edu" href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a>" <<a ymailto="mailto:cfe-dev@cs.uiuc.edu" href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a>><br>> Gesendet: 15:35 Sonntag, 11.Dezember 2011<br>> Betreff: Re: [cfe-dev] clang::FileManager -> getFile returns NULL on Windows<br>> Visual Studio ### On Linux everything works fine<br>><br>> 2011/12/11 Peter <<a ymailto="mailto:clang_llvm_123-4@yahoo.de" href="mailto:clang_llvm_123-4@yahoo.de">clang_llvm_123-4@yahoo.de</a>>:<br>>> main.exe c:\test.c<br>><br>> Would you like to try not on the root directory?<br>><br>> See also; <a
 href="http://llvm.org/bugs/show_bug.cgi?id=10331" target="_blank">http://llvm.org/bugs/show_bug.cgi?id=10331</a><br>><br>> ...Takumi<br>><br>><br>> ________________________________<br>> Von: Peter <<a ymailto="mailto:clang_llvm_123-4@yahoo.de" href="mailto:clang_llvm_123-4@yahoo.de">clang_llvm_123-4@yahoo.de</a>><br>> An: "<a ymailto="mailto:cfe-dev@cs.uiuc.edu" href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a>" <<a ymailto="mailto:cfe-dev@cs.uiuc.edu" href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a>><br>> Gesendet: 12:03 Sonntag, 11.Dezember 2011<br>> Betreff: [cfe-dev] clang::FileManager -> getFile returns NULL on Windows<br>> Visual Studio ### On Linux everything works fine<br>><br>> Hi everybody,<br>><br>> I just started hacking on a small command line tool and<br>> when I try to get a file with the following code it always gives<br>> me an empty address.<br>><br>>
 main.exe c:\test.c<br>><br>> The same code compiled and running on linux works just fine.<br>><br>> int main (int argc, char **argv)<br>> {<br>>     int ret = 0;<br>><br>>    clang::FileManager *fm = new<br>> clang::FileManager(clang::FileSystemOptions());<br>>    const clang::FileEntry* file = fm->getFile(llvm::StringRef(argv[1]));<br>><br>>     return(ret);<br>> }<br>><br>> Is it a bug? I hope anybody can help me?<br>><br>> Thanks in advance,<br>> Peter<br>><br><br><br> </div> </div>  </div></body></html>