Runing Program

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gabriel Hernandez

    #1

    Runing Program

    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\MyProjec ts\Gabriel\Text 1.txt'; no compile tool is
    associated with the file extension.
    Any help will be greatly appreciated

    Thanks
  • Robert A Riedel

    #2
    Re: Runing Program

    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.

    "Gabriel Hernandez" <gabrielh99@yah oo.com> wrote in message
    news:112601c386 da$ff2fc8a0$a30 1280a@phx.gbl.. .[color=blue]
    > 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\MyProjec ts\Gabriel\Text 1.txt'; no compile tool is
    > associated with the file extension.
    > Any help will be greatly appreciated
    >
    > Thanks[/color]


    Comment

    • lallous

      #3
      Re: Runing Program

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

      --
      Elias

      "Gabriel Hernandez" <gabrielh99@yah oo.com> wrote in message
      news:112601c386 da$ff2fc8a0$a30 1280a@phx.gbl.. .[color=blue]
      > 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\MyProjec ts\Gabriel\Text 1.txt'; no compile tool is
      > associated with the file extension.
      > Any help will be greatly appreciated
      >
      > Thanks[/color]


      Comment

      Working...