bugBos Wars - Bugs: bug #24220, Building error with new gcc/g++

 
 

bug #24220: Building error with new gcc/g++

Submitted by:  Loïs Taulelle <GruiicK>
Submitted on:  Mon 08 Sep 2008 09:29:49 AM UTC  
 
Severity: 4 - ImportantItem Group: Bug
Status: FixedPrivacy: Public
Assigned to: Jimmy Salmon <jsalmon3>Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 17 Nov 2008 05:26:45 AM UTC, comment #1:

Fixed in svn, thanks.

Jimmy Salmon <jsalmon3>In charge of this item.
Mon 08 Sep 2008 09:29:49 AM UTC, original submission:

error message :
engine/particle/staticparticle.cpp: In constructor 'StaticParticle::StaticParticle(CPosition, Animation*)':
engine/particle/staticparticle.cpp:38: error: 'abort' was not declared in this scope
scons: *** [build/debug/particle/staticparticle.o] Error 1
scons: building terminated because of errors.

On a Debian uptodate testing (2008/09/08), gcc (Debian 4.3.1-9) 4.3.1, g++ (Debian 4.3.1-9) 4.3.1

The proposed patch can be a solution :
svn diff
Index: engine/include/stratagus.h
===================================================================
--- engine/include/stratagus.h (r�ision 9568)
+++ engine/include/stratagus.h (copie de travail)
@@ -34,6 +34,8 @@
#include <config.h>
#endif

+#include <stdlib.h>
+
/*============================================================================
== Compiler repairs
============================================================================*/
@@ -49,7 +51,6 @@
#pragma warning(disable:4244) /// Conversion from double to uchar
#pragma warning(disable:4761) /// Integral size mismatch
#pragma warning(disable:4786) /// Truncated to 255 chars
-#include <stdlib.h>
#define abort() _ASSERT(0)
#include <stdio.h>
#define snprintf _snprintf

Regards

Loïs Taulelle <GruiicK>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by GruiicK (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 17 Nov 2008 05:26:45 AM UTCjsalmon3StatusNone=>Fixed
      Assigned toNone=>jsalmon3
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1