Обсуждение: Error compiling pgAdmin3 from CVS

Поиск
Список
Период
Сортировка

Error compiling pgAdmin3 from CVS

От
Jean-Michel POURE
Дата:
Dear friends,

I feel stupid to say I cannot compile pgAdmin3. Everytime I try, a different
problem arises. Now, it fails at the very begining.

I use wxWindows 2.4 stock distribution.
Would someone be so kind to help me.

Cheers,
Jean-Michel

*******************************************************************************

include/pgSchema.h:28: appel du surchargé «wxString(const char[1])» est
   ambigu
/usr/local/include/wx/string.h:320: candidates are: wxString::wxString(const
   wxWCharBuffer&) <near match>
/usr/local/include/wx/string.h:303:
wxString::wxString(wchar_t,
   unsigned int = 1) <near match>
/usr/local/include/wx/string.h:288:                 wxString::wxString(const
   wxString&) <near match>
/usr/local/include/wx/string.h:281:                 wxString::wxString(int)
   <near match>
pgAdmin3.cpp: Dans member function « virtual bool pgAdmin3::OnInit() »:
pgAdmin3.cpp:144: ne peut convertir « const char* » à « const wxChar* »
   pour l'argument « 1 » vers « void wxLogFatalError(const wxChar*, ...) »
make[2]: *** [pgAdmin3.o] Erreur 1
make[2]: Quitte le répertoire `/home/pgadmin/pgadmin3/src'
make[1]: *** [all-recursive] Erreur 1
make[1]: Quitte le répertoire `/home/pgadmin/pgadmin3'
make: *** [all] Erreur 2


Re: Error compiling pgAdmin3 from CVS

От
"Dave Page"
Дата:
Hi Jean-Michel

> -----Original Message-----
> From: Jean-Michel POURE [mailto:jm.poure@freesurf.fr]
> Sent: 30 May 2003 16:11
> To: pgadmin-hackers
> Subject: [pgadmin-hackers] Error compiling pgAdmin3 from CVS
>
>
> Dear friends,
>
> I feel stupid to say I cannot compile pgAdmin3.

Don't feel stupid - it's not like this is widely tested or anything yet. Not to mention you come from a VB background,
notC. 

> Everytime I
> try, a different
> problem arises. Now, it fails at the very begining.
>
> I use wxWindows 2.4 stock distribution.
> Would someone be so kind to help me.
>
> Cheers,
> Jean-Michel
>
> **************************************************************
> *****************
>
> include/pgSchema.h:28: appel du surchargé «wxString(const
> char[1])» est
>    ambigu
> /usr/local/include/wx/string.h:320: candidates are:
> wxString::wxString(const
>    wxWCharBuffer&) <near match>
> /usr/local/include/wx/string.h:303:
> wxString::wxString(wchar_t,
>    unsigned int = 1) <near match>
> /usr/local/include/wx/string.h:288:
> wxString::wxString(const
>    wxString&) <near match>
> /usr/local/include/wx/string.h:281:
> wxString::wxString(int)
>    <near match>


Not sure about that - it compiles fine here so I guess it's just your compiler being a little more verbose. I'm
guessingit's a warning not an error as compilation seems to continue? 

> pgAdmin3.cpp: Dans member function « virtual bool
> pgAdmin3::OnInit() »:
> pgAdmin3.cpp:144: ne peut convertir « const char* » à « const
> wxChar* »
>    pour l'argument « 1 » vers « void wxLogFatalError(const
> wxChar*, ...) »

That is one of the new __() macros. Your system doesn't seem to want to use const char* __("String Here") in place of a
wxChar*wxT("String Here"). 

Again, compiles fine on Windows XP and Slackware 9 here. What compiler/libs etc do you have? My Slackware box is
runninggcc 3.2.2 and glibc 2.3.1 

Regards, Dave