Menu

Build Error

2004-02-02
2012-09-26
  • Nobody/Anonymous

    having this problem of compiling it gives:

    [Build Error] [main4.o] Error 1

    what does that mean and how should you solve the problem?

     
    • Curtis Sutter

      Curtis Sutter - 2004-02-02

      It would help us to help you if you gave a full compile log as well as the code you were tring to compile.
      *Note that the "Read This" thread http://sourceforge.net/forum/forum.php?thread_id=959971&forum_id=48211 may contain your answer...

      Curtis

       
    • Wayne Keen

      Wayne Keen - 2004-02-02

      Do you normally call up the doctor and say "I'm don't feel good, whats wrong with me?"  That is about as much information that you have given.  You should really check out the thread titled "Read This Before Asking a Question", the part talking about how to formulate a decent question.

      Basic information for a question like yours
      (1) What version number of Dev are you using, with what OS?
      (2) Provide a simple example program that shows the effect you are seeing.  Simple as possible.
      (3) Provide your FULL compile log, not just the errors.  The compile log is on the tab labeled "Compile Log", and the right mouse button brings up the copy menu.

      Providing this basic information keeps down our bill at the psychic hotline.

      Wayne

       
    • Nobody/Anonymous

      Happendes when create a projectfile .dev that is and wan to compile like for example:

      #include <iostream>
      #include <stdlib.h>

      using namespace std;

      int main()
      {
       
        system("PAUSE");   
        return 0;
      }

      The version is the latest 4.9.8.5 ....and I use Xp and it worked well before....

       
    • Nobody/Anonymous

      Compile Log

      Compiler: Default compiler
      Building Makefile: "C:\Documents and Settings\Milad (private)\Skrivbord\Makefile.win"
      Executing  make...
      make.exe -f "C:\Documents and Settings\Milad (private)\Skrivbord\Makefile.win" all
      g++.exe -c main01.cpp -o main01.o -I"C:/Program/Dev-Cpp/include/c++"  -I"C:/Program/Dev-Cpp/include/c++/mingw32"  -I"C:/Program/Dev-Cpp/include/c++/backward"  -I"C:/Program/Dev-Cpp/include" 

      C:\DOCUME~1\MILAD r inte ett internt kommando, externt kommando,
      program eller kommandofil.

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

      Execution terminated

       
    • Nobody/Anonymous

      Compiler: Default compiler
      Building Makefile: "C:\Documents and Settings\Milad (private)\Skrivbord\Makefile.win"
      Executing  make...
      make.exe -f "C:\Documents and Settings\Milad (private)\Skrivbord\Makefile.win" all
      g++.exe -c main01.cpp -o main01.o -I"C:/Program/Dev-Cpp/include/c++"  -I"C:/Program/Dev-Cpp/include/c++/mingw32"  -I"C:/Program/Dev-Cpp/include/c++/backward"  -I"C:/Program/Dev-Cpp/include" 

      C:\DOCUME~1\MILAD r inte ett internt kommando, externt kommando,
      program eller kommandofil.

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

      Execution terminated

       
      • Anonymous

        Anonymous - 2004-02-02

        DId you read the "Read This Before Posting" thread?

        You're building things in a directory structure that has spaces.  Don't do that.

        Watson (the pencil neck) Davis

         
    • Wayne Keen

      Wayne Keen - 2004-02-02

      "C:\Documents and Settings\Milad (private)\Skrivbord\Makefile.win"

      Don't put your projects in directories with spaces in them, like all the spaces here...

      Wayne

       
    • Wayne Keen

      Wayne Keen - 2004-02-02

      Oh, I missed something obvious:

      It looks like you tried to install Dev in "Program Files", but it did not parse right:

      C:/Program/Dev-Cpp/include/c++/backward

      You need to go to the "Read This Before Asking A Question" thread, and follow the directions to uninstall/delete/reinstall

      Follow them with EXTREME care.  You have XP, so some files are in hidden directories.

      Install Dev where it asks to go, c:\dev-cpp - NOT "Program Files"

      Repeat after me:

      SPACES ARE BAD!

      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.