Menu

I need help

2003-02-02
2012-09-26
  • Nobody/Anonymous

    Ok, I am just now getting into C++ and I just downloaded and installed Dev-Cpp. I made a new project named testproj, made it a C++ console program, saved the .dev file to C:\testproj\testproj.dev, and typed:

    #include <iostream.h>

      int main()
    {
        cout << "Hello World!\n";
          return 0;
    }

    Into the text window labeled main.cpp. I then saved main.cpp to the same directory as testproj and named it main.cpp. After that I clicked save all from the file menu. Next I hit the compile button and got this error in the compiler tab:
    Line: 2 File: C:\testproj\2 Message: unable to run program file. What is this \2, and how do I get my programs to compile?
    Thanks,
    Thad

     
    • Nobody/Anonymous

      What version of Dev did you download, with what version of gcc?

      Was the installer download at least 10 Megabytes?

      Did you use a folder that was names something like "testproj 2"?

      Wayne

       
    • Anonymous

      Anonymous - 2003-02-02

      GNU tools do not generally work correctly with file paths containing spaces.

      Clifford

       
    • Nobody/Anonymous

      No, I downloaded the exe only. Is that not was I was supposed to do? I just now downloaded and installed the 13 or some-odd one, and it gives me the same error.

       
    • Nobody/Anonymous

      The exe only version has no compiler, which leads to your error. There is a warning to that effect on the download page, didn't you read it?

      You need to uninstall dev, delete the directories, restart, then reinstall the full version.  Make sure you get rid of the vesitiges of your previous installs.

      Check back afterwards.  Don't forget to copy and paste (not paraphrase) you compile log, and post the code you are using when errors arise.

      Wayne

       
      • Nobody/Anonymous

        Yea, thanks, but I figured out what I did. I didnt set a path to the compiler in the binary path.

         
    • Nobody/Anonymous

      And you did not tell folks enough about your setup when you posted.

      It should not have to take several questions to find out that you were running with your own compiler.  If Ihad known that from the beginning, I could have avoided wasting some time for you, and me.

      Wayne

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.