Whenever I type in
g++ toe.ccp this comes up:
/usr/bin/ld:toe.ccp: file format not recognized; treating as linker script /usr/bin/ld:toe.ccp:1: syntax error collect2: ld returned 1 exit status
It appears you have the wrong file extension. You created a file which you called
In case you are unfamiliar with how to do so on the command line, you can do
You should use the correct file extension for the program.
As shown in the GCC user manual section on input file names, there are a predefined list of file extensions for each recognized programming language. C++ source files can end in