Skip to main content

VBC 6.0: Getting compiler errors using MS VC .NET 2002 for stream operators

  • February 16, 2013
  • 0 replies
  • 0 views

Problem:

  • Product Name: VisiBroker C
  • Product Version: 6.0
  • Product Component: Compiling with MS Visual C .NET 2002
  • Platform/OS Version: Windows 2000, XP

Getting the following error messages when compiling generated code that compiled correctly with previous VisiBroker versions and compilers:

c:\\vbroker6.0\\include\\viostrm.h(88) : error C2535: "VISistream &VISistream::operator >>(unsigned short &)" : member function already defined or declared
c:\\vbroker6.0\\include\\viostrm.h(70) : see declaration of "VISistream::operator`>>""
c:\\vbroker6.0\\include\\viostrm.h(115) : error C2535: "VISistream &VISistream::get(wchar_t *,unsigned int)" : member function already defined or declared
c:\\vbroker6.0\\include\\viostrm.h(109) : see declaration of "VISistream::get"
... 

Resolution:

An additional compiler option is required for VisiBroker compilation with MS Visual Studio .NET 2002

The option is "/Zc:wchar_t" and it should be part of the flags. This is required for defining the native wide character set for the binary.

Please check out Microsoft Developer Network for more information about this flag.


#c
#C
#COMPILER
#Security
#wchar
#VisiBroker