[cfe-dev] Include Default C++ paths

madil90 madil90 at gmail.com
Wed Oct 17 09:29:02 PDT 2012


Hi,
   I am trying to parse a C++ code but clang doesn't recognize the C++
types. Consider the following code

#include <iostream>
#include <string>

int main()
{
    string str;
}

clang gives an error at <iostream> and doesn't recognize the string type. To
enable C++, I did "langOptions.CPlusPlus=1" and the code recognizes custom
C++ classes. So how do I include default C++ paths?



--
View this message in context: http://clang-developers.42468.n3.nabble.com/Include-Default-C-paths-tp4027501.html
Sent from the Clang Developers mailing list archive at Nabble.com.



More information about the cfe-dev mailing list