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
Passkeys: A Evolução da Autenticação Digital
Instalação de distro Linux em computadores, netbooks, etc, em rede com o Clonezilla
Título: Descobrindo o IP externo da VPN no Linux
Armazenando a senha de sua carteira Bitcoin de forma segura no Linux
Enviar mensagem ao usuário trabalhando com as opções do php.ini
Instalando Brave Browser no Linux Mint 22
vídeo pra quem quer saber como funciona Proteção de Memória:
Encontre seus arquivos facilmente com o Drill
Mouse Logitech MX Ergo Advanced Wireless Trackball no Linux
Compartilhamento de Rede com samba em modo Público/Anônimo de forma simples, rápido e fácil
Programa duplicado no "Abrir com" e na barra de pesquisa do ... (1)
VMs e Interfaces de Rede desapareceram (13)
Como abrir o pycharm no linux [RESOLVIDO] (4)