VS Link Tips unresolved external symbol __imp__fopen solution

an error when vs2015 link:
1> Picture.obj: error LNK2001: unresolved external symbol __imp__fopen
1> RenderView.obj: error LNK2001: unresolved external symbol __imp__fopen
1> 3DEditorDoc.obj: error LNK2019: unresolved external symbols __imp__fopen, the symbol in the letter ...

Tips such as these __imp_fopen, fopen, fprintf such a fundamental part of the system functions, mostly because that is not loaded into the library: msvcrtd.lib, information about the library can refer to this link :( HTTP: //www.cnblogs. COM / Romi / Archive / 2012/09/01 / 2666861.html )

#pragma comment(lib,"msvcrtd.lib")

If still not resolved, please refer to the Microsoft official related documents: https://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=ZH-CN&k=k(LNK2019)&rd=true

Published 18 original articles · won praise 8 · views 30000 +

Guess you like

Origin blog.csdn.net/qq_20408397/article/details/77803215