Runing Program

  • Thread starter Thread starter Gabriel Hernandez
  • Start date Start date
G

Gabriel Hernandez

Well I am just getting started with C++ and I am having a
problem. I created a very simple program and when I try to
compile it I receive this message

Cannot compile the file 'C:\Program Files\Microsoft Visual
Studio\MyProjects\Gabriel\Text1.txt'; no compile tool is
associated with the file extension.
Any help will be greatly appreciated

Thanks
 
Hello Gabriel,

You'd better create a new project and save its source files w/ .CPP
extension.
Your current problem is that you're trying to perform an action on .txt file
which won't be handled w/ the compiler (it expects cpp extension).
 
When using the compiler, your file extension should be either '.C' or
'.CPP'. It appears that you are attempting to compile a text file. Change
your file type.
 
Back
Top