can't compile 1.1

Carlos Guâno Grohmann carlos.grohmann at gmail.com
Wed Jul 6 18:34:33 BST 2005


So, I installed some other wx packages and tried to compile 1.1cvs again. 
This time I get no errors about OpenGl, but I get these:

mainfrm.h: At global scope:
mainfrm.h:253: error: invalid type `const char[1]' for default argument to `
   wxString'
mainfrm.h:236: error: invalid type `const char[1]' for default argument to `
   wxString'
mainfrm.h: In member function `wxString MainFrm::GetTabMsg(int)':
mainfrm.h:241: error: call of overloaded `wxString(const char*)' is ambiguous
/usr/include/wx-2.5/wx/string.h:676: error: candidates are: 
   wxString::wxString(const wxWCharBuffer&) <near match>
/usr/include/wx-2.5/wx/string.h:660: error:                 
   wxString::wxString(wchar_t, unsigned int) <near match>
/usr/include/wx-2.5/wx/string.h:657: error:                 
   wxString::wxString(const wxString&) <near match>
/usr/include/wx-2.5/wx/string.h:649: error:                 
   wxString::wxString(int) <near match>
mainfrm.h:241: error: no matching function for call to `wxString::Replace(const 
   char[3], const char[2])'
/usr/include/wx-2.5/wx/string.h:1047: error: candidates are: size_t 
   wxString::Replace(const wxChar*, const wxChar*, bool)
mainfrm.h:241: error: no matching function for call to `wxString::Replace(const 
   char[2], const char[2])'
/usr/include/wx-2.5/wx/string.h:1047: error: candidates are: size_t 
   wxString::Replace(const wxChar*, const wxChar*, bool)
In file included from aven.cc:41:
/usr/include/wx-2.5/wx/display.h: In member function `void 
   wxArrayVideoModes::push_back(const _wxObjArraywxArrayVideoModes&)':
/usr/include/wx-2.5/wx/display.h:29: warning: declaration of `Item' shadows a 
   member of `this'
aven.cc: In member function `virtual bool Aven::OnInit()':
aven.cc:71: error: cannot convert `wxChar**' to `char* const*' for argument `1' 
   to `void msg_init(char* const*)'
aven.cc:78: error: conversion from `const char*' to `const wxString' is 
   ambiguous
/usr/include/wx-2.5/wx/string.h:660: error: candidates are: 
   wxString::wxString(wchar_t, unsigned int) <near match>
/usr/include/wx-2.5/wx/string.h:649: error:                 
   wxString::wxString(int) <near match>



any ideas?

tks

On 7/5/05, Olly Betts <olly at survex.com> wrote:
> On Tue, Jul 05, 2005 at 05:41:47PM -0300, Carlos Gu?no Grohmann wrote:
> > I wnated to try the 1.10cvs version of survex, but couldn't. I get
> > these errors:
> >
> > #error wxWindows must be built with wxUSE_GLCANVAS set to 1
> 
> Survex 1.1 requires OpenGL support in wxWindows.  This error means that
> the build of wxWindows you're using doesn't have OpenGL support enabled.
> 
> I'm not familiar with recent versions of Slackware - there may be a
> suitable wxWindows package or you may have to build your own.  To get
> OpenGL support, you (or the person who made the package) need to build
> wxWindows using: ./configure --with-opengl
> 
> > I running Slackware Linux 10.1, and survex 1.0.35 compiled fine.
> 
> Survex 1.0 doesn't require OpenGL.
> 
> Cheers,
>     Olly
> 


-- 
+-----------------------------------------------------------+
              Carlos Henrique Grohmann - Guano   
  Geologist M.Sc  - Doctorate Student at IGc-USP - Brazil
Linux User #89721  - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+



More information about the Survex mailing list