Menu

[Build Error] [main.o] Error 1

2006-05-20
2012-09-26
<< < 1 2 (Page 2 of 2)
  • Wayne Keen

    Wayne Keen - 2006-06-05

    Your Basic 3?

    Error 1 by the way is a general - non-specific error message. In essense it says "Something went wrong", and that is all that error message tells us, so telling us that you are getting that message really doesn't tell us a lot.

    That is why the Basic 3 are important, and why they are covered in the first section of the thread in this forum titled "Please Read Before Posting a Question"

    Wayne

     
  • Nobody/Anonymous

    OK, sorry to forget about it.

    I'm using WinXP SP2.

    The code I'm trying to complile is the following (I'm using SDL):

    include <SDL.h>

    int main(int argc, char **argv)
    {
    printf("\nHello SDL User!\n");

    /* initialize SDL */
    if ( SDL_Init( SDL_INIT_VIDEO ) &lt; 0 )
    {
        fprintf( stderr, &quot;Video initialization failed: %s\n&quot;,
            SDL_GetError( ) );
        SDL_Quit( );
    }
    
    SDL_Quit( );
    
    return 0;
    

    }

    Here follows the compile log:

    Compiler: win
    Building Makefile: "C:\GP2XSDK\Makefile.win"
    Executing make...
    make.exe -f "C:\GP2XSDK\Makefile.win" all
    cygwin-mkdir -p win
    g++.exe -c sdl.c -o win/sdl.o -I"C:/GP2XSDK/include/GP2X" -I"C:/GP2XSDK/include/SDL" -I"C:/GP2XSDK/lib/gcc/mingw32/3.4.2/include" -I"C:/GP2XSDK/include/c++/3.4.2/backward" -I"C:/GP2XSDK/include/c++/3.4.2/mingw32" -I"C:/GP2XSDK/include/c++/3.4.2" -I"C:/GP2XSDK/include" -DWIN32
    g++.exe: no input files
    make.exe: *** [win/sdl.o] Error 1
    Execution terminated

     
  • Nobody/Anonymous

    Looking at your log, I see:

    "cygwin-mkdir -p win"

    Did you intend to use Dev with Cygwin?

     
  • Nobody/Anonymous

    I'm using Dev as it comes in the offical GP2X (the 'famous' Linux portable console) SDK I found on dev.gp2x.com

    It comes pre-configured to use Cygwin.

    I've noticed that installing the same package on another computer it does not give any error.

    I think the GP2X part is not relevant to the problem, as another user lamented the same issue of mine.

     
    • Wayne Keen

      Wayne Keen - 2006-06-05

      Does that install Cygwin itself, or does it count on you having Cygwin already installed?

      (He asked, a stupid look on his face)

      I am only partly kidding there with that self deprecating remark, I use Cygwin every day (I am as we speak running a simulation in it), but I tend to use it/run it separate from what I do with MinGW/MSYS or Dev.

      Wayne

       
    • Wayne Keen

      Wayne Keen - 2006-06-05

      Well, its going to be pretty hard to duplicate your error, seeing as I don't have anything like your setup here.

      That is why though it is important that you tell people up front what your setup is. One of the important tools in our remote debugging arsenal is the ability to duplicate what you are seeing right in front of us. It is the next best thing to being there.

      Wayne

      Wayne

       
  • Wayne Keen

    Wayne Keen - 2006-06-05

    Note also that there are missing headers (stdio), and you do not appear to be linking the correct library.

    Wayne

     
  • Nobody/Anonymous

    The very same code compiles correctly on a PC, and gives the make.exe: *** [win/sdl.o] Error 1
    on another one.

    I do not know what to think :|

     
  • Nobody/Anonymous

    The package installs Cygwin by itself.

    If interested, you can download the GP2X SDK package form here:

    http://dev.gp2x.com/sdk/gp2xsdk_060515.zip

     
  • Wayne Keen

    Wayne Keen - 2006-06-05

    Have your tried a simple "Hello World" sort of program first?

    Wayne

     
  • Wayne Keen

    Wayne Keen - 2006-06-05

    Simple, non-project example code? Or is it wired in such a way to not allow that?

    Wayne

     
  • Nobody/Anonymous

    I Repeat, do you have another suggestions other than looking through the Hard drive for (What I'm 100% sure) is a non-existant install of DevCPP?

     
    • Wayne Keen

      Wayne Keen - 2006-06-10

      Yes, change the matter-anti-matter intermix ratio. That should smooth out your warp drive.

      Now go troll somewhere else.

      Wayne

       
  • Nobody/Anonymous

    Hmm, now compiling the same program gives an additional error:

    Unrecognized CommandLine Option "-fsave-memorized"

    Then below that still the makefile error

     
    • Wayne Keen

      Wayne Keen - 2006-06-11

      Check through your menu entries, that option has gotten clicked somewhere. It is not supported as I recall.

      Wayne

       
  • Nobody/Anonymous

    what is error 1

     
    • Wayne Keen

      Wayne Keen - 2006-06-15

      It is a general message that tells you "something did not go correctly".

      Yes, it really is that top level.

      Wayne

       
    • Anonymous

      Anonymous - 2006-06-15

      An the thing that failed was:

      "g++.exe: no input files "
      What happens if you invoke the same g++ command line from a command console? Copy and paste it from the com pile log - you'll need to paste it into a text editor first to remove the line breaks. This might tell us if it is a Dev-C++ problem or a more general issue with the installation. You may need to set the PATH environment variable for the g++ executable.

      You might also try running the make from the command line:

      make -fmakefile.win

      Clifford

      Clifford

       
  • Wayne Keen

    Wayne Keen - 2006-05-27

    So you didn't do a Windows search for other vestiges?

    Wayne

     
<< < 1 2 (Page 2 of 2)

Log in to post a comment.