Am Friday 01 August 2008 schrieb Pavel Sanda:
> Dov Feldstern wrote:
> > Abdelrazak Younes wrote:
> >> Dov Feldstern wrote:
> >>> Hi!
> >>>
> >>> Linux, Qt 4.2.1:
> >>>
> >>> frontends/qt4/.libs/liblyxqt4.a(GuiApplication.o): In function
> >>> `lyx::frontend::GuiApplication::setGuiLanguage()':
> >>> /home/dovf/lyx-trunk-new/src/frontends/qt4/GuiApplication.cpp:1031:
> >>> undefined reference to `lyx::Messages::main_lang_'
> >>> collect2: ld returned 1 exit status
> >>> make[4]: *** [lyx] Error 1
> >>
> >> I don't understand. main_lang_ is declared here:
> >> src\support\Messages.cpp(87):string Messages::main_lang_;
> >> Are you sure support/ was correctly recompiled?
> >> Abdel.
> >
> > Hmm, looks like it isn't... I checked and saw that there was a file
> > src/support/Messages.o; but it doesn't seem to contain (checked with nm
> > and with strings) and mention of 'lang'. So I deleted it, and it wasn't
> > even rebuilt. If I'm the only one seeing this, maybe it's my problem ---
> > I'll try from a clean install again. Has anyone successfully compiled
> > trunk recently on linux, with gcc and with autotools?
>
> here no problem. try make distclean.
>
> pavel

You have to define somewhere (in e.g. GuiApplication.cpp)
        namespace lyx {
             std::string Message::main_lang_;
        }

because this variable is declared static in class mMessage
        Kornel

-- 
Kornel Benko
[EMAIL PROTECTED]

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to