reactphysics3d/testbed/nanogui/ext/eigen/demos/mix_eigen_and_c
2018-04-04 07:14:58 +02:00
..
binary_library.cpp Update the nanogui library that is used for the GUI of the testbed application 2018-04-04 07:14:58 +02:00
binary_library.h Update the nanogui library that is used for the GUI of the testbed application 2018-04-04 07:14:58 +02:00
example.c Update the nanogui library that is used for the GUI of the testbed application 2018-04-04 07:14:58 +02:00
README Update the nanogui library that is used for the GUI of the testbed application 2018-04-04 07:14:58 +02:00

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