So I just installed Ubuntu 18.04 on my (not so shiny) new thinkpad and I'm loving it, especially the new GNOME getup.
So I was looking to run some c++ code. Seems gcc is already installed by default so I try out a simple hello world program called test.cpp
I compile it:
cpp test.cpp -o test ... works fine no errors.
I then try to run it but it says permission denied, so I do a quick
chmod u+x and it seems to at least try to run the program. No matter what code I put in and compile, it always comes with these errors:
./test: line 18: namespace: command not found ./test: line 22: syntax error near unexpected token `(' ./test: line 22: ` typedef decltype(nullptr) nullptr_t;'
--Also note that there are only 7 lines of code and it gives me an error for line 18+?! Also why is it giving me errors after I compiled it?!
So I made a new account on #askubuntu and here I am now.