Linking smath.lib to a new program

gcc testsmath.c -o testsmath.exe -L. -lsmath

Linking smath.lib to a c++ program

g++ yourcplusplus.cpp -o yourcpluscplus.exe -L. -lsmath

(Remember to move both smath.h and smath.lib into your current project directory for this to work.)

//your main c++ file
 extern "C"
 #include <smath.h> 
}