← Back to team overview

kicad-developers team mailing list archive

Build error

 

As of commit 4138c8554 I'm getting the following build error on linux.

/home/wayne/src/kicad-trunk/pcbnew/drc/drc_rule_parser.cpp: In
constructor ‘DRC_RULES_PARSER::DRC_RULES_PARSER(BOARD*, const wxString&,
const wxString&)’:
/home/wayne/src/kicad-trunk/pcbnew/drc/drc_rule_parser.cpp:36:26: error:
invalid user-defined conversion from ‘const wxString’ to ‘FILE*’ {aka
‘_IO_FILE*’} [-fpermissive]
   36 |         DRC_RULES_LEXER( aSource, aSourceDescr ),
      |                          ^~~~~~~
In file included from /usr/include/wx-3.0/wx/memory.h:15,
                 from /usr/include/wx-3.0/wx/object.h:19,
                 from /usr/include/wx-3.0/wx/wx.h:15,
                 from /home/wayne/src/kicad-trunk/include/fctsys.h:28,
                 from
/home/wayne/src/kicad-trunk/pcbnew/drc/drc_rule_parser.cpp:25:
/usr/include/wx-3.0/wx/string.h:1629:5: note: candidate is:
‘wxString::operator const void*() const’ <near match>
 1629 |     operator const void*() const { return c_str(); }
      |     ^~~~~~~~
/usr/include/wx-3.0/wx/string.h:1629:5: note:   no known conversion from
‘const void*’ to ‘FILE*’ {aka ‘_IO_FILE*’}
In file included from
/home/wayne/src/kicad-trunk/pcbnew/./drc/drc_rule_parser.h:31,
                 from
/home/wayne/src/kicad-trunk/pcbnew/drc/drc_rule_parser.cpp:26:
/home/wayne/build/kicad/trunk-debug-gtk3-python/common/drc_rules_lexer.h:108:28:
note:   initializing argument 1 of
‘DRC_RULES_LEXER::DRC_RULES_LEXER(FILE*, const wxString&)’
  108 |     DRC_RULES_LEXER( FILE* aFile, const wxString& aFilename ) :
      |                      ~~~~~~^~~~~


Follow ups