Hi,

g++ -DHAVE_CONFIG_H -I. -I. -I../../../../src -I./.. -I../../../../src -isystem /usr/X11R6/include -g -O -Wno-non-template-friend -ftemplate-depth-30 -W -Wall -c form_aboutlyx.C -Wp,-MD,.deps/form_aboutlyx.TPlo
form_aboutlyx.C:17: syntax error before `*'
form_aboutlyx.C:22: syntax error before `*'
form_aboutlyx.C:25: ANSI C++ forbids declaration `obj' with no type
form_aboutlyx.C:25: conflicting types for `int obj'
form_aboutlyx.C:20: previous declaration as `struct FL_OBJECT * obj'
form_aboutlyx.C:25: initialization to `int' from `FL_OBJECT *' lacks a cast
form_aboutlyx.C:26: ANSI C++ forbids declaration `fl_set_object_lsize' with no type
form_aboutlyx.C:26: `int fl_set_object_lsize' redeclared as different kind of symbol
/usr/X11R6/include/X11/forms.h:1135: previous declaration of `void fl_set_object_lsize(FL_OBJECT *, int)'
form_aboutlyx.C:26: initializer list being treated as compound expression
form_aboutlyx.C:27: ANSI C++ forbids declaration `fl_set_object_gravity' with no type
form_aboutlyx.C:27: `int fl_set_object_gravity' redeclared as different kind of symbol
/usr/X11R6/include/X11/forms.h:1130: previous declaration of `void fl_set_object_gravity(FL_OBJECT *, unsigned int, unsigned int)'
form_aboutlyx.C:27: initializer list being treated as compound expression
form_aboutlyx.C:28: ANSI C++ forbids declaration `c_str' with no type
form_aboutlyx.C:28: initialization to `int' from `const char *' lacks a cast
form_aboutlyx.C:29: syntax error before `->'
form_aboutlyx.C:30: passing `int' to argument 1 of `scex(const char *)' lacks a cast
form_aboutlyx.C:30: ANSI C++ forbids declaration `fl_set_object_shortcut' with no type
form_aboutlyx.C:30: `int fl_set_object_shortcut' redeclared as different kind of symbol
/usr/X11R6/include/X11/forms.h:1161: previous declaration of `void fl_set_object_shortcut(FL_OBJECT *, const char *, int)'
form_aboutlyx.C:30: initializer list being treated as compound expression
form_aboutlyx.C:31: ANSI C++ forbids declaration `fl_set_object_lsize' with no type
form_aboutlyx.C:31: redefinition of `int fl_set_object_lsize'
form_aboutlyx.C:26: `int fl_set_object_lsize' previously defined here
form_aboutlyx.C:31: initializer list being treated as compound expression
form_aboutlyx.C:32: ANSI C++ forbids declaration `fl_set_object_gravity' with no type
form_aboutlyx.C:32: redefinition of `int fl_set_object_gravity'
form_aboutlyx.C:27: `int fl_set_object_gravity' previously defined here
form_aboutlyx.C:32: initializer list being treated as compound expression
form_aboutlyx.C:33: `C_FormBaseCancelCB' was not declared in this scope
form_aboutlyx.C:33: ANSI C++ forbids declaration `fl_set_object_callback' with no type
form_aboutlyx.C:33: `int fl_set_object_callback' redeclared as different kind of symbol
/usr/X11R6/include/X11/forms.h:1305: previous declaration of `void (* fl_set_object_callback(FL_OBJECT *, void (*)(FL_OBJECT *, long int), long int))(FL_OBJECT *, long int)'
form_aboutlyx.C:33: initializer list being treated as compound expression
form_aboutlyx.C:34: syntax error before `->'
form_aboutlyx.C:35: ANSI C++ forbids declaration `fl_set_object_boxtype' with no type
form_aboutlyx.C:35: `int fl_set_object_boxtype' redeclared as different kind of symbol
/usr/X11R6/include/X11/forms.h:1114: previous declaration of `void fl_set_object_boxtype(FL_OBJECT *, int)'
form_aboutlyx.C:35: initializer list being treated as compound expression
form_aboutlyx.C:36: ANSI C++ forbids declaration `fl_set_object_lsize' with no type
form_aboutlyx.C:36: redefinition of `int fl_set_object_lsize'
form_aboutlyx.C:31: `int fl_set_object_lsize' previously defined here
form_aboutlyx.C:36: initializer list being treated as compound expression
form_aboutlyx.C:37: ANSI C++ forbids declaration `fl_set_object_gravity' with no type
form_aboutlyx.C:37: redefinition of `int fl_set_object_gravity'
form_aboutlyx.C:32: `int fl_set_object_gravity' previously defined here
form_aboutlyx.C:37: initializer list being treated as compound expression
form_aboutlyx.C:38: ANSI C++ forbids declaration `fl_set_object_resize' with no type
form_aboutlyx.C:38: `int fl_set_object_resize' redeclared as different kind of symbol
/usr/X11R6/include/X11/forms.h:1124: previous declaration of `void fl_set_object_resize(FL_OBJECT *, unsigned int)'
form_aboutlyx.C:38: initializer list being treated as compound expression
form_aboutlyx.C:39: ANSI C++ forbids declaration `fl_end_form' with no type
form_aboutlyx.C:39: new declaration `int fl_end_form()'
/usr/X11R6/include/X11/forms.h:858: ambiguates old declaration `void fl_end_form()'
form_aboutlyx.C:40: syntax error before `->'
gmake[5]: *** [form_aboutlyx.lo] Error 1
gmake[5]: Leaving directory `/home/lahaye/SOFTWARE/lyx-devel/src/frontends/xforms/forms'
gmake[4]: *** [all-recursive] Error 1
gmake[4]: Leaving directory `/home/lahaye/SOFTWARE/lyx-devel/src/frontends/xforms'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/home/lahaye/SOFTWARE/lyx-devel/src/frontends'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/home/lahaye/SOFTWARE/lyx-devel/src'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/home/lahaye/SOFTWARE/lyx-devel/src'
gmake: *** [all-recursive] Error 1

My form_aboutlyx.C is attached.

Regards,
Rob
// File generated by fdesign from form_aboutlyx.fd
// and modified by fdfix.sh for use by LyX.

// WARNING! All changes made to this file will be lost!

// This file is part of LyX, the document processor.
// Licence details can be found in the file COPYING.

#include <config.h>
#include "forms_gettext.h"
#include "gettext.h"
#include FORMS_H_LOCATION
#include <stdlib.h>
#include "form_aboutlyx.h"


FD_aboutlyx * build_aboutlyx(void * parent)
{
        char const * c_str;
        FL_OBJECT * obj;

        FD_aboutlyx *fdui = new FD_aboutlyx;
        fdui->form = fl_bgn_form(FL_NO_BOX, 395, 365);
        fdui->form->u_vdata = parent;
        obj = fl_add_box(FL_FLAT_BOX, 0, 0, 395, 365, "");
        fl_set_object_lsize(obj, FL_NORMAL_SIZE);
        fl_set_object_gravity(obj, FL_NorthWest, FL_SouthEast);
        c_str = _("Close|^[");
        fdui->button_close = obj = fl_add_button(FL_NORMAL_BUTTON, 300, 335, 90, 25, 
idex(c_str));
        fl_set_button_shortcut(obj, scex(c_str), 1);
        fl_set_object_lsize(obj, FL_NORMAL_SIZE);
        fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
        fl_set_object_callback(obj, C_FormBaseCancelCB, 0);
        fdui->tabfolder = obj = fl_add_tabfolder(FL_TOP_TABFOLDER, 0, 5, 395, 325, 
_("Tabbed folder"));
        fl_set_object_boxtype(obj, FL_FRAME_BOX);
        fl_set_object_lsize(obj, FL_NORMAL_SIZE);
        fl_set_object_gravity(obj, FL_NorthWest, FL_SouthEast);
        fl_set_object_resize(obj, FL_RESIZE_ALL);
        fl_end_form();
        fdui->form->fdui = fdui;
        return fdui;
}


FD_aboutlyx_version * build_aboutlyx_version(void * parent)
{
        FL_OBJECT * obj;

        FD_aboutlyx_version *fdui = new FD_aboutlyx_version;
        fdui->form = fl_bgn_form(FL_NO_BOX, 395, 300);
        fdui->form->u_vdata = parent;
        obj = fl_add_box(FL_FLAT_BOX, 0, 0, 395, 300, "");
        fl_set_object_lsize(obj, FL_NORMAL_SIZE);
        fl_set_object_gravity(obj, FL_NorthWest, FL_SouthEast);
        fdui->browser_version = obj = fl_add_browser(FL_NORMAL_BROWSER, 5, 5, 385, 
290, "");
        fl_set_object_lsize(obj, FL_NORMAL_SIZE);
        fl_set_object_lalign(obj, FL_ALIGN_CENTER);
        fl_set_object_gravity(obj, FL_NorthWest, FL_SouthEast);
        fl_set_object_callback(obj, C_FormBaseInputCB, 0);
        fl_end_form();
        fdui->form->fdui = fdui;
        return fdui;
}


FD_aboutlyx_credits * build_aboutlyx_credits(void * parent)
{
        FL_OBJECT * obj;

        FD_aboutlyx_credits *fdui = new FD_aboutlyx_credits;
        fdui->form = fl_bgn_form(FL_NO_BOX, 395, 300);
        fdui->form->u_vdata = parent;
        obj = fl_add_box(FL_FLAT_BOX, 0, 0, 395, 300, "");
        fl_set_object_gravity(obj, FL_NorthWest, FL_SouthEast);
        fdui->browser_credits = obj = fl_add_browser(FL_NORMAL_BROWSER, 5, 5, 385, 
290, "");
        fl_set_object_lsize(obj, FL_NORMAL_SIZE);
        fl_set_object_lalign(obj, FL_ALIGN_CENTER);
        fl_set_object_gravity(obj, FL_NorthWest, FL_SouthEast);
        fl_set_object_callback(obj, C_FormBaseInputCB, 0);
        fl_end_form();
        fdui->form->fdui = fdui;
        return fdui;
}


FD_aboutlyx_license * build_aboutlyx_license(void * parent)
{
        FL_OBJECT * obj;

        FD_aboutlyx_license *fdui = new FD_aboutlyx_license;
        fdui->form = fl_bgn_form(FL_NO_BOX, 395, 300);
        fdui->form->u_vdata = parent;
        obj = fl_add_box(FL_FLAT_BOX, 0, 0, 395, 300, "");
        fl_set_object_gravity(obj, FL_NorthWest, FL_SouthEast);
        fdui->browser_license = obj = fl_add_browser(FL_NORMAL_BROWSER, 5, 5, 385, 
290, "");
        fl_set_object_lsize(obj, FL_NORMAL_SIZE);
        fl_set_object_lalign(obj, FL_ALIGN_CENTER);
        fl_set_object_gravity(obj, FL_NorthWest, FL_SouthEast);
        fl_set_object_callback(obj, C_FormBaseInputCB, 0);
        fl_end_form();
        fdui->form->fdui = fdui;
        return fdui;
}

Reply via email to