Adding Eigen Library
Sambeet Panigrahi
sambeet161616 at gmail.com
Mon Aug 29 11:56:53 UTC 2016
Hi,
I tried to link my code in the command line as I was not sure about how to
do it with the makefile :
sambeet at Holmes ~/NewRockPort/x86/Build/Rock-Port_ana/Tests/Eigen $
i386-rtems4.11-g++
-B/home/sambeet/NewRockPort/x86/Install/rtems/4.11.0-rc3/i386-rtems4.11/pc386/lib/
-specs bsp_specs -qrtems -O2 -g -mtune=i386 -c
-I/home/sambeet/NewRockPort/x86/Install/eigen/include/eigen2 -o
o-optimize/eigen.o eigen.cc
eigen.cc:19:4: error: expected constructor, destructor, or type conversion
before '(' token
m(0,0) = 3;
^
eigen.cc:20:4: error: expected constructor, destructor, or type conversion
before '(' token
m(1,0) = 2.5;
^
eigen.cc:21:4: error: expected constructor, destructor, or type conversion
before '(' token
m(0,1) = -1;
^
eigen.cc:22:4: error: expected constructor, destructor, or type conversion
before '(' token
m(1,1) = m(1,0) + m(0,1);
^
eigen.cc:23:8: error: 'cout' in namespace 'std' does not name a type
std::cout << m << std::endl;
^
eigen.cc:24:7: error: expected constructor, destructor, or type conversion
before '(' token
exit( 0 );
^
These happens usually due to STL being not supported in a g++ version.Does
rtems-g++ support STL ( vectors,maps etc. only the basic version of STL is
required for Eigen to work)?
On Mon, Aug 29, 2016 at 7:54 AM, Chris Johns <chrisj at rtems.org> wrote:
> On 29/08/2016 11:23, Sambeet Panigrahi wrote:
>
>> How do I add the eigen header file to the makefile?Adding CXX flags like
>> in the code in the initial post is not working.
>>
>
> https://lists.rtems.org/pipermail/users/2016-August/030547.html
>
> Chris
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20160829/dfa48044/attachment.html>
More information about the users
mailing list