On Mar 11, 2006, at 4:26 AM, Abdelrazak Younes wrote:

Abdelrazak Younes a écrit :
Bennett Helm a écrit :
Dialogs.C:275: error: expected type-specifier before 'ControlRef'
Dialogs.C:275: error: expected `)' before 'ControlRef'
Dialogs.C:275: error: no matching function for call to 'lyx::frontend::Dialog::setController(int*)' ../../../src/frontends/controllers/Dialog.h:105: note: candidates are: void lyx::frontend::Dialog::setController (lyx::frontend::Dialog::Controller*)
make[2]: *** [Dialogs.lo] Error 1
I don't know yet about this one.

I don't understand this one because "ControlRef.h" is included at the top of "Dialog.C". Please verify that you can open "ControlRef.h" and that it is not empty. It could be also that CONTROLREF_H is defined elsewhere. Please do a

grep -r 'CONTROLREF_H' src

for the top-level lyx directory. If you find nothing, just comment out line 275 for now.

grep -r 'CONTROLREF_H' src returns:

src/frontends/controllers/.svn/text-base/ControlRef.h.svn- base:#ifndef CONTROLREF_H src/frontends/controllers/.svn/text-base/ControlRef.h.svn- base:#define CONTROLREF_H src/frontends/controllers/.svn/text-base/ControlRef.h.svn- base:#endif // CONTROLREF_H
src/frontends/controllers/ControlRef.h:#ifndef CONTROLREF_H
src/frontends/controllers/ControlRef.h:#define CONTROLREF_H
src/frontends/controllers/ControlRef.h:#endif // CONTROLREF_H

Angus suggested:

A better test:

immediately before the 'include "ControlRef.h"', add the lines:

#ifdef CONTROLREF_H
#error Oops!
#endif

Doing that gives no "Oops!".

With current svn (revision 13371), after I comment out line 275, I can compile to the final linking stage, which then bombs for what I assume are the same reasons others have had problems compiling with gcc-4.0.1(2?).

Bennett

Reply via email to