Menu

Build Error 1 (I read all the post, FAQs,etc)

Icaro
2005-04-24
2012-09-26
  • Icaro

    Icaro - 2005-04-24

    I read all the posts, FAQs, etc... y path is c:\asdf and Dev-Cpp 4.9.9.2 is installed in its default path (c:\Dev-Cpp) under Windows XP SP2.
    My error it's the same as the other people. It's only appears when I try to compile a project.
    In other computer's I installed Dev-Cpp, try to compile and there is no problem. But in this one, I always get this error. I format the computer a month ago and before and after I get the problem
    What I should do? I think I have tried everything...

    Thank you verymuch.

    My compiler log is
    Compiler: Default compiler
    Building Makefile: "C:\asdf\Makefile.win"
    Executing make clean
    rm -f main.o holap.exe

    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"

    El sistema no puede hallar la ruta especificada.

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

    Execution terminated

    The Makefile.win is:

    Project: holap

    Makefile created by Dev-C++ 4.9.9.2

    CPP = g++.exe
    CC = gcc.exe
    WINDRES = windres.exe
    RES =
    OBJ = main.o $(RES)
    LINKOBJ = main.o $(RES)
    LIBS = -L"C:/Dev-Cpp/lib"
    INCS = -I"C:/Dev-Cpp/include"
    CXXINCS = -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"
    BIN = holap.exe
    CXXFLAGS = $(CXXINCS)
    CFLAGS = $(INCS)
    RM = rm -f

    .PHONY: all all-before all-after clean clean-custom

    all: all-before holap.exe all-after

    clean: clean-custom
    ${RM} $(OBJ) $(BIN)

    $(BIN): $(OBJ)
    $(CPP) $(LINKOBJ) -o "holap.exe" $(LIBS)

    main.o: main.cpp
    $(CPP) -c main.cpp -o main.o $(CXXFLAGS)

     
    • Nobody/Anonymous

      Did you follow the advice in the post futher down this page that you claim to have read? Or, looking at the file names and the claim to have (stupidly in my opinion) formatted your computer, are you the same person?

       
    • Wayne Keen

      Wayne Keen - 2005-04-24

      Your log shows that you have a "mixed" installation of Dev, some old, some new. You need to:

      (1) Follow the directions in the FAQ for doing a clean uninstall. You MUST fully irradicate all traces of your Dev installation. If you tried this before, you missed something. (Please not there are some very explicit and forceful directions on what to do if you are still having problems after going through this process - do not miss them)

      (2) Re-download and install the full version of Dev. Install it where it wants.

      (3) In the 4.9.9.2 installation process, there is an option stage that has a window with a bunch of check boxes, almost all of which are checked. Scroll down to the bottom, and there is an option to delete previous configuration files. Check it.

      Wayne

       
    • Icaro

      Icaro - 2005-04-24

      I fully uninstall it as the FAQ says...
      2 I redownload and install again
      3 I check the "remove previous configuration files"

      And the error is the same.
      In this computer I have never been able to compile a project with Windows XP. When I have Windows 98 I compiled many project with any problem, but in Windows XP...

      I tried to compile in console using g++ doing:
      path=c:\Dev-Cpp\bin\
      And in the directory c:\asdf I run:
      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"

      and I get my main.o.
      Why I can do it in this way and not using Dev-Cpp!!

      Thanks.

       
    • Wayne Keen

      Wayne Keen - 2005-04-25

      "I fully uninstall it as the FAQ says"

      No, you did NOT. As the FAQ section states, if you are still having problems, you should tell us exactly, step by step what you did. It says it QUITE forcefully! It states quite clearly that you should NOT, under any circumstances, respond with "I did what you said". Unfortunately, that is exactly what you did. Here's why that is a problem:

      The problem in your case is you are missing something in your uninstall process. There is nothing wrong with that, we ALL miss things (me more than **anyone here). The problem is, to determine what you missed, we need the detail of what you did.

      The other thing is, you have to be creative and utterly ruthless in your uninstall process. That means you hunt for, find and delete all Dev associated directories. This is not a mechanical process. For example, a previous intall of Dev that was supposed to go in "Program Files" may have created a directory called "Program". So you have to do what the FAQ says, but you have to go beyond, in terms of searching for vestiges of previous installations.

      Wayne

       
    • Wayne Keen

      Wayne Keen - 2005-04-25

      One other related question. Is your project in a direrctory called "asdf"?

      Wayne

       
    • Icaro

      Icaro - 2005-04-25

      Yes, my project is in the same directory.
      Ok, I think I know where is the error. But I don't know how to fix it.
      I told you that I compile and execute simple files, but I get this error when I compile a project.
      Both outputs are:
      Simple file:
      Compilador: Default compiler
      Compilador: Default compiler
      Ejecutando g++.exe...
      g++.exe "C:\asdf\main.cpp" -o "C:\asdf\main.exe" -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" -L"C:\Dev-Cpp\lib"
      Ejecucin Terminada
      Compilacin Concluida con xito
      Itts spanish, but it says that it's success.

      In a project:
      Compilador: Default compiler
      Building Makefile: "C:\asdf\Makefile.win"
      Ejecutando make clean
      rm -f main.o Proyecto1.exe

      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"

      El sistema no puede hallar la ruta especificada.

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

      Ejecucin Terminada

      As you can see both path (of g++) are different...
      I tried to use my own makefile but still this error!

      Thanks again.

       
    • Nobody/Anonymous

      Why don't you read the advice given? Wayne said you should give a step-by-step account of how you uninstalle/reinstalled Dev-C++

       
    • Icaro

      Icaro - 2005-04-25

      Ok, ok...
      1) I uninstall the program from the uninstaller in c:\Dev-Cpp folder... OK.
      2) I find the folder c:\Dev-Cpp. It isn't in C:. OK
      3) I do a search for any file that's contains devcpp,dev-cpp. (Cheking the box to find hidden files and folders too).
      I obtain only recent files. I delete them.
      4) I search in the registry for the same. I delete all the keys containing something about dev-cpp.
      5) I redownload Dev-Cpp.
      6) I install it cheking "Remove previous configuration files"
      7) All is reinstalled!

      I think in my case uninstall and install again it's not the problem. Since I reinstalled the operating system I never installed Dev-Cpp. It was the first time. But now it's the second...
      Same error....

      Anything else?
      Thanks.

       
    • Icaro

      Icaro - 2005-04-26

      Did I forget something?

       
    • Nobody/Anonymous

      1) Dev-Cpp 4.9.9.2 under Windows XP SP2 (I obtain the same error some time ago with other releases and Windows XP and SP1...
      2)// Hello World

      include <iostream>

      using namespace std;

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

      3)
      Compiler: Default compiler
      Compiler: Default compiler
      Executing g++.exe...
      g++.exe "C:\mycstuff\hello.cpp" -o "C:\mycstuff\hello.exe" -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" -L"C:\Dev-Cpp\lib"
      Execution terminated
      Compilation successful

      Thanks

       
    • Nobody/Anonymous

      It's me again.
      I've realised that the error I get when I compile a project have to be sent by the operating system... My operating system is in Spanish, and if you see the compile logs the error I get when compile a project is in spanish "El sistema no puede hallar la ruta specificada" (It's the samea as "The system cannot find the path specified" if you don't know spanish). But if I compile a simple non-project file it's in English...

      On the other hand "slashes" (/) compiling simple files are backslashes (), but compiling a project are normal slashes...

      Thanks.

       
    • Wayne Keen

      Wayne Keen - 2005-04-26

      Thanks for translating there, nice touch to help a mono-linguisitc cretin like me. :)

      Now, go to:

      File:New:Project:Console Application

      Save it in mycstuff as

      test1.prj

      Now, compile your project. I always do a "Rebuild All", it will ask you what to name your program, call it mymain.cpp. Post your log.

      For comparison, here is my compile log:

      Compiler: Default compiler
      Building Makefile: "C:\mycstuff\Makefile.win"
      Executing make clean
      rm -f mymain.o test1.exe

      g++.exe -c mymain.cpp -o mymain.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 mymain.o -o "test1.exe" -L"C:/Dev-Cpp/lib"

      Execution terminated
      Compilation successful

      I am running 4.9.9.2 here at home on XP Home

      Wayne

       
    • Icaro

      Icaro - 2005-04-26

      Here it is:

      Compiler: Default compiler
      Building Makefile: "C:\mycstuff\Makefile.win"
      Executing make clean
      rm -f mymain.o test1.exe

      g++.exe -c mymain.cpp -o mymain.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"

      El sistema no puede hallar la ruta especificada.

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

      Execution terminated

      Thanks.

       
    • Nobody/Anonymous

      Yes, it is

       
    • Icaro

      Icaro - 2005-04-28

      I've tried to modify the environment variable path, but still the error!
      Why I can compile in console using the same sentence and I cannot using Dev-Cpp?
      I think that the error comes cause the path is not stablished , because when I execute "path=c:\Dev-Cpp\bin\" in console (I'm in directory c:\mycstuff) and after the g++ sentece (the same that use Dev-Cpp) it works, but evidently If I don't set the path, the operating system doesn't find g++ and prompt an error... I don't get the same error by the operating system, but I'm trying all...

       
    • Icaro

      Icaro - 2005-04-28

      It's impossible that it works in this computer???
      Sorry but I want that it works!!

       
    • Anonymous

      Anonymous - 2005-07-10

      "El sistema no puede hallar la ruta especificada"

      Do you have the correct path set in Tools|Compiler options|Directories|Binaries ?

      It should be c:\dev-cpp\bin.

      Clifford

       
    • Icaro

      Icaro - 2005-04-24

      It's not me, but I see before and surprise me that the folder name and the error it's the same...
      I thought that I should post a message to that thread but I prefer to open a new one.
      I didn't format the computer to fix this error. I format to reinstall Debian sarge.
      I put it because I think it may help...

       
    • Wayne Keen

      Wayne Keen - 2005-04-26

      Sorry, Monday is a hugely busy day at work

      OK, now, try this

      Create a directory on your c drive, call it mycstuff. In that directory, create a non-project, single file "Hello World" program. Compile it, and post your basic 3.

      Wayne

       
    • Nobody/Anonymous

      I have encountered the same problem and I've only been using it for a day!
      I have used the project builder and it built a Win32 App and the OpenGL App just fine.

      Then I compiled my DirectX 9 App.

      And that's when I encountered the problem.

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

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

      Execution terminated

      And if it helps, I'm also running Windows XP Home with Service Pack 2.

      Just thought this might help

      • Thomo
       
      • Wayne Keen

        Wayne Keen - 2005-04-26

        Is your project in a different directory than your source code?

        Wayne

         
    • Nobody/Anonymous

      Yes it is

       
    • thecient

      thecient - 2005-07-10
       

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.