Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linker error for inverse() on version 0.9.5 #147

Closed
wreardan opened this issue Dec 30, 2013 · 1 comment
Closed

Linker error for inverse() on version 0.9.5 #147

wreardan opened this issue Dec 30, 2013 · 1 comment
Assignees
Labels
Milestone

Comments

@wreardan
Copy link

This is the offending line of code (viewMatrix is a mat4):
mat3 normalMatrix = inverse(transpose(mat3(viewMatrix)));

Linker error message (Visual Studio 2012):

1>Object.obj : error LNK2019: unresolved external symbol "struct glm::detail::tmat3x3<float,0> __cdecl glm::detail::inverse<float,0>(struct glm::detail::tmat3x3<float,0> const &)" (??$inverse@M$0A@@detail@glm@@ya?AU?$tmat3x3@M$0A@@01@ABU201@@z) referenced in function "public: virtual void __thiscall Object::Render(struct glm::detail::tmat4x4<float,0>,struct glm::detail::tmat4x4<float,0>,class Lights)" (?Render@Object@@UAEXU?$tmat4x4@M$0A@@detail@glm@@0VLights@@@z)

This code works fine with version 0.9.4, am I doing something wrong here?

Thanks a lot for the great library!!
Wesley

@Groovounet
Copy link
Member

This bug is fixed in GLM 0.9.5 branch for GLM 0.9.5.1 release.

Thanks for contributing,
Christophe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants