bugGNU Octave - Bugs: bug #39715, INT_MAX not declared in __glpk__.cc

 
 

bug #39715: INT_MAX not declared in __glpk__.cc

Submitted by:  None
Submitted on:  Wed 07 Aug 2013 08:10:08 AM UTC  
 
Category: Configuration and Build SystemSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Build Failure
Status: FixedAssigned to: None
Originator Name: GedeoneOriginator Email: -unavailable-
Open/Closed: ClosedRelease: dev
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 07 Aug 2013 03:44:41 PM UTC, comment #1:

Octave prefers to stay in C++, rather than bring in C header libraries, but the fix is pretty easy. INT_MAX should be eliminated in favor of std::numeric_limits<int>::max (). I checked in the change here (http://hg.savannah.gnu.org/hgweb/octave/rev/2899d110c178)

Rik <rik5>
Project Administrator
Wed 07 Aug 2013 08:10:08 AM UTC, original submission:

hi, I've found the following error while compiling

../../libinterp/dldfcn/__glpk__.cc: In function 'octave_value_list F__glpk__(const octave_value_list&, int)': ../../libinterp/dldfcn/__glpk__.cc:619:15: error: 'INT_MAX' was not declared in this scope make[3]: *** [dldfcn/dldfcn___glpk___la-__glpk__.lo] Error 1 make[3]: Leaving directory `/home/ted/octave/.build/libinterp' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/ted/octave/.build/libinterp' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/ted/octave/.build' make: *** [all] Error 2

I think that it should be enough to add the following line to solve the problem:

#include <climits>

By,

Marco

Anonymous

 

(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 rik5 (Posted a comment)
  • -unavailable- added by None (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 project members can vote.

     

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

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 07 Aug 2013 03:44:41 PM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1