This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to use CholmodSupport in Eigen3 under Ubuntu

Tags: None
(comma "," separated)
xchen
Registered Member
Posts
1
Karma
0
When I try to use CholmodSupport module in Eigen3, I got the following linking errors:

Code: Select all
CMakeFiles/cloudsim.dir/src/displaycloudsim.cpp.o: In function 'int Eigen::internal::cm_start<long>(cholmod_common_struct&):
displaycloudsim.cpp:(.text+0x3a0): multiple definition of 'int Eigen::internal::cm_start<long>(cholmod_common_struct&)

...

CMakeFiles/cloudsim.dir/src/displaycloudsim.cpp.o: In function 'int Eigen::internal::cm_free_sparse<long>(cholmod_sparse_struct*&, cholmod_common_struct&)':
displaycloudsim.cpp:(.text+0x3e0): multiple definition of 'int Eigen::internal::cm_free_sparse<long>(cholmod_sparse_struct*&, cholmod_common_struct&)'
CMakeFiles/cloudsim.dir/src/cloudsim.cpp.o:cloudsim.cpp:(.text+0x1120): first defined here

...

CMakeFiles/cloudsim.dir/src/displaycloudsim.cpp.o: In function 'int Eigen::internal::cm_factorize_p<long>(cholmod_sparse_struct*, double*, long*, unsigned long, cholmod_factor_struct*, cholmod_common_struct&)':
displaycloudsim.cpp:(.text+0x420): multiple definition of 'int Eigen::internal::cm_factorize_p<long>(cholmod_sparse_struct*, double*, long*, unsigned long, cholmod_factor_struct*, cholmod_common_struct&)'
CMakeFiles/cloudsim.dir/src/cloudsim.cpp.o:cloudsim.cpp:(.text+0x1160): first defined here

collect2: error: ld returned 1 exit status
CMakeFiles/cloudsim.dir/build.make:120: recipe for target 'cloudsim' failed
make[2]: *** [cloudsim] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/cloudsim.dir/all' failed
make[1]: *** [CMakeFiles/cloudsim.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2


Is there anyone who have encountered this before? Any idea to fix these redefinition errors?
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]