Menu

Can't compile ANYTHING at all

2005-10-27
2012-09-26
1 2 > >> (Page 1 of 2)
  • Nobody/Anonymous

    I create a new project, and select console application.
    I try to compile & run this default clean project, and I get an error:
    Compiler: Default compiler
    Building Makefile: "C:\Dev-Cpp\Makefile.win"
    Executing make...
    make.exe -f "C:\Dev-Cpp\Makefile.win" all
    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"

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

    Execution terminated

    I have tried reinstalling, registry cleaning, installing to a different folder, and nothing solved my problem, I can't compile anything.

     
    • Nobody/Anonymous

      I'm using windows xp, and dev-c++ 4.9.9.2

       
    • Nobody/Anonymous

      Yes it was really my fault.
      I did a search for devcpp.ini devcpp.cfg, so I tried just devc. and nothing again. (I have checked searching for hidden files and folders)

       
    • Nobody/Anonymous

      Bear with me now, I am going to ask some questions that you might be tempted to answer with "that's what I said stupid!", but I am asking for a reason (other than being stupid).

      Are you saying that you Created a New:Console Project, saved it to your location, and compiled from there?

      Wayne

       
    • Nobody/Anonymous

      Yes exactly. No problem, ask freely.

       
    • Nobody/Anonymous

      Yes exactly. No problem, ask freely

       
    • Nobody/Anonymous

      (seems like firefox has a problem displaying all the messages, I can only see the last two in internet explorer sorry about the doublepost)

       
    • Nobody/Anonymous

      Now, have you verified that the file that is called by default main.cpp in your project is saved in the same location as your project file?

      Here is what I just did for comparison, using version 4.9.9.2 on XP Pro.

      Went to

      File:New:Project:Console Application

      A "Save File" box comes up, and I save my project in

      c:\mycstuff\waynesadoofus.dev

      Then, I go to

      Execute:Rebuild All

      and it pops up a box for what I want to save the source file under. I tell it

      mainwayne.cpp

      and it compiles. Here is my log:

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

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

      Execution terminated
      Compilation successful

      How does that compare to your process

      Wayne

       
    • Nobody/Anonymous

      I go to file/new/project/ the "New project" window comes up, I choose Console application. It asks for the filename, I give it c:\tmp\Project1.dev.

      I go Execute/Rebuild All and the file save dialog comes in, I give it c:\tmp\main.cpp.

      After that the little Compile Progress windows comes in, and when the progress bar reaches half, (approx) the compiling stops.
      At the bottom of the window I have the Compiler tab open automatically, and it has the following in it:
      File: c:\tmp\Makefile.win
      Message: [Build Error] [main.o] Error 1

      Under compile log I have the following:
      Compiler: Default compiler
      Building Makefile: "C:\tmp\Makefile.win"
      Executing make clean
      rm -f main.o Project1.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"

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

      Execution terminated

      Here is two screenshot if needed:
      http://web.axelero.hu/wishcow/cpic1.jpg
      http://web.axelero.hu/wishcow/cpic2.jpg

       
    • Nobody/Anonymous

      What anti-virus are you employing?

      I haven't seen that problem in a long time, but I do recall some issues in the past.

      Wayne

       
    • Nobody/Anonymous

      I don't have any anti virus program installed.

       
    • Nobody/Anonymous

      And you have tried compiling someplace other than "tmp" - I would be hesitant to work there as that directory may have some issues.

      Wayne

       
    • Nobody/Anonymous

      Yes I have tried c:\projects before, and this tmp directory is not "the temp" directory, It didn't even exist, I just created it.

       
    • Nobody/Anonymous

      Anything else I could try?

       
    • Anonymous

      Anonymous - 2005-10-29

      Try building from the command line.

      You will need to add the path C:\Dev-Cpp\bin to the PATH environment variable, then from the project folder:

      make -fmakefile.win all

      This may help determine if it is a problem with the Dev-C++ IDE installation or the MinGW installation.

      Do you have any other versions of make.exe on your system that may be being invoked instead?

      Clifford

       
      • Anonymous

        Anonymous - 2005-10-29

        ... The difference between using a project, and simply building the open file, is that the latter does not use make.exe and it appears to be make.exe that is failing. I think it is make.exe that we should be suspicious of.

        Clifford

         
    • Nobody/Anonymous

      I have tried using "make -fMakefile.win all", this is the result I got:
      g++.exe main.o: No such file or directory
      g++.exe: no input files
      make: *** [Project1.exe] Error 1

       
    • Nobody/Anonymous

      Oh I forgot, no, I don't have any other version of make.exe.

       
    • Anonymous

      Anonymous - 2005-10-29

      Is that ALL the output? or just the error messages?

      try

      make -fmakefile.win clean
      make -fmakefile.win all

      But before doing that ensure the console buffer is large enough to contain all the output text, and then copy&paste the text back here.

      The buffer enlargement and copy operations can be performed by right clicking the console's title bar. Properties->Layout and Edit->Mark respectively. You mark by dragging the mouse, and pressing Enter copies to the clipboard. If QuickEdit mode is selected, you can drag the mouse to select without selecting Mark. Sorry if you knew all that already!).

      Also what is the result of running the following?:

      make --version

      Clifford

       
    • Nobody/Anonymous

      Yes it is the full output for make all, here is the output of make clean:

      C:\prj\> make -fMakefile.win clean
      rm -f main.o Project1.exe

      Output of make version:
      GNU Make 3.80
      Copyright (C) 2002 Free Software Foundation, Inc.
      This is free software; see the source for copying conditions.
      There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
      PARTICULAR PURPOSE.

      Also, when I'm doing a make all, first it clears the console, (like doing a "cls") and only outputs after it, so I'm not sure if it outputs something else.
      Make clean, does not do a cls.

       
    • Anonymous

      Anonymous - 2005-10-30

      You should get something akin to this:

      E:\Devprojects>make -fmakefile.win all
      g++.exe -D__DEBUG__ -c main.cpp -o main.o -I"lib/gcc/mingw32/3.4.2/include" -I"include/c++/3.4.2/ba
      ckward" -I"include/c++/3.4.2/mingw32" -I"include/c++/3.4.2" -I"include" -Wformat -Wall -Werr
      or -O3 -g3
      g++.exe -D__DEBUG__ main.o -o "Project1.exe" -L"lib" -g3

      I can only suggest that you post the content of makefile.win, so we can compare its content with a known good one.

      Just one thought - the makefile can become corrupted if the preprocessor fails to sucessfully parse your code. Dev-C++ uses cpp.exe to generate dependencies in the makefile. In at least one earlier version, Dev did not detect failures in the pre-processing, and would end up embedding cpp error messages in the makefile, generating text that made no sense at all.

      Clifford

       
    • Nobody/Anonymous

      Contents of makefile.win:

      Project: Project1

      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 = Project1.exe
      CXXFLAGS = $(CXXINCS)
      CFLAGS = $(INCS)
      RM = rm -f

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

      all: all-before Project1.exe all-after

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

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

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

       
    • Anonymous

      Anonymous - 2005-10-30

      I have not a clue, but what about:

      make -fmakefile.win main.o

      Is the object file generated.

      Clifford

       
    • Nobody/Anonymous

      You won't believe this... I figured it out...
      I install my windows xp from an unattended cd, and it has a little program in it called xpize, which changes some icons in windows. (http://xpero.msfn.org/?page=home)

      Today I looked up it's homepage because I wanted to check if a newer version is out.
      I checked the support page and it says:
      Visual Studio .NET 2003:
      The command line colors mod included in XPize may cause unexpected errors in this application.

      So I uninstalled the cmdline color mod, and dev-cpp compiles everything just fine now.
      Sorry for all the trouble.

       
    • Anonymous

      Anonymous - 2005-10-30

      Thanks for reporting back, and having the patience to sort it out.

      Perhaps you should report the bug to XPize since they seem to be only aware of its conflict with Visual Studio.

      However you have to ask yourself what such an application could be doing to cause this affect? And also what else it may be doing to your system? I think under these circumstances I would stop using it very quickly. It seems to have far reaching system consequences for what seems to me to be rather trivial functionality.

      Clifford

       
1 2 > >> (Page 1 of 2)

Log in to post a comment.

MongoDB Logo MongoDB