Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error compile: error: operands to ?: have different types 'wxUniChar' and 'wxChar {aka wchar_t}' #1

Open
Hubbitus opened this issue Mar 9, 2016 · 0 comments

Comments

@Hubbitus
Copy link

Hubbitus commented Mar 9, 2016

Hello. I've try compile pqwx under Fedora 23 and got error:

+ make -j3 WX_CONFIG=/usr/bin/wx-config-3.0-gtk2
PQWX_VERSION = unknown (0,0,0,0)
/usr/bin/wxrc-3.0-gtk2 -c -o resources.cpp rc/connect.xrc rc/main.xrc rc/object_finder.xrc rc/object_browser.xrc rc/dependencies_view.xrc
./format_static_resources -f 'StaticResources::RegisterMemoryResources' -h static_resources.h -o static_resources.cpp -d static_resources.d static_resources.txt
WX_FLAVOUR = gtk2-unicode-3.0-gtk2
./format_wordlists -p 'ScriptEditor::WordList' -o script_editor_wordlists.cpp keywords=postgresql_wordlists_keywords.txt \
         database_objects=postgresql_wordlists_database_objects.txt \
         sqlplus=postgresql_wordlists_sqlplus.txt \
         user1=postgresql_wordlists_user1.txt \
         user2=postgresql_wordlists_user2.txt \
         user3=postgresql_wordlists_user3.txt \
         user4=postgresql_wordlists_user4.txt
g++  -ggdb -Wall -I/usr/include -I/usr/lib64/wx/include/gtk2-unicode-3.0-gtk2 -I/usr/include/wx-3.0-gtk2 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -fabi-version=8 -c -o script_query_work.o script_query_work.cpp
g++  -ggdb -Wall -I/usr/include -I/usr/lib64/wx/include/gtk2-unicode-3.0-gtk2 -I/usr/include/wx-3.0-gtk2 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -fabi-version=8 -c -o script_execution.o script_execution.cpp
g++  -ggdb -Wall -I/usr/include -I/usr/lib64/wx/include/gtk2-unicode-3.0-gtk2 -I/usr/include/wx-3.0-gtk2 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -fabi-version=8 -c -o pg_tools_registry.o pg_tools_registry.cpp
script_execution.cpp: In member function 'wxChar PsqlArgumentsParser::Peek() const':
script_execution.cpp:188:23: error: operands to ?: have different types 'wxUniChar' and 'wxChar {aka wchar_t}'
     return HaveMore() ? str[ptr] : ((wxChar) -1);
                       ^
script_execution.cpp:188:23: note:   and each type can be converted to the other
script_execution.cpp: In member function 'wxChar PsqlArgumentsParser::Take()':
script_execution.cpp:192:23: error: operands to ?: have different types 'wxUniChar' and 'wxChar {aka wchar_t}'
     return HaveMore() ? str[ptr++] : ((wxChar) -1);
                       ^
script_execution.cpp:192:23: note:   and each type can be converted to the other
Makefile:74: recipe for target 'script_execution.o' failed
make: *** [script_execution.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant