[XForms] Libraries: small C++ bug

L. D. Marks ldm at risc4.numis.nwu.edu
Wed Sep 3 18:33:20 EDT 2003


I did a little more checking, and it looks like our code was defining
"on" itself, and since this was in an include that came before forms.h
this created problems. (We probably should not be using "on" - maybe
you might want to think about "forms_on" to be more robust. The
earlier forms header files did not have the "on" defined.)

On Wed, 3 Sep 2003, [iso-8859-1] Lars Gullik Bjønnes wrote:

> "L. D. Marks" <ldm at risc4.numis.nwu.edu> writes:
>
> | To subscribers of the xforms list
> >
> >
> | In browser.h the definitions:
> >
> | FL_EXPORT void fl_set_browser_vscrollbar(
> |                 FL_OBJECT *ob,
> |                 int on
> |                 );
> >
> | FL_EXPORT void fl_set_browser_hscrollbar(
> |                 FL_OBJECT *ob,
> |                 int on
> |                 );
> >
> | are incompatible with at least some C++ where "on"
> | is predefined.
>
> Predefined as what?
> This is certainly not Standard C++.
>
> Can you should where/how you get that error?
> (and the error itself)
>
> --
> 	Lgb
>

-----------------------------------------------
Laurence Marks
Department of Materials Science and Engineering
MSE Rm 2036 Cook Hall
2225 N Campus Drive
Northwestern University
Evanston, IL 60201, USA
Tel: (847) 491-3996 Fax: (847) 491-7820
mailto:ldm at risc4.numis.nwu.edu
http://www.numis.nwu.edu
-----------------------------------------------





More information about the Xforms mailing list