#How to convert files from text to cpp?
39 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For more information use !howto ask.
Eigen I believe is all header files
I don't think you would have to convert it to cpp files.
Where are the Eigen files stored relative to the code project you are working on?
#include <Eigen/Dense>
this should be good enough as long as you pass in the correct directories to the compiler
This folder doesn't work in the cmd
The error I'm getting that it doesn't exist
and I saw that all the files in Eigen are just files
They're not cpp
I mean by the includes
Ok - did you link the correct directory for the compiler?
They just can't work
I'm not sure what do you mean, what I did is linked the <Eigen\Dense> and I also used the command in the cmd
It's like that: g++ -I "C:\grand\program files..."
That's one of the things that I needed to do
ok so g++ -l"C:\some\path\to\your\code" is that the full command?
Wait one sec
I'll show you all
Sorry I'm taking the time
I just had some problem
Wait one second
- Show me the path to where you extracted/compiled the Eigen package
- Show me the full g++ command that you use to compile the code
Here's what I'm trying to use to compile
these are the two
you need to add -I "C:\Users\grand\OneDrive\....\eigen-3.4.0" to your second command
just like the first one
after the g++?
yes
np 🙂 - in general you have to tell the compiler where the library you want to link to is. And thats how you do it