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

frm/frmQuery.cpp:2341:26: error: no matching function for call to ‘ctlSQLBox::StartStyling(int)’ #7

Open
df7cb opened this issue Dec 20, 2019 · 1 comment

Comments

@df7cb
Copy link

df7cb commented Dec 20, 2019

Hi,
I'm trying to get the pgadmin3 package updated in Debian. Unfortunately, your version doesn't compile:

g++ -DHAVE_CONFIG_H -I. -I.. -I../pgadmin/include/libssh2  -DDATA_DIR=\"/usr/share/pgadmin3/\" -I../pgadmin/include -I../pgadmin/include/libssh2   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/postgresql -I/usr/include/postgresql/12/server -I/usr/include/postgresql -DHAVE_CONNINFO_PARSE -I/usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -DEMBED_XRC -I/usr/include/libxml2 -I/usr/include/libxml2 -DHAVE_GCRYPT  -g -O2 -fdebug-prefix-map=/home/cbe/projects/postgresql/pgadmin3/pgadmin3=. -fstack-protector-strong -Wformat -Werror=format-security -g -c -o frm/frmPgpassConfig.o frm/frmPgpassConfig.cpp
g++ -DHAVE_CONFIG_H -I. -I.. -I../pgadmin/include/libssh2  -DDATA_DIR=\"/usr/share/pgadmin3/\" -I../pgadmin/include -I../pgadmin/include/libssh2   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/postgresql -I/usr/include/postgresql/12/server -I/usr/include/postgresql -DHAVE_CONNINFO_PARSE -I/usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -DEMBED_XRC -I/usr/include/libxml2 -I/usr/include/libxml2 -DHAVE_GCRYPT  -g -O2 -fdebug-prefix-map=/home/cbe/projects/postgresql/pgadmin3/pgadmin3=. -fstack-protector-strong -Wformat -Werror=format-security -g -c -o frm/frmQuery.o frm/frmQuery.cpp
frm/frmQuery.cpp: In member function ‘void frmQuery::OnExecScript(wxCommandEvent&)’:
frm/frmQuery.cpp:2341:26: error: no matching function for call to ‘ctlSQLBox::StartStyling(int)’
 2341 |  sqlQuery->StartStyling(0);
      |                          ^
In file included from ../pgadmin/include/ctl/ctlSQLBox.h:17,
                 from ../pgadmin/include/pgAdmin3.h:28,
                 from frm/frmQuery.cpp:12:
/usr/include/wx-3.0/wx/stc/stc.h:2640:10: note: candidate: ‘void wxStyledTextCtrl::StartStyling(int, int)’
 2640 |     void StartStyling(int pos, int mask);
      |          ^~~~~~~~~~~~
/usr/include/wx-3.0/wx/stc/stc.h:2640:10: note:   candidate expects 2 arguments, 1 provided
frm/frmQuery.cpp: In member function ‘void frmQuery::execQuery(const wxString&, int, bool, int, bool, bool, bool)’:
frm/frmQuery.cpp:2495:26: error: no matching function for call to ‘ctlSQLBox::StartStyling(int)’
 2495 |  sqlQuery->StartStyling(0);
      |                          ^
In file included from ../pgadmin/include/ctl/ctlSQLBox.h:17,
                 from ../pgadmin/include/pgAdmin3.h:28,
                 from frm/frmQuery.cpp:12:
/usr/include/wx-3.0/wx/stc/stc.h:2640:10: note: candidate: ‘void wxStyledTextCtrl::StartStyling(int, int)’
 2640 |     void StartStyling(int pos, int mask);
      |          ^~~~~~~~~~~~
/usr/include/wx-3.0/wx/stc/stc.h:2640:10: note:   candidate expects 2 arguments, 1 provided
frm/frmQuery.cpp: In member function ‘void frmQuery::OnQueryComplete(pgQueryResultEvent&)’:
frm/frmQuery.cpp:2865:32: error: no matching function for call to ‘ctlSQLBox::StartStyling(int&)’
 2865 |     sqlQuery->StartStyling(sPos);
      |                                ^
In file included from ../pgadmin/include/ctl/ctlSQLBox.h:17,
                 from ../pgadmin/include/pgAdmin3.h:28,
                 from frm/frmQuery.cpp:12:
/usr/include/wx-3.0/wx/stc/stc.h:2640:10: note: candidate: ‘void wxStyledTextCtrl::StartStyling(int, int)’
 2640 |     void StartStyling(int pos, int mask);
      |          ^~~~~~~~~~~~
/usr/include/wx-3.0/wx/stc/stc.h:2640:10: note:   candidate expects 2 arguments, 1 provided
make[5]: *** [Makefile:5954: frm/frmQuery.o] Fehler 1
make[5]: Verzeichnis „/home/cbe/projects/postgresql/pgadmin3/pgadmin3/pgadmin“ wird verlassen

Any idea?
Thanks for working on keeping pgadmin3 alive!

@erkinsergey
Copy link

I confirm there is such a problem

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

2 participants