...
To compile a C program and link it to Magics++ you only need to type
gcc
gcc shade.c -o shade `magics-config --clibs --cxxflags`
To compile simple Magics Fortran programs you can use magics-config by typing :
magics-config --compile=test.f
In case a different suffix is used for Fortran code the call can be extended to:
...
magics-config --compile=test.F90 --suffix=F90
There is a similar shortcut for C code called --compileC=test.c.
...