← Back to team overview

kicad-developers team mailing list archive

Re: Windows msys2 build error

 

I fixed the includes but we should probably push the definitions out of that file at some point.

Best-
Seth

Seth Hillbrand
KiCad Services Corporation
https://www.kipro-pcb.com
+1 530 302 5483 | +1 212 603 9372

On 2020-07-06 05:18, Wayne Stambaugh wrote:
I'm seeing the following build error this morning on windows using msys2:

C:/msys64/home/Wayne/src/kicad-trunk/include/ws_draw_item.h:463:55:
error: cannot convert 'std::vector<WS_DRAW_ITEM_BASE*>::iterator' to
'const char*'
  463 |         auto newEnd = std::remove( m_graphicList.begin(),
m_graphicList.end(), aItem );
      |                                    ~~~~~~~~~~~~~~~~~~~^~
      |                                                       |
      |
std::vector<WS_DRAW_ITEM_BASE*>::iterator
In file included from C:/msys64/mingw64/include/wx-3.0/wx/string.h:39,
                 from C:/msys64/mingw64/include/wx-3.0/wx/memory.h:15,
                 from C:/msys64/mingw64/include/wx-3.0/wx/object.h:19,
                 from C:/msys64/mingw64/include/wx-3.0/wx/wx.h:15,
                 from
C:/msys64/home/Wayne/src/kicad-trunk/include/fctsys.h:28,
                 from
C:/msys64/home/Wayne/src/kicad-trunk/common/page_layout/ws_data_model.cpp:47:
C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:752:34: note:
initializing argument 1 of 'int remove(const char*)'
  752 |   int __cdecl remove(const char *_Filename);
      |                      ~~~~~~~~~~~~^~~~~~~~~
make[2]: *** [common/CMakeFiles/common.dir/build.make:957:
common/CMakeFiles/common.dir/page_layout/ws_data_model.cpp.obj] Error 1

_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Follow ups

References