Project

General

Profile

Bug #104

wxgtk 2.9, CommandLineInterface, ambiguous overloaded function calls

Added by Anonymous over 8 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Low
Assignee:
-
Target version:
-
Start date:
02/20/2015
Due date:
% Done:

0%


Description

As reported by m0Ray on GitHub

~/buildtmp/CipherShed/src> LIBS="-ldl" make
[skip]
Compiling CommandLineInterface.cpp
CommandLineInterface.cpp: In constructor ‘CipherShed::CommandLineInterface::CommandLineInterface(wxCmdLineParser&, CipherShed::UserInterfaceType::Enum)’:
CommandLineInterface.cpp:383:45: error: call of overloaded ‘FilesystemPath(wxString&)’ is ambiguous
CommandLineInterface.cpp:383:45: note: candidates are:
In file included from /home/m0ray/buildtmp/CipherShed/src/Platform/Directory.h:13:0,
                 from /home/m0ray/buildtmp/CipherShed/src/Platform/Platform.h:15,
                 from /home/m0ray/buildtmp/CipherShed/src/Core/CoreBase.h:12,
                 from /home/m0ray/buildtmp/CipherShed/src/Core/Core.h:12,
                 from CommandLineInterface.cpp:12:
/home/m0ray/buildtmp/CipherShed/src/Platform/FilesystemPath.h:39:3: note: CipherShed::FilesystemPath::FilesystemPath(std::wstring)
/home/m0ray/buildtmp/CipherShed/src/Platform/FilesystemPath.h:37:3: note: CipherShed::FilesystemPath::FilesystemPath(std::string)
CommandLineInterface.cpp:474:57: error: call of overloaded ‘FilesystemPath(wxString)’ is ambiguous
CommandLineInterface.cpp:474:57: note: candidates are:
In file included from /home/m0ray/buildtmp/CipherShed/src/Platform/Directory.h:13:0,
                 from /home/m0ray/buildtmp/CipherShed/src/Platform/Platform.h:15,
                 from /home/m0ray/buildtmp/CipherShed/src/Core/CoreBase.h:12,
                 from /home/m0ray/buildtmp/CipherShed/src/Core/Core.h:12,
                 from CommandLineInterface.cpp:12:
/home/m0ray/buildtmp/CipherShed/src/Platform/FilesystemPath.h:39:3: note: CipherShed::FilesystemPath::FilesystemPath(std::wstring)
/home/m0ray/buildtmp/CipherShed/src/Platform/FilesystemPath.h:37:3: note: CipherShed::FilesystemPath::FilesystemPath(std::string)
CommandLineInterface.cpp: In member function ‘CipherShed::VolumeInfoList CipherShed::CommandLineInterface::GetMountedVolumes(const wxString&) const’:
CommandLineInterface.cpp:565:35: error: call of overloaded ‘wxString(CipherShed::VolumePath&)’ is ambiguous
CommandLineInterface.cpp:565:35: note: candidates are:
In file included from /usr/include/wx-2.9/wx/memory.h:16:0,
                 from /usr/include/wx-2.9/wx/object.h:20,
                 from /usr/include/wx-2.9/wx/wx.h:16,
                 from SystemPrecompiled.h:9,
                 from System.h:14,
                 from CommandLineInterface.cpp:9:
/usr/include/wx-2.9/wx/string.h:1375:5: note: wxString::wxString(const string&)
/usr/include/wx-2.9/wx/string.h:1365:5: note: wxString::wxString(const wxStdWideString&)
CommandLineInterface.cpp:569:41: error: call of overloaded ‘wxString(CipherShed::DirectoryPath&)’ is ambiguous
CommandLineInterface.cpp:569:41: note: candidates are:
In file included from /usr/include/wx-2.9/wx/memory.h:16:0,
                 from /usr/include/wx-2.9/wx/object.h:20,
                 from /usr/include/wx-2.9/wx/wx.h:16,
                 from SystemPrecompiled.h:9,
                 from System.h:14,
                 from CommandLineInterface.cpp:9:
/usr/include/wx-2.9/wx/string.h:1375:5: note: wxString::wxString(const string&)
/usr/include/wx-2.9/wx/string.h:1365:5: note: wxString::wxString(const wxStdWideString&)
CommandLineInterface.cpp:570:37: error: call of overloaded ‘wxString(CipherShed::DirectoryPath&)’ is ambiguous
CommandLineInterface.cpp:570:37: note: candidates are:
In file included from /usr/include/wx-2.9/wx/memory.h:16:0,
                 from /usr/include/wx-2.9/wx/object.h:20,
                 from /usr/include/wx-2.9/wx/wx.h:16,
                 from SystemPrecompiled.h:9,
                 from System.h:14,
                 from CommandLineInterface.cpp:9:
/usr/include/wx-2.9/wx/string.h:1375:5: note: wxString::wxString(const string&)
/usr/include/wx-2.9/wx/string.h:1365:5: note: wxString::wxString(const wxStdWideString&)
make[1]: *** [CommandLineInterface.o] Error 1
make: *** [all] Error 2

~/buildtmp/CipherShed/src> uname -a
Linux m0ray.unison.local 3.7.10-1.40-desktop #1 SMP PREEMPT Thu Jul 10 11:22:12 UTC 2014 (9b06319) x86_64 x86_64 x86_64 GNU/Linux
~/buildtmp/CipherShed/src>  gcc --version
gcc (SUSE Linux) 4.7.2 20130108 [gcc-4_7-branch revision 195012]

History

#1 Updated by Kyle Marek almost 7 years ago

  • Status changed from New to Resolved

This is related to the incompatibility with wx 3.0. Resolved in 380119ada6f0c191c3297c1a6b03adfb629d101f..6854377507f5a36b5f25b7333fb691aa73b36d6c. Expected to be released with v0.7.4.2.

I tested with OpenSUSE 13.1. Installed dependencies with the following command:

sudo zypper install git make gcc gcc-c++ nasm fuse-devel wxWidgets-2_9-devel

Also available in: Atom PDF