Error compiling pgAdmin3 from CVS
Error compiling pgAdmin3 from CVS
От:
Jean-Michel POURE <jm.poure@freesurf.fr>
Дата:
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&) /usr/local/include/wx/string.h:303: wxString::wxString(wchar_t, unsigned int = 1) /usr/local/include/wx/string.h:288: wxString::wxString(const wxString&) /usr/local/include/wx/string.h:281: wxString::wxString(int) 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" <dpage@vale-housing.co.uk>
Дата:
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, not C.
> 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&)
> /usr/local/include/wx/string.h:303:
> wxString::wxString(wchar_t,
> unsigned int = 1)
> /usr/local/include/wx/string.h:288:
> wxString::wxString(const
> wxString&)
> /usr/local/include/wx/string.h:281:
> wxString::wxString(int)
>
Not sure about that - it compiles fine here so I guess it's just your compiler being a little more verbose. I'm guessing it'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 running gcc 3.2.2 and glibc 2.3.1
Regards, Dave