Menu

bug in elmatfunc.h

Andy Panov
2004-02-07
2012-09-15
  • Andy Panov

    Andy Panov - 2004-02-07

    Hello,

    Following two lines in elmatfunc.h :
    inline  ivec abs(const ivec &x);
    inline  imat abs(const imat &x);

    should be repleaced with:
    ivec abs(const ivec &x);
    imat abs(const imat &x);

    MSVC.NET compiler compiles the existing code smootly but build failes at the linking stage.

    Best Regards.
    Andy. P.

     
    • Tony Ottosson Gadd

      This will be fixed in next release of IT++ to be released in May.

      /Tony

       
    • Scott Maroney

      Scott Maroney - 2007-02-14

      I'm seeing a problem with the inline functions in elmatfunc.h when using -f-inline-functions w/g++ v3.2.3. I'm compiling on a 32 bit Linux box. Probably RedHat EL 4.

      The error:

      /apps/it++/itpp-3.10.9/include/itpp/base/elmatfunc.h:238: explicit
      instantiation of `itpp::ivec itpp::to_ivec(const itpp::Vec<T>&) [with T =
      double]
      ' but no definition available

      I commented out "inline" but I get the same error.

      Any ideas?

       
      • Adam Piątyszek

        Adam Piątyszek - 2007-02-14

        According to our Installation manual:
        http://itpp.sourceforge.net/stable/installation.html#requirements
        IT++ requires GCC in version 3.3.x at least. We do not support older GCC versions...

        BR,
        /ediap

         
        • Scott Maroney

          Scott Maroney - 2007-02-15

          Ediap:
          Thanks for the response. We're migrating to 3.4.6 shortly, so hopefully that will address my problem.

          Scott

           

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.