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

unresolved external symbol __libm_sse2_pow_precise referenced in function _glfwSetGamma #169

Closed
gnawme opened this issue Nov 5, 2013 · 10 comments
Assignees
Labels
bug Bug reports and bugfix pull requests Windows Win32 specific (not Cygwin or WSL)
Milestone

Comments

@gnawme
Copy link

gnawme commented Nov 5, 2013

I switched to glfw 3.0.3, and am now getting this link error in both Visual Studio 2010 and Visual Studio 2012:

glfw3.lib(gamma.obj) : error LNK2019: unresolved external symbol __libm_sse2_pow_precise referenced in function _glfwSetGamma

@siavashserver
Copy link
Member

GLFW 3.0.3 builds successfully on MSVC 2010 for me.

@retep998
Copy link

retep998 commented Nov 9, 2013

Both VS 2012 and VS 2013 working fine on my end, both 32 and 64 bit.

@cdwfs
Copy link

cdwfs commented Jan 1, 2014

I got this error after upgrading to GLFW 3.0.4. I was trying to link against the pre-built 32-bit VS2012 static library using VS 2010. The binary archives don't seem to include VS 2010 libraries; just 2012 and 2013. was the omission intentional? If so, the versions listed on http://www.glfw.org/download.html should be updated accordingly.

I just ended up building GLFW from source instead, but wanted to leave a note in case anybody else hits this.

@elmindreda elmindreda reopened this Jan 1, 2014
@ghost ghost assigned elmindreda Jan 1, 2014
@elmindreda
Copy link
Member

@cdwfs It was intentional. Call it encouragement for the spread of C++11. The site has been updated. Thank you, and for the clue.

@siavashserver
Copy link
Member

Call it encouragement for the spread of C++11.

GLFW modernization on the way?

@retep998
Copy link

retep998 commented Jan 2, 2014

GLFW modernization on the way?

But GLFW is C not C++, and MSVC still barely even supports C99.

@siavashserver
Copy link
Member

But GLFW is C not C++, and MSVC still barely even supports C99.

I was curious if there is plans to convert GLFW code base to C++11, while providing a C style API for use.

@elmindreda
Copy link
Member

No, GLFW will not use C++.

@zerothat
Copy link

Getting same error trying to upgrade from glfw2 to glfw3.0.3 windows binary version. It's frustrating that there's just 1 link error.

@elmindreda
Copy link
Member

I will add back Visual C++ 2010 binaries for 3.1 and rename the directories to reflect the marketing names of Visual C++.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports and bugfix pull requests Windows Win32 specific (not Cygwin or WSL)
Projects
None yet
Development

No branches or pull requests

6 participants