Menu

it++ 3.10 VS 2005 compile error

2006-03-15
2012-09-15
  • Satrajit Ghosh

    Satrajit Ghosh - 2006-03-15

    Has anybody been able to compile it++ straight out of the box with Visual Studio 2005? I keep getting an error that numeric_limits is not a member of std at the following line (91) in scalfunc.h

    const double eps = std::numeric_limits<double>::epsilon();

    1>e:\research\experiments\rtaudio\itpp-3.10.0\itpp\base\scalfunc.h(90) : error C2039: 'numeric_limits' : is not a member of 'std'
    1>e:\research\experiments\rtaudio\itpp-3.10.0\itpp\base\scalfunc.h(90) : error C2065: 'numeric_limits' : undeclared identifier
    1>e:\research\experiments\rtaudio\itpp-3.10.0\itpp\base\scalfunc.h(90) : error C2062: type 'double' unexpected
    1>e:\research\experiments\rtaudio\itpp-3.10.0\itpp\base\scalfunc.h(90) : error C2039: 'epsilon' : is not a member of '`global namespace''

     
    • Satrajit Ghosh

      Satrajit Ghosh - 2006-03-21

      yup. That works fine.

       
    • Satrajit Ghosh

      Satrajit Ghosh - 2006-03-15

      I was able to get rid of these errors by adding #include <limits> to scalfunc.h

      But there is still another error:

      1>e:\research\experiments\rtaudio\itpp-3.10.0\itpp\protocol\selective_repeat.cpp(78) : error C2220: warning treated as error - no 'object' file generated

       
    • Adam Piątyszek

      Adam Piątyszek - 2006-03-16

      Could you please try the following patch for the second problem (itpp/protocol/selective_repeat.cpp, line 78)?

      • it_assert(0<Buffer_size_factor<=10,"Selective_Repeat_ARQ_Sender::set_parameters():");
      • it_assert((0 < Buffer_size_factor) && Buffer_size_factor <= 10), "Selective_Repeat_ARQ_Sender::set_parameters():");

      /ediap

       
    • Adam Piątyszek

      Adam Piątyszek - 2006-03-16

      Ops! There is a small bug in the patch above. Here is corrected version:

      • it_assert((0 < Buffer_size_factor) && (Buffer_size_factor <= 10), "Selective_Repeat_ARQ_Sender::set_parameters():");

      /ediap

       

Log in to post a comment.