× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hmm.. the only thing I could think of off the top of my head would be to try
BOOL and Bool and see if it's a define, although you are right, bool should
be a c data type.  std::bool ?

Regards,

Jim Langston

-----Original Message-----
From: John Fogarty [mailto:jfogarty@datajunction.com]

When using:

 CRTCPPMOD MODULE(MYLIB/YY) SRCSTMF('yy.cpp') LANGLVL(*ANSI)
CRTCPPMOD MODULE(MYLIB/YY) SRCSTMF('yy.cpp') LANGLVL(*EXTENDED)
    or
CRTCPPMOD MODULE(MYLIB/YY) SRCSTMF('yy.cpp') LANGLVL(*COMPAT)

On a file of the form:

   // This is a C++ file.
   bool xxx;

yy.cpp(4:6) :error GDW3320  Syntax error - found "bool xxx" : "bool" is not
a type name.
This is pretty basic but it doesn't work and there is no reason I can think
of.  Any clues?

ILE C++ compiler v4r4 running on OS/400 v4r5.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.