fyi;
I put some of my notes on using C++ to program computer algebra
via giac here:
https://12000.org/my_notes/faq/giac/index.htm
It shows few examples now, will try to add more. It shows
how to write small C++ program to use the giac library to
do some basic CAS calls.
May be it is useful for some.
--Nasser