Easyx the latest version of the problem solved on VS2015

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.