Runing Program

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
 
L

lallous

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).
 
R

Robert A Riedel

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top