I have a VC++ application that uses CVI components. It links fine when VC++ is in debug mode, but when I change to Release mode I get link errors.
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\mbstring.h(117) : error C2375: 'CVI__mbsbtype' : redefinition; different linkage
C:\Program Files\National Instruments\MeasurementStudio\CVI\include\mbsupp.h(73) : see declaration of 'CVI__mbsbtype'
I looked up the error on MSDN site and it means that a different linkage specified was being used such as static vs. extern.
VC++ uses the following -- CRTIMP int __cdecl _mbsbtype(const unsigned char *, size_t);
CVI uses the following -- int CVIANSI _mbsbtype(const unsigned char *, size_t);
I am including "toolbox.h" and <
afxwin.h> ,
,
,
Any help would be greatly appreciated.
thanks,
Lorrie Smith
lorrie.smith@itt.com