This does not seem like a problem with linking the library. The error is obviously during compilation stage.