[Bcp-tickets] [Branch-Cut-Price Framework] #22: stable/1.1 does not compile with gcc-4.4

Branch-Cut-Price Framework coin-trac at coin-or.org
Wed Jun 17 04:18:44 EDT 2009


#22: stable/1.1 does not compile with gcc-4.4
------------------------+---------------------------------------------------
 Reporter:  fmargot     |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  minor       |   Milestone:          
Component:  component1  |     Version:          
 Keywords:              |  
------------------------+---------------------------------------------------
 When compiling CoinUtils from Bcp/stable/1.1 on a 64 bits machine with
 Fedora 11 and gcc version 4.4.0 20090506 (Red Hat 4.4.0-4) (GCC), I get:

 ../../../CoinUtils/src/CoinFactorization.hpp:725: error: there are no
 arguments to 'printf' that depend on a template parameter, so a
 declaration of 'printf' must be available
 ../../../CoinUtils/src/CoinFactorization.hpp:725: note: (if you use
 '-fpermissive', G++ will accept your code, but allowing the use of an
 undeclared name is deprecated)


 The line in question is the printf() line in:
 {{{
   if ( l + numberInPivotColumn > lengthAreaL_ ) {
     //need more memory
     printf("more memory needed in middle of invert\n");
     return false;
   }
 }}}

 After commenting out this printf line, there are additional errors that
 can be fixed by including stdio.h in file CoinUtils/CoinParamUtils.cpp.

-- 
Ticket URL: <https://projects.coin-or.org/Bcp/ticket/22>
Branch-Cut-Price Framework <http://projects.coin-or.org/Bcp>
A parallel framework for branch-cut-price algorithms.



More information about the Bcp-tickets mailing list