IBMCPP Include Files Generate Errors

If your source code has the extension .c and you are including some OCL #includes, then the compiler may generate many errors which seem to come from the IBMCPP include files. These errors are generated because the compiler assumes that .c files only contain C code, not C++, and the OCL include files require the compiler to be in the C++ mode.

To get around this problem, use the compiler flag /Tdp to tell the VAC++ to treat all files as C++ files.

Some of the errors you may be seeing include the following:

imsgtext.hpp(24:1) : error EDC0166: Definition of function class requires parentheses. imsgtext.hpp(24:7) : error EDC0275: Unexpected text IMessageText encountered. imsgtext.hpp(27:19) : error EDC0046: Syntax error. imsgtext.hpp(28:33) : error EDC0045: Undeclared identifier messageFileName. imsgtext.hpp(29:33) : error EDC0045: Undeclared identifier textInsert1.
Note:
See also How to Compile

[Home] [Index]
Page generated by Stéphane Charette on 1997 November 02
Open Class Library (OCL) FAQ © Stéphane Charette, 1997