Enviado em 25/08/2021 - 21:09h
Alguém com mais experiência em c/c++ poderia me ajudar a resolver esse tipo de ambiguidade? Eu tento compilar o p7zip e dá esse erro.g++ -c -std=gnu++11 -I. -I../../../../C -I../../../../CPP/myWindows -I../../../../CPP/include_windows -I../../../../CPP -O2 -s -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNDEBUG -D_REENTRANT -DENV_UNIX -D_7ZIP_LARGE_PAGES `wx-config --unicode=yes --cxxflags` -DLANG -DEXTERNAL_CODECS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_REENTRANT -DENV_UNIX -DUNICODE -D_UNICODE -DUNIX_USE_WIN_FILE ../../../../CPP/Windows/Control/Controls.cpp
../../../../CPP/Windows/Control/Controls.cpp: In member function 'virtual bool NWindows::NControl::CDialogChildControl::GetText(CSysString&)':
../../../../CPP/Windows/Control/Controls.cpp:86:17: error: ambiguous overload for 'operator=' (operand types are 'CSysString' {aka 'UString'} and 'wxString')
86 | s = str;
| ^~~
In file included from ../../../../CPP/myWindows/StdAfx.h:20,
from ../../../../CPP/Windows/Control/Controls.cpp:3:
../../../../CPP/Common/MyString.h:526:12: note: candidate: 'UString& UString::operator=(const wchar_t*)'
526 | UString &operator=(const wchar_t *s);
| ^~~~~~~~
../../../../CPP/Common/MyString.h:529:12: note: candidate: 'UString& UString::operator=(const char*)'
529 | UString &operator=(const char *s);
| ^~~~~~~~
../../../../CPP/Windows/Control/Controls.cpp: In member function 'void NWindows::NControl::CComboBox::GetText(CSysString&)':
../../../../CPP/Windows/Control/Controls.cpp:125:21: error: ambiguous overload for 'operator=' (operand types are 'CSysString' {aka 'UString'} and 'wxString')
125 | s = str;
| ^~~
In file included from ../../../../CPP/myWindows/StdAfx.h:20,
from ../../../../CPP/Windows/Control/Controls.cpp:3:
../../../../CPP/Common/MyString.h:526:12: note: candidate: 'UString& UString::operator=(const wchar_t*)'
526 | UString &operator=(const wchar_t *s);
| ^~~~~~~~
../../../../CPP/Common/MyString.h:529:12: note: candidate: 'UString& UString::operator=(const char*)'
529 | UString &operator=(const char *s);
| ^~~~~~~~
../../../../CPP/Windows/Control/Controls.cpp: In member function 'void NWindows::NControl::CComboBox::GetLBText(int, CSysString&)':
../../../../CPP/Windows/Control/Controls.cpp:136:21: error: ambiguous overload for 'operator=' (operand types are 'CSysString' {aka 'UString'} and 'wxString')
136 | s = str;
| ^~~
In file included from ../../../../CPP/myWindows/StdAfx.h:20,
from ../../../../CPP/Windows/Control/Controls.cpp:3:
../../../../CPP/Common/MyString.h:526:12: note: candidate: 'UString& UString::operator=(const wchar_t*)'
526 | UString &operator=(const wchar_t *s);
| ^~~~~~~~
../../../../CPP/Common/MyString.h:529:12: note: candidate: 'UString& UString::operator=(const char*)'
529 | UString &operator=(const char *s);
| ^~~~~~~~
../../../../CPP/Windows/Control/Controls.cpp: In member function 'virtual bool NWindows::NControl::CEdit::GetText(CSysString&)':
../../../../CPP/Windows/Control/Controls.cpp:211:17: error: ambiguous overload for 'operator=' (operand types are 'CSysString' {aka 'UString'} and 'wxString')
211 | s = str;
| ^~~
In file included from ../../../../CPP/myWindows/StdAfx.h:20,
from ../../../../CPP/Windows/Control/Controls.cpp:3:
../../../../CPP/Common/MyString.h:526:12: note: candidate: 'UString& UString::operator=(const wchar_t*)'
526 | UString &operator=(const wchar_t *s);
| ^~~~~~~~
../../../../CPP/Common/MyString.h:529:12: note: candidate: 'UString& UString::operator=(const char*)'
529 | UString &operator=(const char *s);
| ^~~~~~~~
make[1]: *** [makefile.list:285: Controls.o] Erro 1
make[1]: Saindo do diretório '/home/mauricio/BUILDS/Slackware_15_0/p7zip/p7zip-17.04/CPP/7zip/UI/GUI'
make: *** [makefile:55: 7zG] Erro 2
Crie alias para as tarefas que possuam longas linhas de comando - bash e zsh
Criando um gateway de internet com o Debian
Configuração básica do Conky para mostrar informações sobre a sua máquina no Desktop
Aprenda a criar músicas com Inteligência Artificial usando Suno AI
Entendendo o que é URI, URL, URN e conhecendo as diferenças entre POST e GET
Instalando Discord no Ubuntu 24.04 LTS
Como instalar o XFCE4-terminal na sua distribuição Linux e integrá-lo ao sistema
Como instalar o Tilix Terminal no Gnome e usá-lo como menu drop-down ao estilo Quake
COMANDO PVCREATE NÃO ENCONTRADO (4)
BUG ao atualizar pacotes libglib2.0-0 libglib2.0-bin libglib2.0-data (1)
Aviso! Spin do Fedora (versão lxde) com problemas no programa de insta... (2)