Bug #115
fails to build on stretch due to overloaded constructors
0%
Description
The following happens on make, preventing build.
CommandLineInterface.cpp: In constructor ‘CipherShed::CommandLineInterface::CommandLineInterface(wxCmdLineParser&, CipherShed::UserInterfaceType::Enum)’:
CommandLineInterface.cpp:476:57: error: call of overloaded ‘FilesystemPath(wxString)’ is ambiguous
ArgFilePath.reset (new FilePath (parser.GetParam (0)));
^
CommandLineInterface.cpp:476:57: note: candidates are:
In file included from ../Core/../Platform/Directory.h:14:0,
from ../Core/../Platform/Platform.h:16,
from ../Core/CoreBase.h:12,
from ../Core/Core.h:12,
from CommandLineInterface.cpp:14:
../Core/../Platform/FilesystemPath.h:40:3: note: CipherShed::FilesystemPath::FilesystemPath(const wchar_t*)
FilesystemPath (const wchar_t path) : Path (path) { }
^
../Core/../Platform/FilesystemPath.h:38:3: note: CipherShed::FilesystemPath::FilesystemPath(const char)
FilesystemPath (const char *path) : Path (StringConverter::ToWide (path)) { }
^
CommandLineInterface.cpp: In member function ‘CipherShed::SharedPtr<std::list<CipherShed::SharedPtr<CipherShed::Keyfile> > > CipherShed::CommandLineInterface::ToKeyfileList(const wxString&) const’:
CommandLineInterface.cpp:529:33: error: operands to ?: have different types ‘wchar_t’ and ‘wxString’
arr.Last() += token.empty() ? L',' : token;
^
CommandLineInterface.cpp: In member function ‘CipherShed::VolumeInfoList CipherShed::CommandLineInterface::GetMountedVolumes(const wxString&) const’:
CommandLineInterface.cpp:567:35: error: call of overloaded ‘wxString(CipherShed::VolumePath&)’ is ambiguous
else if (wxString (volume->Path) pathFilter.GetFullPath())
^
CommandLineInterface.cpp:567:35: note: candidates are:
In file included from /usr/include/wx-3.0/wx/memory.h:15:0,
from /usr/include/wx-3.0/wx/object.h:19,
from /usr/include/wx-3.0/wx/wx.h:15,
from SystemPrecompiled.h:10,
from System.h:14,
from CommandLineInterface.cpp:9:
/usr/include/wx-3.0/wx/string.h:1327:5: note: wxString::wxString(const string&)
wxString(const std::string& str)
^
/usr/include/wx-3.0/wx/string.h:1317:5: note: wxString::wxString(const wxStdWideString&)
wxString(const wxStdWideString& str) : m_impl(str) {}
^
CommandLineInterface.cpp:571:41: error: call of overloaded ‘wxString(CipherShed::DirectoryPath&)’ is ambiguous
else if (wxString (volume->MountPoint) pathFilter.GetFullPath()
^
CommandLineInterface.cpp:571:41: note: candidates are:
In file included from /usr/include/wx-3.0/wx/memory.h:15:0,
from /usr/include/wx-3.0/wx/object.h:19,
from /usr/include/wx-3.0/wx/wx.h:15,
from SystemPrecompiled.h:10,
from System.h:14,
from CommandLineInterface.cpp:9:
/usr/include/wx-3.0/wx/string.h:1327:5: note: wxString::wxString(const string&)
wxString(const std::string& str)
^
/usr/include/wx-3.0/wx/string.h:1317:5: note: wxString::wxString(const wxStdWideString&)
wxString(const wxStdWideString& str) : m_impl(str) {}
^
CommandLineInterface.cpp:572:37: error: call of overloaded ‘wxString(CipherShed::DirectoryPath&)’ is ambiguous
|| (wxString (volume->MountPoint) + wxFileName::GetPathSeparator()) == pathFilter.GetFullPath())
^
CommandLineInterface.cpp:572:37: note: candidates are:
In file included from /usr/include/wx-3.0/wx/memory.h:15:0,
from /usr/include/wx-3.0/wx/object.h:19,
from /usr/include/wx-3.0/wx/wx.h:15,
from SystemPrecompiled.h:10,
from System.h:14,
from CommandLineInterface.cpp:9:
/usr/include/wx-3.0/wx/string.h:1327:5: note: wxString::wxString(const string&)
wxString(const std::string& str)
^
/usr/include/wx-3.0/wx/string.h:1317:5: note: wxString::wxString(const wxStdWideString&)
wxString(const wxStdWideString& str) : m_impl(str) {}
^
/home/me/temp/CipherShed/src/Build/Include/Makefile.inc:20: recipe for target 'CommandLineInterface.o' failed
History
#1 Updated by Kyle Marek over 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.