Registered Member
|
hello, i'm using openframeworks that is a framework for graphics and iteractive media, and i want to integrate Eigen in it.
I get the error:
and, if i put in the setup method this code:
it print out a 0. I've downloaded Eigen 3 and put it in /usr/local/include/eigen3 and put this path in -I option of compiler in makefile. my g++ call is this one:
as you can see the frameworks uses a lot of libs, opengl, poco, rtAudio, cairo, freetypes, and many others. of course if i use the base tutorial here:
compiling it with
everything is ok! |
Moderator
|
you should try to include Eigen headers first.
see also: http://eigen.tuxfamily.org/bz/show_bug.cgi?id=253 |
Registered Member
|
mhmm it is a bit compilicated and i am not a cpp guru and can't resolve this (linking?) problem:
i have main.cpp that load opengl and glu context and then launch testApp.cpp the application is written in testApp.cpp, main is only a launcher. now, if i include Eigen in main there are no compilation problem but it is useless, because i have to include again Eigen in testApp (due to was not declared in this scope error) and.. it fails again. so i resolved with a dirty:
that, in my code, i don't use. (i even didn't know of its existence) now.. it works. if someone has more elegant solution, please tell me. |
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]