http://llvm.org/bugs/show_bug.cgi?id=9842
Summary: Missing implementation of llvm::sys::fs::canonicalize
Product: new-bugs
Version: 2.9
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
I've grepped through the contents of the 2.9 release and a fresh checkout of
trunk from SVN. I can find the prototype for fs::canonicalize(), but I can't
find an implementation of it. If I try to use it, I get a link error.
Testcase:
------------------------------------------
#include <llvm/Support/FileSystem.h>
using namespace llvm;
using namespace llvm::sys;
int main() {
SmallString<128> cpath;
fs::canonicalize("/tmp", cpath);
return 0;
}
-------------------------------------------
Results:
/tmp/clang $ g++ `llvm-config --cxxflags --ldflags --libs all`
canonicalize_bug.cpp
/tmp/cchybXUa.o: In function `main':
/tmp/clang/canonicalize_bug.cpp:8: undefined reference to
`llvm::sys::fs::canonicalize(llvm::Twine const&, llvm::SmallVectorImpl<char>&)'
collect2: ld returned 1 exit status
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs