Changeset 588

Show
Ignore:
Timestamp:
08/28/09 09:06:54 (15 years ago)
Author:
smidl
Message:

win32 compilation fixes

Location:
library
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/base/bdmbase.h

    r586 r588  
    691691 
    692692                //! log this vector 
    693                 virtual void logit (int id, const vec &v) = 0; 
     693                virtual void logit (int id, const vec &v) {bdm_error("Not implemented");}; 
    694694                //! log this double 
    695                 virtual void logit (int id, const double &d) = 0; 
     695                virtual void logit (int id, const double &d) {bdm_error("Not implemented");}; 
    696696 
    697697                //! Shifts storage position for another time step. 
    698                 virtual void step() = 0; 
     698                virtual void step() {bdm_error("Not implemneted");}; 
    699699 
    700700                //! Finalize storing information 
  • library/bdm/mex/mex_parser.h

    r536 r588  
    103103                        mexErrMsgTxt ( "Given mxArray is not a cell." ); 
    104104                }; 
    105                 for ( uint i = 0; i < mxGetNumberOfElements ( mxarray ); i++ ) { 
     105                for ( unsigned int i = 0; i < mxGetNumberOfElements ( mxarray ); i++ ) { 
    106106                        mxArray *value = mxGetCell ( mxarray, i ); 
    107107                        if ( mxIsChar ( value ) ) { 
  • library/tests/LQG_test.cpp

    r586 r588  
    1414 
    1515        reg.redesign(); 
    16         CHECK_CLOSE(reg.apply("0.5, 1.1","0.0")(0) /*convert vec to double*/, -0.248528137234392, 0.0001); 
     16        double reg_apply=reg.apply("0.5, 1.1","0.0")(0); /*convert vec to double*/ 
     17        CHECK_CLOSE(reg_apply, -0.248528137234392, 0.0001); 
    1718} 
    1819