The code in lin.h file should be surrounded by header guard like this:
#ifndef LIN_H_
#define LIN_H_
// Code goes here.
#endif // LIN_H_
This way it can be included from several files at the same time without having problems of "redeclarations".
Have a nice day! :-)
Chris