{"action":"created","issue":{"url":"https://api.github.com/repos/DGtal-team/DGtal/issues/1361","repository_url":"https://api.github.com/repos/DGtal-team/DGtal","labels_url":"https://api.github.com/repos/DGtal-team/DGtal/issues/1361/labels{/name}","comments_url":"https://api.github.com/repos/DGtal-team/DGtal/issues/1361/comments","events_url":"https://api.github.com/repos/DGtal-team/DGtal/issues/1361/events","html_url":"https://github.com/DGtal-team/DGtal/issues/1361","id":380749285,"node_id":"MDU6SXNzdWUzODA3NDkyODU=","number":1361,"title":"Compilation error of examples/dec/examplePropagation.cpp with Eigen3 (3.2.92) and gcc 5.4","user":{"login":"JacquesOlivierLachaud","id":793707,"node_id":"MDQ6VXNlcjc5MzcwNw==","avatar_url":"https://avatars0.githubusercontent.com/u/793707?v=4","gravatar_id":"","url":"https://api.github.com/users/JacquesOlivierLachaud","html_url":"https://github.com/JacquesOlivierLachaud","followers_url":"https://api.github.com/users/JacquesOlivierLachaud/followers","following_url":"https://api.github.com/users/JacquesOlivierLachaud/following{/other_user}","gists_url":"https://api.github.com/users/JacquesOlivierLachaud/gists{/gist_id}","starred_url":"https://api.github.com/users/JacquesOlivierLachaud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JacquesOlivierLachaud/subscriptions","organizations_url":"https://api.github.com/users/JacquesOlivierLachaud/orgs","repos_url":"https://api.github.com/users/JacquesOlivierLachaud/repos","events_url":"https://api.github.com/users/JacquesOlivierLachaud/events{/privacy}","received_events_url":"https://api.github.com/users/JacquesOlivierLachaud/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-14T15:24:32Z","updated_at":"2018-11-14T16:40:35Z","closed_at":null,"author_association":"MEMBER","body":"I have a compilation problem on examples/dec/examplePropagation.cpp with Eigen3 on Ubuntu 16.04 LTS, package libeigen3-dev par defaut (3.2.92).\r\n`[100%] Building CXX object examples/dec/CMakeFiles/examplePropagation.dir/examplePropagation.cpp.o\r\nIn file included from /usr/include/eigen3/Eigen/Eigenvalues:38:0,\r\n                 from /usr/include/eigen3/Eigen/Dense:7,\r\n                 from /home/lachaud/GITHUB/DGtal/src/DGtal/math/linalg/EigenSupport.h:65,\r\n                 from /home/lachaud/GITHUB/DGtal/examples/dec/examplePropagation.cpp:11:\r\n/usr/include/eigen3/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h: In instantiation of ‘Eigen::SelfAdjointEigenSolver<MatrixType>& Eigen::SelfAdjointEigenSolver<_MatrixType>::compute(const Eigen::EigenBase<OtherDerived>&, int) [with InputType = Eigen::SparseMatrix<double, 0, long int>; _MatrixType = Eigen::Matrix<double, -1, -1>]’:\r\n/usr/include/eigen3/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h:168:14:   required from ‘Eigen::SelfAdjointEigenSolver<_MatrixType>::SelfAdjointEigenSolver(const Eigen::EigenBase<OtherDerived>&, int) [with InputType = Eigen::SparseMatrix<double, 0, long int>; _MatrixType = Eigen::Matrix<double, -1, -1>]’\r\n/home/lachaud/GITHUB/DGtal/examples/dec/examplePropagation.cpp:96:65:   required from here\r\n/usr/include/eigen3/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h:414:51: error: no match for call to ‘(const Eigen::SparseMatrix<double, 0, long int>) (int, int)’\r\n     m_eivalues.coeffRef(0,0) = numext::real(matrix(0,0));\r\n                                                   ^\r\nexamples/dec/CMakeFiles/examplePropagation.dir/build.make:62 : la recette pour la cible « examples/dec/CMakeFiles/examplePropagation.dir/examplePropagation.cpp.o » a échouée\r\nmake[3]: *** [examples/dec/CMakeFiles/examplePropagation.dir/examplePropagation.cpp.o] Erreur 1\r\nCMakeFiles/Makefile2:6574 : la recette pour la cible « examples/dec/CMakeFiles/examplePropagation.dir/all » a échouée\r\nmake[2]: *** [examples/dec/CMakeFiles/examplePropagation.dir/all] Erreur 2\r\nCMakeFiles/Makefile2:6586 : la recette pour la cible « examples/dec/CMakeFiles/examplePropagation.dir/rule » a échouée\r\nmake[1]: *** [examples/dec/CMakeFiles/examplePropagation.dir/rule] Erreur 2\r\nMakefile:2251 : la recette pour la cible « examplePropagation » a échouée\r\n`\r\nWhen looking at file SparseMatrix, I do not understand since there seems to have such a public constructor. gcc version is 5.4.0.\r\n\r\nI tested with clang (3.8.0), default in ubuntu and I got the same issue. On a forum \r\n[https://stackoverflow.com/questions/19701977/compilation-error-using-template-programming-with-eigen-c-library](url)\r\nit says more or less that a call to `matrix(0,0)` is a bad idea, but this is eigen code. Do you have compilation issues also with eigen3 ?\r\n"},"comment":{"url":"https://api.github.com/repos/DGtal-team/DGtal/issues/comments/438730123","html_url":"https://github.com/DGtal-team/DGtal/issues/1361#issuecomment-438730123","issue_url":"https://api.github.com/repos/DGtal-team/DGtal/issues/1361","id":438730123,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODczMDEyMw==","user":{"login":"rolanddenis","id":10435058,"node_id":"MDQ6VXNlcjEwNDM1MDU4","avatar_url":"https://avatars2.githubusercontent.com/u/10435058?v=4","gravatar_id":"","url":"https://api.github.com/users/rolanddenis","html_url":"https://github.com/rolanddenis","followers_url":"https://api.github.com/users/rolanddenis/followers","following_url":"https://api.github.com/users/rolanddenis/following{/other_user}","gists_url":"https://api.github.com/users/rolanddenis/gists{/gist_id}","starred_url":"https://api.github.com/users/rolanddenis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rolanddenis/subscriptions","organizations_url":"https://api.github.com/users/rolanddenis/orgs","repos_url":"https://api.github.com/users/rolanddenis/repos","events_url":"https://api.github.com/users/rolanddenis/events{/privacy}","received_events_url":"https://api.github.com/users/rolanddenis/received_events","type":"User","site_admin":false},"created_at":"2018-11-14T16:40:35Z","updated_at":"2018-11-14T16:40:35Z","author_association":"MEMBER","body":"No error under `Ubuntu/16.04` with `Clang/6.0` or `GNU/5.5` but using `Eigen/3.3.3`. Maybe a fixed bug  ?"}}
{"actor":{"display_login":"rolanddenis"}}