7.10
After modifying the path of Easyx, there is only one question left.
"" Unresolved external symbol _iob_func, which is referenced in the function ""
"" 1 external commands that cannot be resolved
Reason:
Version of the problem, the code has been compiled, but is version 2012, my vs is the 15 version should be the reason.
VS2015, Microsoft's standard library to the standard input and output stream macro definition change _acrtimp_alt file* __cdecl __acrt_iob_func (unsigned);
#define STDIN (__acrt_iob_func (0))
#define STDOUT (__acrt_iob_func (1))
#define STDERR (__acrt_iob_func (2))
In the vs2010-2013 version, Microsoft's standard library's macro definition for standard input and output streams
_crtimp FILE * __cdecl __iob_func (void);
#define STDIN (&__iob_func () [0])
#define STDOUT (&__iob_func () [1])
#define STDERR (&__iob_func () [2])
Causes Easyx to appear in VS2015 RC for an external symbol __iob_func error that cannot be resolved by LNK 2019
The static library link has error __iob_func, and redefining the __iob_func array will fix the problem.
Workaround: Add the following definition to the Easyx.h file header :
#ifdef __cplusplus extern " C " #endif FILE __iob_func[3] = {__acrt_iob_func (0), __acrt_iob_func (1), __acrt_iob_func ( 2)};
After solving the problem, the second question is gone.
Workaround from HTTP://TIEBA.BAIDU.COM/P/4034517162?QQ-PF-TO=PCQQ.C2C
Easyx the latest version of the problem solved on VS2015