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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
This will be fixed in next release of IT++ to be released in May.
/Tony
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?
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
Ediap:
Thanks for the response. We're migrating to 3.4.6 shortly, so hopefully that will address my problem.
Scott