unresolved external symbol __report_rangecheckfailure

  • Thread starter Thread starter gec47
  • Start date Start date
G

gec47

Guest
Hey everyone. Im trying to compile some source code using the libpng library. I get the following error during linking:

1>g:\programming\png_encoder\png_encoder\pngencode.cpp(48): warning C4996: fopen: This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(234) : see declaration of fopen
1>libpng.lib(pngerror.obj) : error LNK2019: unresolved external symbol ___report_rangecheckfailure referenced in function _png_default_error
1>libpng.lib(pngrutil.obj) : error LNK2001: unresolved external symbol ___report_rangecheckfailure
1>libpng.lib(inftrees.obj) : error LNK2001: unresolved external symbol ___report_rangecheckfailure
1>G:\Programming\PNG_Encoder\GnuWin32\src\libpng\1.2.37\libpng-1.2.37-src\projects\visualc71\Debug\PNG_Encoder.exe : fatal error LNK1120: 1 unresolved externals


From what I know, that function is related to the compiler option /GS for doing stack protection. What Im primarily curious about is why its unresolved here. Additional info that may help answering is that Im using VS 2012 and the solution is one that has been converted from 2010. Thanks in advance for the feedback.

Continue reading...
 
Back
Top