Answered by:
Visual Studio 2013 Issue

Question
-
I have a lirary that builds fine with Visual Studio 2012 but fails with Visual Studio 2013 preview.
The failure is caused by undefined symbols during linking:
1>gsl.lib(minmax.obj) : error LNK2019: unresolved external symbol _dclass referenced in function gsl_vector_long_double_max
1>gsl.lib(minmax.obj) : error LNK2019: unresolved external symbol _fdclass referenced in function gsl_vector_float_maxwhich I have tracked down to functions that are defined in math.h and required whenever _isnan() is used.
But those do not appear to be available within the CRT libraries on VS 2013 (at least not those used by default on win32/x64 console applications).
I would appreciate advice on what might be causing this failure.
Saturday, August 31, 2013 7:40 PM
Answers
-
This issue has been resolved as a user error. See:
http://connect.microsoft.com/VisualStudio/feedback/details/799470/possible-issue-with-isnan-on-visual-studio-2013-preview
- Wayne
- Marked as answer by Anna Cc Monday, September 9, 2013 2:36 AM
Thursday, September 5, 2013 1:11 AM
All replies
-
The failure is caused by undefined symbols during linking:
1>gsl.lib(minmax.obj) : error LNK2019: unresolved external symbol _dclass referenced in function gsl_vector_long_double_max
1>gsl.lib(minmax.obj) : error LNK2019: unresolved external symbol _fdclass referenced in function gsl_vector_float_maxwhich I have tracked down to functions that are defined in math.h and required whenever _isnan() is used.
This *may* be related to the ongoing changes in VC++ 2013 affecting math.h such as
the planned support for std::isnan - some of the changes are not yet incorporated in
the Preview edition. For example, see:
"Visual C++ Team Blog - C99 library support in Visual Studio 2013"
http://blogs.msdn.com/b/vcblog/archive/2013/07/19/c99-library-support-in-visual-studio-2013.aspx
"Please add support for all the C++11 function in <cmath>"
http://connect.microsoft.com/VisualStudio/feedback/details/794408/please-add-support-for-all-the-c-11-function-in-cmath
For a definitive answer, I suggest you post this at the Connect feedback site:
http://connect.microsoft.com/VisualStudio
- Wayne
- Proposed as answer by Anna Cc Tuesday, September 3, 2013 2:27 AM
Sunday, September 1, 2013 4:11 AM -
Thanks Wayne,
I will do as you suggest.
Brian
Sunday, September 1, 2013 9:53 AM -
This issue has been resolved as a user error. See:
http://connect.microsoft.com/VisualStudio/feedback/details/799470/possible-issue-with-isnan-on-visual-studio-2013-preview
- Wayne
- Marked as answer by Anna Cc Monday, September 9, 2013 2:36 AM
Thursday, September 5, 2013 1:11 AM