loarabia/Clang-tutorial — Issue #9: Compatibility with 3.0
Author: Gnurou
Created: 2011-12-20 03:52:05+00:00
State: open

Commit f4fb4ef4ceb0908115e8957aa7ba7bf528c6bf7b claims to have updated to the 3.0 API, but using this version I get the following compilation error:

```g++ -I/usr/include -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3 -fomit-frame-pointer -fno-exceptions -fPIC -Woverloaded-virtual -Wcast-qual -fno-rtti -c -o tutorial1.o tutorial1.cpp
tutorial1.cpp: In function ‘int main()’:
tutorial1.cpp:46:67: error: no matching function for call to ‘clang::HeaderSearch::HeaderSearch(clang::FileManager&, clang::DiagnosticsEngine&)’
tutorial1.cpp:46:67: note: candidates are:
/usr/include/clang/Lex/HeaderSearch.h:183:3: note: clang::HeaderSearch::HeaderSearch(clang::FileManager&)
/usr/include/clang/Lex/HeaderSearch.h:183:3: note: candidate expects 1 argument, 2 provided
/usr/include/clang/Lex/HeaderSearch.h:180:12: note: clang::HeaderSearch::HeaderSearch(const clang::HeaderSearch&)
/usr/include/clang/Lex/HeaderSearch.h:180:12: note: candidate expects 1 argument, 2 provided
/usr/include/clang/Lex/HeaderSearch.h:179:12: note: clang::HeaderSearch::HeaderSearch()
/usr/include/clang/Lex/HeaderSearch.h:179:12: note: candidate expects 0 arguments, 2 provided
tutorial1.cpp:49:25: error: ‘getDefaultTargetTriple’ is not a member of ‘llvm::sys’
```

Could this be fixed? Also, the README file says you can be contacted through your Github account, but it is not possible to send you messages unless you specify an email address.