Menu

Version 4.9.8.1 broke compile

2003-06-27
2012-09-26
  • Eric Hokanson

    Eric Hokanson - 2003-06-27

    My project was compiling fine under Dev-C++ 4.9.8.0 but after upgrading to 4.9.8.1 I get the following error:

    Compiler: Default compiler
    Building Makefile: "E:\Dev-Cpp\Projects\fmod64\Makefile.win"
    Finding dependencies for file: E:\Dev-Cpp\Projects\fmod64\fmod64.c
    Executing  make...
    make.exe -f "E:\Dev-Cpp\Projects\fmod64\Makefile.win" all
    gcc.exe -D__DEBUG__ -c fmod64.c -o fmod64.o -I"E:/Dev-Cpp/include" -DBUILDING_DLL=1   -fmessage-length=0 -O2 -g3

    E:\Dev-Cpp\Bin\..\lib\gcc-lib\mingw32\2.95.3-6\cc1.exe: Invalid option `-fmessage-length=0'

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

    Execution terminated

    I have looked everywhere I don't see anything to turn off -fmessage-length.  I have to override the build command so my program will compile.

    Eric

     
    • Wayne Keen

      Wayne Keen - 2003-06-27

      Obvious places (which means you have probably already looked at them) are the tools:compiler options:compiler settings and project:project options:parameters.

      And thereabouts...

      I also notice that you seem to be using gcc-2.95 with 4.9.8.0 which is a somewhat unusual setup - did you do that on purpose?

      Wayne

       
    • Wayne Keen

      Wayne Keen - 2003-06-27

      I just noticed something interesting, and I don't know what it means.

      If I compile a project with a rebuild all, I get the following log:

      gcc.exe -c Main.c -o Main.o -I"C:/Dev-Cpp/include" -g3   -fmessage-length=0

      windres.exe -i Anim_private.rc -I rc -o Anim_private.res -O coff

      gcc.exe Main.o Anim_private.res -o "Anim.exe" -L"C:/Dev-Cpp/lib" -lglut32 -lglu32 -lopengl32 -mwindows

      Execution terminated
      Compilation successful

      If I simply do a compile:

      Executing  make...
      make.exe -f "C:\Dev-Cpp\Examples\WinAnim\Makefile.win" all
      gcc.exe Main.o Anim_private.res -o "Anim.exe" -L"C:/Dev-Cpp/lib" -lglut32 -lglu32 -lopengl32 -mwindows

      Execution terminated
      Compilation successful

      Interesting.  I don't understand it well enough to know why it happens, so I don't know if it is a bug or a feature....

      Will look some more....

      Wayne

       
      • Colin Laplace

        Colin Laplace - 2003-06-29

        My fault, this flag doesn't exist in gcc 2.95 :/
        I will look into that asap to make it optional

        Greetings,
        Colin

         
        • Wayne Keen

          Wayne Keen - 2003-06-29

          Interesting.  I was curious about the use of gcc-2.95 with that setup, but did not follow through enough.....

          Wayne

           
    • Eric Hokanson

      Eric Hokanson - 2003-06-28

      I looked under those locations but found nothing.

      I am still using gcc-2.95 because I started using Dev-C++ about a year ago and have just been using the auto-updater to get the newest version of Dev-C++.
      I guess I should just uninstall everything and redownload so I can start using gcc-3.2.

       
    • Wayne Keen

      Wayne Keen - 2003-06-28

      If you are going to uninstall (and I reccommend it)

      (0) Save any projects you have stored in your Dev directories someplace else
      (1) Run the uninstall program
      (2) Delete the Dev directory
      (3) Make sure you find and delete devcpp.ini and devcpp.cfg.  On Windows XP and the like, these files are in a folder hidden by windows.  You can find them by clicking the box that tells search to look in hidden folders...
      (4) When you install Dev, note that you should install it where it wants, i.e. c:\dev-cpp.  When installing and running Dev, avoid directories with spaces in folder names, i.e. things like "Program Files"

      Note that the current newest version of Dev is 4.9.8.1, but last time I checked, the version you donwload is 4.9.8.0.  My advice, if this is still the case, verify that 4.9.8.0 is working correctly, then run update to get 4.9.8.1.  Don't forget to get the crash detection and help and language files if you need the new versions

      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.