math major pretending to be a programmer here. I wanted to use a math library eigen (http://eigen.tuxfamily.org/index.php?title=Main_Page) and I'm running into some problems (with #include <Eigen/Dense>). Hoping I can solve this without going to the stack and getting downvotes
Most files don't have to be built, I think and should just work straight from download
I followed these pages:
http://eigen.tuxfamily.org/dox/GettingStarted.html
https://github.com/Microsoft/AirSim/blob/master/docs/install_eigen.md
http://askubuntu.com/questions/491067/eigen-installation-seemed-to-work-but-i-still-cant-make-eigen-work
and still getting the g++ error: Eigen/Dense No such file or directory. For the time being, I'm using a windows vista. I created test.cpp which is exactly the same as the getting started example. I created the environment variable EIGEN_ROOT pointing to: C:\Users\zachary\Desktop\eigen. Inside this folder is eigen3 where all the files are
I used the command:
C:\Users\zachary\Desktop\eigen>g++ -I/eigen3/ test.cpp -o test.exe
test.cpp:2:23: fatal error: Eigen/Dense: No such file or directory
#include <Eigen/Dense>
^
compilation terminated.
Bet there's something really simple I'm missing right?
>g++ -I/eigen3/test.cpp -o test.exe
I think it should be
g++ -I <folder to search for header files> -o test.exe <path to test.cpp>
>>59451233
YES, it worked! Thank you! been scratching my head for an hour :)
odd how there's no compiler output.. don't care it worked
now to get code blocks to work with it...
>>59450953
Just use Julia
>>59451430
G++ can give verbose output with
>>59451644
what the fuck, dash v
>>59451625
yeah I'll give it a shot.
The compilation works now but I have cd to the folder of the file, or it gives me a "permission denied" error. So if I can get my IDE to work with this I'll be happy