threed-beam-fea/ext/eigen-3.3.4/demos/mix_eigen_and_c
Ryan Latture a3443cfe66 Updated to latest versions of external libraries: Eigen 3.2.9 -> 3.3.4, gtest 1.7.0 -> 1.8.0, boost 1.59.0 -> 1.65.1, rapidjson 1.0.2 -> 1.1.0. 2017-10-24 14:57:35 -07:00
..
README Updated to latest versions of external libraries: Eigen 3.2.9 -> 3.3.4, gtest 1.7.0 -> 1.8.0, boost 1.59.0 -> 1.65.1, rapidjson 1.0.2 -> 1.1.0. 2017-10-24 14:57:35 -07:00
binary_library.cpp Updated to latest versions of external libraries: Eigen 3.2.9 -> 3.3.4, gtest 1.7.0 -> 1.8.0, boost 1.59.0 -> 1.65.1, rapidjson 1.0.2 -> 1.1.0. 2017-10-24 14:57:35 -07:00
binary_library.h Updated to latest versions of external libraries: Eigen 3.2.9 -> 3.3.4, gtest 1.7.0 -> 1.8.0, boost 1.59.0 -> 1.65.1, rapidjson 1.0.2 -> 1.1.0. 2017-10-24 14:57:35 -07:00
example.c Updated to latest versions of external libraries: Eigen 3.2.9 -> 3.3.4, gtest 1.7.0 -> 1.8.0, boost 1.59.0 -> 1.65.1, rapidjson 1.0.2 -> 1.1.0. 2017-10-24 14:57:35 -07:00

README

This is an example of how one can wrap some of Eigen into a C library.

To try this with GCC, do:

  g++ -c binary_library.cpp -O2 -msse2 -I ../..
  gcc example.c binary_library.o -o example -lstdc++
  ./example

TODO: add CMakeLists, add more explanations here