Menu

Build Error 1

Mogthew
2006-11-27
2012-09-26
  • Mogthew

    Mogthew - 2006-11-27

    I am using Dev-Cpp 4.9.9.2, Windows XP (no service packs or updates).
    After a recent format (and a file system corruption on my backup drive :S), Dev-Cpp will not compile any projects (i have installed it onto my other drive).

    Alot of the projects that i have previously compiled now wont. Even a simple project such as

    include <cstdlib>

    include <iostream>

    using namespace std;

    int main(int argc, char *argv[])
    {
    system("PAUSE");
    return EXIT_SUCCESS;
    }

    gives me "C:\myProjects\Makefile.win [Build Error] [main.o] Error 1 ".

    When i look at the compiler log i see:

    Compiler: Default compiler
    Building Makefile: "C:\myProjects\Makefile.win"
    Executing make...
    make.exe -f "C:\myProjects\Makefile.win" main.o
    g++.exe -c main.cpp -o main.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/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

    I have tested the g++ exe file with appropriate flags and correctly compiled the main.cpp file at the command line. The problem seems to be in the make.exe file, and i have no idea why it wont work. I have looked at the Path variable and ensured that links to the bin directory are correct, i have made sure all the programs can be found by Dev-Cpp (tools > compiler options > programs).

    I have read the other posts about the Error 1 problem, and tried the command
    make -fmakefile.win

    as advised in this post http://sourceforge.net/forum/message.php?msg_id=3781937

    Which gave me the error

    C:\Dev-Cpp>make -fmakefile.win
    g++.exe main.o -o "CompleteTest1.exe" -L"C:/Dev-Cpp/lib"
    g++.exe: main.o: No such file or directory
    g++.exe: no input files
    make: *** [CompleteTest1.exe] Error 1

    Can anyone help?

     
    • Nobody/Anonymous

      Have you tried rebuilding the dev-cpp project file?

       
    • Mogthew

      Mogthew - 2006-11-27

      Yes ive tried to rebuild it, i got a similar message:

      C:\Dev-Cpp\Makefile.win [Build Error] n\make.exe: *** [main2.o] Error 1

      which in the log was:

      Compiler: Default compiler
      Building Makefile: "C:\Dev-Cpp\Makefile.win"
      Executing make clean
      rm -f main2.o Project2.exe

      g++.exe -c main2.cpp -o main2.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include"

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

      C:\Dev-Cpp\bin\make.exe: *** [main2.o] Error 1

      Execution terminated

       
    • Nobody/Anonymous

      Same problem here as well.

      Error log:

      Compiler: Default compiler
      Building Makefile: "C:\Dev-Cpp\Makefile.win"
      Executing make...
      make.exe -f "C:\Dev-Cpp\Makefile.win" all
      gcc.exe -c main.c -o main.o -I"C:/Dev-Cpp/include"

      'C:\DOCUME~1\13' is not recognized as an internal or external command,
      operable program or batch file.
      The system cannot find the path specified.

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

      Execution terminated

       
      • Wayne Keen

        Wayne Keen - 2006-12-01

        The error message is not the same - so it is NOT the same problem. Please do not tack a seperate problem onto another persons thread, it confuses their answer process, please start a new thread.

        Note that, in your case by the way, it is looking for something in a bad path - you probably should do a clean uninstall - (see the "Please Read" thread for directions on doing that, AND on documenting what you did and reporting on it) and reinstalling.

        I am making a big point of the documenting and reporting because many folks, despite being told clearly and nicely, to never respond with something like "I did exactly what you said" - do exactly that.

        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.