I recommend posting the entire class declarations. Perhaps you mistyped something while typing in the pieces of the program. Have you tried to duplicate the problem in a simpler application? Instead of posting just a main function, post an entire compilable program. If you can't duplicate the problem with a single executable (no libraries) then it could be something to do with the API implemented within the static library but I don't know why that would be a problem. What's the specific compiler you are using?