That's it, I needed an #include "min.hh"
in my main programm aswell.
Can someone explain why?, because i don't think both my min.cc and my actual main programm should have this line.
Why doesn't compiling my programm with the library do this?
Although with the error on line 14, I guess you are missing things out on you post.
I also made a "max"-function, which I let out because that's the same problem
You can't use a function in a translation unit before it is declared.
Including min.hh with the function declaration takes care of that.
Whether you pass -lMin on the command line or not has no effect on compiling, this is only relevant for the linker in the final linking step.