Menu

[Build Error] [main.o] Error 1

2006-05-20
2012-09-26
1 2 > >> (Page 1 of 2)
  • Nobody/Anonymous

    Hi,

    I am getting the above error when I try to compile any windows projects.

    Even projects that used to compile dont compile any more.

    I am getting the same error on 4.9.9.0 and 4.9.9.2

    Any ideas on how to solve this? I tried reinstalling the program several times and still no dice.

     
    • Nobody/Anonymous

      Anyone?

       
    • Wayne Keen

      Wayne Keen - 2006-05-24

      Well, I guess you did not read the thread in this forum titled

      "Please Read Before Posting a Question"

      in particular, the section on the "Basic 3" - telling us an error message in isolation really gives us very little to go on. Please post you Basic 3.

      You also mention both 4.9.9.0 and 4.9.9.2. In going between releases, did you do a clean uninstall - the directions for which are also in the "Please Read" thread?

      Wayne

       
    • Nobody/Anonymous

      Compiler: Default compiler
      Building Makefile: "D:\Programming\Cpp\Dev\Makefile.win"
      Executing make...
      make.exe -f "D:\Programming\Cpp\Dev\Makefile.win" all
      g++.exe -c main.cpp -o main.o -I"D:/Programming/Cpp/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"D:/Programming/Cpp/Dev-Cpp/include/c++/3.4.2/backward" -I"D:/Programming/Cpp/Dev-Cpp/include/c++/3.4.2/mingw32" -I"D:/Programming/Cpp/Dev-Cpp/include/c++/3.4.2" -I"D:/Programming/Cpp/Dev-Cpp/include"

      g++.exe: main.cpp: No such file or directory
      g++.exe: no input files

      make.exe: *** [main.o] Error 1

      Execution terminated


      thats the compile log.

      as for the program:

      include <iostream>

      using namespace std;

      int main (int argc, char *argv[])
      {
      cout << "Hello World!" << endl;
      cout << "Press ENTER to continue..." << endl;
      cin.get();
      return 0;
      }

      I think its something to do with the make file generation?

       
    • Wayne Keen

      Wayne Keen - 2006-05-26

      Well, you overrode where Dev installs itself. General hint. Don't do that unless you are VERY sure its OK.

      You also did not answer my question about how you moved between versions.

      My advice is this.

      Do a clean uninstall, using the directions in the thread "Please Read Before Posting a Question" as a starting point. Take your time, and fully delete all traces of Dev. This may take a little more time, as you probably have installed Dev in more than one directory.

      Note the STRONG request in the directions to keep good notes and report exactly what you do - reporting back that "I followed the directions to the letter and ..." or the like is not appreciated.

      Re-download 4.9.9.2, and install it in the default directory.

      You should be OK, but if you are still having issues, report exactly what you did in your clean uninstall-reinstall - step by step - and post your Basic 3.

      Wayne

       
    • Nobody/Anonymous

      Hmm,

      I did a clean uninstallation, basically running the uninstall.exe from the install directory. Then I deleted all the config files unde AppData/Dev-cpp, then I deleted the install folder itself, then I ran RegCleaner to clean out the reg of any entries that may have been there.

      Redownloaded the 4992 setup and installed.

      Still the same error.

      The thing is that I've been using Dev-CPP for years on this install directory format and it's been working fine so far.

       
    • Nobody/Anonymous

      Another thing: Dev-CPP seems to compile fine if I don't use a project (and hence a make file). Could it be something to do with the generation of a make file?

       
      • Wayne Keen

        Wayne Keen - 2006-05-27

        It has to do with how make is invoked. Usually, it is getting into path confusion.

        You did not mention doing a search to insure that all traces of Dev were removed from your hard drive. Did you? I am not worried about the Registry so much, Dev really doesn't do anything big there. I am more worried about files space. Remember to configure Dev to search through hidden folders.

        This can be especially important when you have had multiple installs. That is why I told the story of someone finding that there were vestiges of Dev hiding in c:\program from a previous installation attempted in c:\program files. You really have to do some hunting to make sure you nuke everything.

        Wayne

         
    • Nobody/Anonymous

      Theres only 1 place that I installed Dev-CPP to, and thats the d:\programming\cpp folder, and I've nuked everything there already. Unless dev-cpp creates files some place else other than those locations. I've also run a Disk Cleanup and deleted temporary files from the common locations, but doesnt fix the problem.

       
    • Nobody/Anonymous

      Although I'm 100% sure that there are no other installations, I did a hunt all the same, and it came up with ZIP. The only installation is in that current location.

      Basically, there are no other vestiages.

       
      • Wayne Keen

        Wayne Keen - 2006-05-28

        How did you configure windows search?

        Wayne

         
    • Nobody/Anonymous

      Look,

      I'm a careful user of the computer, and not a noob either. If I'm sure that I didn't install something to a location, then it didnt happen, unless the Dev-CPP installer is pre-configured to install by itself at midnight.

      I manually hunted through the Program Files directory, and cleaned out all the temporary file lcoations.

       
      • Wayne Keen

        Wayne Keen - 2006-05-28

        I have helped a ton of people through issues such as this. However, if you do not want to do what I ask, then I can not help you.

        Wayne

         
    • Nobody/Anonymous

      google: how to ask smart questions and comply with requests posted by people who are actually trying to help you.

       
    • Nobody/Anonymous

      I've done exactly as you asked so far...

       
      • Wayne Keen

        Wayne Keen - 2006-05-30

        "I've done exactly as you asked so far..."

        Right. So how did you configure your windows search?

        Wayne

         
    • Nobody/Anonymous

      From 4 posts up:

      I manually hunted through the Program Files directory, and cleaned out all the temporary file lcoations.

      Like I said though, I know that there aren't any installations to any other locations other than d:\programming\cpp.

       
    • Wayne Keen

      Wayne Keen - 2006-05-31

      "I manually hunted through the Program Files directory"

      I'll make this even clearer.

      Do a windows search on your entire hard drive - make sure that you configure the search to look in hidden folders. (That is not the default configuration for search) Look for anything devcpp related.

      Delete it

      Wayne

       
    • Nobody/Anonymous

      Done.

      And btw, nothing came up.

       
    • Nobody/Anonymous

      This will sound like an echo:

      How did you configure your search?

      Wayne

       
    • Nobody/Anonymous

      Exactly as you told me to.

       
      • Wayne Keen

        Wayne Keen - 2006-06-03

        Telling me that tells me nothing.

        Wayne

         
    • Nobody/Anonymous

      Then you're saying that your post before this told me nothing.

      Quote From 2 posts before:

      Do a windows search on your entire hard drive - make sure that you configure the search to look in hidden folders. (That is not the default configuration for search) Look for anything devcpp related.

      End Quote

      Done that. Search returned nothing (because i didn't install Dev-CPP to any other locations).

      Do you have any suggestions other than looking for non-existant other install locations?

       
      • Wayne Keen

        Wayne Keen - 2006-06-04

        I asked you (on several occasions) how you configured your search. Telling me that you did what I told you to do tells me nothing.

        When debugging remotely it is vital that you tell people exactly what you did.

        Wayne

         
    • Nobody/Anonymous

      Hi,

      I've got the very same problem.

      I've attempted to compile some C code and all I get is: [Build Error] [main.o] Error 1

      This happen indipendently from the code I try to compile; I've also tried con the code listed above by another user, getting the very same results.

      By the way I'm compiling from a fresh install (no previous installation pf Dev-C++ on my PC).

      Could someone help ?

       
1 2 > >> (Page 1 of 2)

Log in to post a comment.