"overriding, modifier of various types" in VS2010

I am trying to compile some code that I downloaded in visual studio. The code was intended for msvc 6, and I imported it into VS2010. The code is intended to support ASIO for labview by compiling a DLL. see here for all the code.

When creating an error, the following error occurs: "error C2373: '_ pctype': override, modifiers of a different type.

The following is a snippet of code:

unsigned short _Ints[ 512 ];
unsigned short *_pctype = _Ints;

If someone will refer to the code package from the link I provided, this is from the GenMonCIN.c file

+4
source share
1 answer

The error message is trying to tell you that _pctype already defined somewhere else.

It appears that _pctype is an identifier used by Visual Studio since at least version 2005.

_pctype , _pwctype , _wctype , _mbctype , _mbcasemap

These global variables contain information used by character classification functions. They are intended for internal use only.

Please, never select names with leading underscores in the namespace area , they are reserved for implementation. The person who wrote the library obviously did not know this, and now you are screwed.

+8
source

Source: https://habr.com/ru/post/1399479/


All Articles