This repository has been archived on 2024-12-30. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
2024CG-project-render/eigen/demos/mix_eigen_and_c
github-classroom[bot] 5d6a4935ec
Initial commit
2024-09-26 09:17:55 +00:00
..
binary_library.cpp Initial commit 2024-09-26 09:17:55 +00:00
binary_library.h Initial commit 2024-09-26 09:17:55 +00:00
example.c Initial commit 2024-09-26 09:17:55 +00:00
README Initial commit 2024-09-26 09:17:55 +00: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