When I run the command gcc CCC.Cpp
I get this error:
CCC.Cpp: file not recognized: file format not recognized
Collect2: error: ld returned 1 exit status"
This is the content of CCC.Cpp
file:
#include <iostream>
using namespace std;
int main(){cout << "CCC";return 0;}
cat -A CCC.Cpp
. – muru Jul 07 '21 at 09:34sudo apt install g++
..... and use g++ for C++ code. ...... ...... https://unix.meta.stackexchange.com/questions/4086/psa-please-dont-post-images-of-text – Knud Larsen Jul 07 '21 at 09:35CCC.cpp
and use the commandg++
instead. – FedKad Jul 07 '21 at 09:36