diff --git a/build.bash b/build.bash index 0fcb130..c937bef 100755 --- a/build.bash +++ b/build.bash @@ -13,7 +13,7 @@ filename="${filename%.*}" mkdir -p "build/$filename" # Compile the C++ file -g++ -o "build/$filename/$filename" "$1" +g++ -I /usr/include/eigen3 -o "build/$filename/$filename" "$1" # Check if the compilation was successful if [ $? -eq 0 ]; then diff --git a/wandbox.cpp b/wandbox.cpp index d353b3f..e1f1a5d 100644 --- a/wandbox.cpp +++ b/wandbox.cpp @@ -5,10 +5,14 @@ #include #include +#include + using std::cout; using std::endl; int main(int argc, char* argp[]) { + Eigen::Vector2d X = Eigen::Vector2d::Ones(); + cout << "X: " << X.transpose() << endl; int counter = 0; int b = 10; int x= 10;