Menu

Error in build

Pat
2009-06-15
2012-09-26
  • Pat

    Pat - 2009-06-15

    How do I debug this? The error msg is shown first, then the project Makefile. I guess this a compiler conflict error, since I have had other compilers on my machine. I did set the PATH environment variable to point to the devcpp makefile, but alas...

    Comments and curses welcome.

    First this:

    C:\New Folder\devcpp-4.9.9\Projects\Makefile.win [Build Error] ["Applicaton Main.o"] Error 1

    Then this:

    Project: Gtk_Demo

    Makefile created by Dev-C++ 4.9.9.2

    CPP = g++.exe
    CC = gcc.exe
    WINDRES = windres.exe
    RES =
    OBJ = "Applicaton\ Main.o" Assistant.o Builder.o "Button\ boxes.o" "Change\ display.o" Clipboard.o "Color\ selector.o" "Combo\ boxes.o" "Dialogue\ and\ Message\ boxes.o" "Drawing\ area.o" Expander.o Images.o Menus.o "Paned\ widgets.o" Pickers.o Pixbufs.o Printing.o "Rotated\ text.o" "Size\ groups.o" "Stock\ item\ and\ icon\ browser.o" "UI\ manager.o" $(RES)
    LINKOBJ = "Applicaton Main.o" Assistant.o Builder.o "Button boxes.o" "Change display.o" Clipboard.o "Color selector.o" "Combo boxes.o" "Dialogue and Message boxes.o" "Drawing area.o" Expander.o Images.o Menus.o "Paned widgets.o" Pickers.o Pixbufs.o Printing.o "Rotated text.o" "Size groups.o" "Stock item and icon browser.o" "UI manager.o" $(RES)
    LIBS = -mwindows
    INCS =
    CXXINCS =
    BIN = Gtk_Demo.exe
    CXXFLAGS = $(CXXINCS)
    CFLAGS = $(INCS)
    RM = rm -f

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

    all: all-before Gtk_Demo.exe all-after

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

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

    "Applicaton\ Main.o": Applicaton\ Main.cpp
    $(CPP) -c "Applicaton Main.cpp" -o "Applicaton Main.o" $(CXXFLAGS)

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

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

    "Button\ boxes.o": Button\ boxes.cpp
    $(CPP) -c "Button boxes.cpp" -o "Button boxes.o" $(CXXFLAGS)

    "Change\ display.o": Change\ display.cpp
    $(CPP) -c "Change display.cpp" -o "Change display.o" $(CXXFLAGS)

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

    "Color\ selector.o": Color\ selector.cpp
    $(CPP) -c "Color selector.cpp" -o "Color selector.o" $(CXXFLAGS)

    "Combo\ boxes.o": Combo\ boxes.cpp
    $(CPP) -c "Combo boxes.cpp" -o "Combo boxes.o" $(CXXFLAGS)

    "Dialogue\ and\ Message\ boxes.o": Dialogue\ and\ Message\ boxes.cpp
    $(CPP) -c "Dialogue and Message boxes.cpp" -o "Dialogue and Message boxes.o" $(CXXFLAGS)

    "Drawing\ area.o": Drawing\ area.cpp
    $(CPP) -c "Drawing area.cpp" -o "Drawing area.o" $(CXXFLAGS)

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

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

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

    "Paned\ widgets.o": Paned\ widgets.cpp
    $(CPP) -c "Paned widgets.cpp" -o "Paned widgets.o" $(CXXFLAGS)

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

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

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

    "Rotated\ text.o": Rotated\ text.cpp
    $(CPP) -c "Rotated text.cpp" -o "Rotated text.o" $(CXXFLAGS)

    "Size\ groups.o": Size\ groups.cpp
    $(CPP) -c "Size groups.cpp" -o "Size groups.o" $(CXXFLAGS)

    "Stock\ item\ and\ icon\ browser.o": Stock\ item\ and\ icon\ browser.cpp
    $(CPP) -c "Stock item and icon browser.cpp" -o "Stock item and icon browser.o" $(CXXFLAGS)

    "UI\ manager.o": UI\ manager.cpp
    $(CPP) -c "UI manager.cpp" -o "UI manager.o" $(CXXFLAGS)

     
    • cpns

      cpns - 2009-06-15

      post script: I see that they are not directory separators, but some sort of attempt to escape the space characters. Still not sure how you managed to generate a makefile like that.

      I think, just loose the spaces and go from there.

       
    • Wayne Keen

      Wayne Keen - 2009-06-15

      Well, you are working in a path with spaces in it, which
      is a very bad idea.

      Now, if you read the thread titled (not accidentally) "Please
      Read Before Posting a Question", you would have read about the Basic 3.
      Please post them.

      Please never excerpt the error message. What you posted (Error 1) just means "I ran into an error I don't know how to handle".

      Wayne

       
    • cpns

      cpns - 2009-06-15

      > First this:
      >
      > C:\New Folder\devcpp-4.9.9\Projects\Makefile.win [Build Error]
      > ["Applicaton Main.o"] Error 1

      That in itself is not much help. That merely means that a build step failed, it is normal when a build has failed, but you have not shown the full log, so we cannot tell why it failed. We need to see the complete build log to see what in fact failed.

      However what little we can see from the partial log you posted is that you have a source-file that contains spaces in its name. Always a bad idea, and a known problem area for GNU make. The space in "New Folder" is ill-advised also.

      Your makefile too indicates widespread use of spaces in paths and filenames. It appears to have a space after every directory separator which is unusual, and probably incorrect. For example I would imagine that "Drawing\ area.o" should have been "Drawing\area.o". I have no idea how you might have munged the project so badly, but without the log it is hard to tell exactly what the problem is.

      Clifford

       

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.