Here is an example of how researchers from CERN use Mathematica functions in C++.
I have tried to dissect the code, but I still get plenty of errors when I try to compile it.
Can anyone show a simple example of how to efficiently call Mathematica functions from C++?