Hello, I am using OSX and VS code.
When I use constexpr, VS Code gives me the error: "unknown name type 'constexpr'". I did some research about constexpr on osx and found that I'd need to compile with -std=c++11. But my issue isn't with compiling, it's simply getting the text editor to recognize constexpr as a valid keyword. Is there something I need to #include in order to get this to be valid?
How do I get VS Code to not give me an error on constexpr?
That's not a sensible question in this context. constexpr is a keyword added with C++11, so it has nothing to do with includes.
@femtopwn, I don't know that IDE, but there should be a setting somewhere. Have you scoured the preferences? Also, have you been able to compile as C++11?
@FurryGuy, thank you for the response. I looked into this and tried to use xcodebuild -find make, but i get the following error.
xcodebuild -find make
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
I DO have Xcode installed, so Im not sure why Im getting this error. Any suggestions?