Skip to content

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

@df7cb

Description

@df7cb

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions