Registered Member
|
Hi,
I get the following compiler error when calling the method setFromTriplets on a sparse matrix:
Unfortunately I could not reproduce the above error with a small example. What might be causing this compiler error? Regards Roman |
Moderator
|
strange, can you show the code calling setFromTriplet?
|
Registered Member
|
I finally found the problem: When I include the header file cppad.hpp (I tested the CppAD library a bit) before including the necessary header files of Eigen, then I get the above error. Changing the order solves the problem. Now the question is whether its a bug in Eigen or CppAD...
|
Moderator
|
hm, cannot reproduce, what's your compiler version?
|
Registered Member
|
The following code produces the above error (tested with icc 12.0 and gcc 4.2):
If I include cppad.hpp after the Eigen headers this compiler error disappears. However, if I then try to use the CppAD library I suddenly get compiler errors, which are not there with the original include order. |
Moderator
|
cannot reproduce, I have the latest version of cppad (20121016)
|
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]