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
Compartilhando a tela do Computador no Celular via Deskreen
Como Configurar um Túnel SSH Reverso para Acessar Sua Máquina Local a Partir de uma Máquina Remota
Configuração para desligamento automatizado de Computadores em um Ambiente Comercial
Como renomear arquivos de letras maiúsculas para minúsculas
Imprimindo no formato livreto no Linux
Vim - incrementando números em substituição
Efeito "livro" em arquivos PDF
Como resolver o erro no CUPS: Unable to get list of printer drivers
É cada coisa que me aparece! - não é só 3% (1)
Alguma pessoa pode me ajudar com drriver Core i3 7020u (Debian 12)? (2)
Mikrotik não mostra bytes nem packtes (1)
Melhores Práticas de Nomenclatura: Pastas, Arquivos e Código [RESOLVID... (4)
[Python] Automação de scan de vulnerabilidades
[Python] Script para analise de superficie de ataque
[Shell Script] Novo script para redimensionar, rotacionar, converter e espelhar arquivos de imagem
[Shell Script] Iniciador de DOOM (DSDA-DOOM, Doom Retro ou Woof!)
[Shell Script] Script para adicionar bordas às imagens de uma pasta