Welcome to the KDE Community Forums, the official forum board for KDE.
You are currently viewing the forums as an unregistered user. Registration allows you to post and discuss topics, receive private messages, vote on ideas, subscribe to topics and many such great features. Registration is a simple process and completely free. So register now and be a part of the community!
You are currently viewing the forums as an unregistered user. Registration allows you to post and discuss topics, receive private messages, vote on ideas, subscribe to topics and many such great features. Registration is a simple process and completely free. So register now and be a part of the community!
compile warning/error GCC 3.3.4 for ARM
4 posts • Page 1 of 1
compile warning/error GCC 3.3.4 for ARM
Hello,
I'm working with a cross-compiler (running on Ubuntu x86, producing code for a modest ARM9 embedded computer).
The cross-compile is working fine for generic C++ projects.
But -- simple project which includes Eigen won't build.
Here's the code in question:
#include <Eigen/LU>
#include <Eigen/Array>
using namespace Eigen;
#define SIZE (200)
int main()
{
MatrixXf A = MatrixXf::Random(SIZE, SIZE);
VectorXf b = VectorXf::Random(SIZE);
VectorXf x;
A.lu().solve(b, &x);
...
}
And here's the warning/error report:
g++ -c main.cpp -I /home/chris/dev/eigen2
In file included from /home/chris/dev/eigen2/Eigen/Core:94,
from /home/chris/dev/eigen2/Eigen/LU:4,
from main.cpp:12:
/home/chris/dev/eigen2/Eigen/src/Core/util/XprHelper.h:39: warning: all member
functions in class `Eigen::ei_no_assignment_operator' are private
In file included from /home/chris/dev/eigen2/Eigen/Core:124,
from /home/chris/dev/eigen2/Eigen/LU:4,
from main.cpp:12:
/home/chris/dev/eigen2/Eigen/src/Core/Matrix.h: In member function `
Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>&
Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows,
_MaxCols>::_set(const Eigen::MatrixBase<OtherDerived>&)':
/home/chris/dev/eigen2/Eigen/src/Core/Matrix.h:508: error: parse error before `
;' token
The same code builds and runs perfectly under the native gcc shipped with Ubuntu.
Any clues?
Thanks!
I'm working with a cross-compiler (running on Ubuntu x86, producing code for a modest ARM9 embedded computer).
The cross-compile is working fine for generic C++ projects.
But -- simple project which includes Eigen won't build.
Here's the code in question:
#include <Eigen/LU>
#include <Eigen/Array>
using namespace Eigen;
#define SIZE (200)
int main()
{
MatrixXf A = MatrixXf::Random(SIZE, SIZE);
VectorXf b = VectorXf::Random(SIZE);
VectorXf x;
A.lu().solve(b, &x);
...
}
And here's the warning/error report:
g++ -c main.cpp -I /home/chris/dev/eigen2
In file included from /home/chris/dev/eigen2/Eigen/Core:94,
from /home/chris/dev/eigen2/Eigen/LU:4,
from main.cpp:12:
/home/chris/dev/eigen2/Eigen/src/Core/util/XprHelper.h:39: warning: all member
functions in class `Eigen::ei_no_assignment_operator' are private
In file included from /home/chris/dev/eigen2/Eigen/Core:124,
from /home/chris/dev/eigen2/Eigen/LU:4,
from main.cpp:12:
/home/chris/dev/eigen2/Eigen/src/Core/Matrix.h: In member function `
Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>&
Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows,
_MaxCols>::_set(const Eigen::MatrixBase<OtherDerived>&)':
/home/chris/dev/eigen2/Eigen/src/Core/Matrix.h:508: error: parse error before `
;' token
The same code builds and runs perfectly under the native gcc shipped with Ubuntu.
Any clues?
Thanks!
Re: compile warning/error GCC 3.3.4 for ARM
Thanks for the report, this should now be fixed in the 2.0 branch (see the main wiki page for instructions how to get it).
Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list!
Have a serious interest in Eigen? Then join the mailing list!
Re: compile warning/error GCC 3.3.4 for ARM
Hi, I'm having the exact same error in OSX 10.3 with gcc 3.3
I'm using the Eigen2 2.0.6 revision
I have updated the source but I see no change in it. Did you port the fix in 2.0.6? If not is it possible to do it?
thanks
I'm using the Eigen2 2.0.6 revision
I have updated the source but I see no change in it. Did you port the fix in 2.0.6? If not is it possible to do it?
thanks
Re: compile warning/error GCC 3.3.4 for ARM
never mind my previous message, I've moved to using 2.0 as I see it contains various bug fix.
Thanks
Thanks
4 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 6 guests

Search
FAQ
Policy
KDE.org
KDE.news
Planet KDE
More 
Ubuntu