Sublime Forum

SublimeClang Error compliance with C++ STL

#1

I am developing in Sublime Text 2 for a project I am working on in a class. I have been using SublimeClang for the auto-complete and the syntax error warnings that display directly in my environment before actually compiling.

The issue I’m having seems to be with C++ STL compliance, however, I am able to compile my code locally using a clang compiler in my terminal, but I am getting this error in the Sublime Text editor.

.h:38,33 - Error - no member named 'prev' in namespace 'std'

std::prev is part of c++11 so I know it should be compliant. I have been pulling my hair out trying to find a fix to this issue. I understand that it’s not affecting my development because my code is compiling fine, but the annoying red error message is extremely annoying at the bottom of my development space.

If there is any way to modify Sublime to prevent these errors from appearing, I would be greatly appreciative.

Thanks!

0 Likes