Menu

linux compile errors

Help
bof90
2007-08-07
2013-06-05
  • bof90

    bof90 - 2007-08-07

    Hi -
    compiling on (gentoo) linux, kernel 2.6.19, gcc-4.1.1-r3, wxGTK-2.6.3.3, I get errors. The error comes when the build script runs 'make' in the /MUTE/otherApps/fileSharing/userInterface/wxWindows dir:

    ------
    fabbies@thinbert:/usr/local/src/MUTE_fileSharing-0.5.1_UnixSource/MUTE/otherApps/fileSharing/userInterface/wxWindows $ make
    g++  -g -c -I../../../../.. -DLINUX -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA   -o GuiApp.o GuiApp.cpp
    GuiApp.cpp: In function ‘char* getRandomSeed()’:
    GuiApp.cpp:233: error: conversion from ‘const char [22]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:690: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:680: note:                 wxString::wxString(int) <near match>
    GuiApp.cpp:233: error: conversion from ‘const char [16]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:690: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:680: note:                 wxString::wxString(int) <near match>
    GuiApp.cpp:233: error: conversion from ‘const char [1]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:690: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:680: note:                 wxString::wxString(int) <near match>
    GuiApp.cpp:238: error: cannot convert ‘const wxChar*’ to ‘const char*’ for argument ‘1’ to ‘char* stringDuplicate(const char*)’
    GuiApp.cpp: In function ‘char* getUserString(const char*, const char*)’:
    GuiApp.cpp:257: error: conversion from ‘const char*’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:690: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:680: note:                 wxString::wxString(int) <near match>
    GuiApp.cpp:257: error: conversion from ‘const char*’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:690: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:680: note:                 wxString::wxString(int) <near match>
    GuiApp.cpp:257: error: conversion from ‘const char [1]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:690: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:680: note:                 wxString::wxString(int) <near match>
    GuiApp.cpp:262: error: cannot convert ‘const wxChar*’ to ‘const char*’ for argument ‘1’ to ‘char* stringDuplicate(const char*)’
    GuiApp.cpp: In constructor ‘KeyGenDialog::KeyGenDialog()’:
    GuiApp.cpp:282: error: conversion from ‘const char*’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:690: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:680: note:                 wxString::wxString(int) <near match>
    GuiApp.cpp:291: error: conversion from ‘const char*’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:690: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:680: note:                 wxString::wxString(int) <near match>
    GuiApp.cpp:301: error: conversion from ‘const char [3]’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:690: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:680: note:                 wxString::wxString(int) <near match>
    GuiApp.cpp: In member function ‘void KeyGenDialog::OnDone(wxCommandEvent&)’:
    GuiApp.cpp:333: error: conversion from ‘char*’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:690: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:680: note:                 wxString::wxString(int) <near match>
    GuiApp.cpp: In member function ‘virtual bool GuiApp::OnInit()’:
    GuiApp.cpp:508: error: conversion from ‘const char*’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:690: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:680: note:                 wxString::wxString(int) <near match>
    GuiApp.cpp:508: error: conversion from ‘const char*’ to ‘const wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:690: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:680: note:                 wxString::wxString(int) <near match>
    GuiApp.cpp:580: error: conversion from ‘const char*’ to ‘wxString’ is ambiguous
    /usr/include/wx-2.6/wx/string.h:690: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:680: note:                 wxString::wxString(int) <near match>
    GuiApp.cpp:580: error: conversion from ‘const char*’ to ‘wxString’ is ambiguous
    .....
    .....
    plus more of the same
    .....
    .....
    make: *** [GuiApp.o] Error 1

    could this a version issue with wxWindows, anyone help?

    cheers
    Bof
    --

     
    • bof90

      bof90 - 2007-08-08

      got to the bottom of this, as follows:

      my wxGTK was built with unicode support, this seems to break the mute build process. I (recompiled wxGTK WITHOUT unicode support, mute then built fine. On Gentoo, this can be done by typing (as root):
      ---
      USE="-unicode" emerge -v --ask wxGTK
      ---

      you can check if your wxGTK installation has unicode support (again on gentoo) with
      ---
      equery uses wxGTK
      ---
      ('unicode' appears with a '+' before it)

      AFTER building mute and checking that it runs ok, you can recompile wxGTK WITH unicode support if you need to - mute still runs fine. I had to do this because some apps I'd already built that used wxGTK were broken without the unicode support. To recompile with unicode support on gentoo this would be
      ---
      USE="unicode" emerge -v --ask wxGTK
      ---

      or just 'emerge -v --ask wxGTK' assuming that 'unicode' is set as a global 'use' flag or specifically set for wxGTK in /etc/portage/package.use

      cheers
      bof
      --

       

Log in to post a comment.