2017-06-21 88 views

回答

0

VS2015沒有定義你正在尋找的__iob_func對象,而VS2008做的。你鏈接的庫是舊的,需要它。最好自己定義它。

將以下內容添加到受影響項目中的其中一個源文件中,它可能有助於鏈接。

#if _MSC_VER >= 1900 // VS2015+ 

static FILE iob[] = { *stdin, *stdout, *stderr }; 

extern "C" FILE* __cdecl __iob_func(void) 
{ 
    return iob; 
} 

#endif // _MSC_VER