![]() Registered Member ![]()
|
I'm getting the error below. I think the error should instead be "static_assert failed "YOU_TRIED_CALLING_A_VECTOR_METHOD_ON_A_MATRIX", but instead it gives error below, which makes me suspect my configuration is not setup correctly.
To install, I just unzipped the latest tar and pointed to it using -I option of g++. Checked examples from tutorial, and they seem to work correctly. MacOS 10.9.4 i686-apple-darwin11-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) make all Building file: ../src/helloworld.cpp Invoking: GCC C++ Compiler g++ -I"/Users/yaroslavvb/Google Drive/src/theano/eigen" -O0 -g3 -Wall -c -fmessage-length=0 -rdynamic -MMD -MP -MF"src/helloworld.d" -MT"src/helloworld.d" -o "src/helloworld.o" "../src/helloworld.cpp" /Users/yaroslavvb/Google Drive/src/theano/eigen/Eigen/src/Core/MapBase.h: In constructor 'Eigen::MapBase<Derived, 0>::MapBase(typename Eigen::internal::conditional<(bool)(Eigen::internal::is_lvalue<Derived>::value), typename Eigen::internal::traits<T>::Scalar*, const typename Eigen::internal::traits<T>::Scalar*>::type, typename Eigen::internal::traits<T>::Index) [with Derived = Eigen::Map<const Eigen::Matrix<int, 3, 4, 1, 3, 4>, 0, Eigen::Stride<0, 0> >]': /Users/yaroslavvb/Google Drive/src/theano/eigen/Eigen/src/Core/Map.h:152: instantiated from 'Eigen::Map<MatrixType, MapOptions, StrideType>::Map(typename Eigen::MapBase<Eigen::Map<PlainObjectType, MapOptions, StrideType>, (Eigen::internal::accessors_level<Eigen::Map<PlainObjectType, MapOptions, StrideType> >::has_write_access ? WriteAccessors : ReadOnlyAccessors)>::PointerType, typename Eigen::internal::traits<Eigen::Map<PlainObjectType, MapOptions, StrideType> >::Index, const StrideType&) [with PlainObjectType = const Eigen::Matrix<int, 3, 4, 1, 3, 4>, int MapOptions = 0, StrideType = Eigen::Stride<0, 0>]' ../src/helloworld.cpp:125: instantiated from here /Users/yaroslavvb/Google Drive/src/theano/eigen/Eigen/src/Core/MapBase.h:137: error: 'YOU_TRIED_CALLING_A_VECTOR_METHOD_ON_A_MATRIX' is not a member of 'Eigen::internal::static_assertion<false>' make: *** [src/helloworld.o] Error 1 |
![]() Moderator ![]()
|
Proper static assertion are enabled if C++11 is enabled. Otherwise, we have to use a tricky mechanism to mimic them, hence the weird " is not a member of 'Eigen::internal::static_assertion<false>' " that you can safely ignore.
|
![]() Registered Member ![]()
|
Thanks, that fixed it
I changed g++ to clang++ and added -std=c++11 option to get it building as C++11 http://stackoverflow.com/questions/1745 ... kepler-cdt |
Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]