Extremely sorry Eskimo for late reply...
I tried your C++ example-
#include <iostream>
int main()
{
std::cout << "Hello Cruel World!\n";
}
And here are the results-
%cat hello.cpp
#include <iostream>
int main()
{
std::cout << "Hello Cruel World!\n";
}
% clang++ -o hello hello.cpp
% ./hello
Hello Cruel World!
This time it builds fine, but now when I try it in a workspace opened in CodeBlocks IDE(which I regularly have to do), it produces the same error at that 'no member named "nullptr_t" found in the global namespace'. I don't have any idea why it's not working in any workspaces because I try to do exactly what my instructor at Udemy tells. But it works when I create the hello.cpp file via any IDEs or text editor like nano etc. It shows errors like these-(I'm providing them as screenshots as warnings my IDE shows can not be copied)
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: