[CoinUtils-tickets] [COIN-OR Common Utilities] #57: compilation error with gcc-4.4

COIN-OR Common Utilities coin-trac at coin-or.org
Tue Jun 16 17:18:23 EDT 2009


#57: compilation error with gcc-4.4
--------------------+-------------------------------------------------------
Reporter:  fmargot  |     Owner:     
    Type:  defect   |    Status:  new
Priority:  minor    |   Version:     
Keywords:           |  
--------------------+-------------------------------------------------------
 When compiling CoinUtils 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)

 Note that the line number is for the version stable/2.2 of the code, but a
 similar line is still in stable/2.5

 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;
   }


 }}}

-- 
Ticket URL: <https://projects.coin-or.org/CoinUtils/ticket/57>
COIN-OR Common Utilities <http://projects.coin-or.org/CoinUtils>
Common data structures and linear algebra functions for COIN-OR projects



More information about the CoinUtils-tickets mailing list