← Back to team overview

kicad-developers team mailing list archive

Re: Some linker errors, and question about qa

 

You might have a dirty build.  I'm not seeing this error locally.  Can you
try `make clean` before you re-make?

-Seth

On Mon, Sep 14, 2020 at 1:26 PM Eeli Kaikkonen <eeli.kaikkonen@xxxxxxxxx>
wrote:

> I get some linker errors:
>
> [3/3] Linking CXX executable qa/drc_proto/drc_proto
> FAILED: qa/drc_proto/drc_proto
> ...
> /usr/bin/ld:
> qa/drc_proto/CMakeFiles/drc_proto.dir/__/pcbnew_utils/board_file_utils.cpp.o:
> in function `KI_TEST::DumpBoardToFile(BOARD&,
> std::__cxx11::basic_string<char, std::char_traits<char>,
> std::allocator<char> > const&)':
> /work/ohjelmointi/kicad/kicad-master/qa/pcbnew_utils/board_file_utils.cpp:40:
> undefined reference to `PCB_IO::PCB_IO(int)'
> /usr/bin/ld:
> /work/ohjelmointi/kicad/kicad-master/qa/pcbnew_utils/board_file_utils.cpp:41:
> undefined reference to `PCB_IO::Save(wxString const&, BOARD*, PROPERTIES
> const*)'
> /usr/bin/ld:
> /work/ohjelmointi/kicad/kicad-master/qa/pcbnew_utils/board_file_utils.cpp:40:
> undefined reference to `PCB_IO::~PCB_IO()'
> /usr/bin/ld:
> /work/ohjelmointi/kicad/kicad-master/qa/pcbnew_utils/board_file_utils.cpp:40:
> undefined reference to `PCB_IO::~PCB_IO()'
> /usr/bin/ld: common/libpcbcommon.a(io_mgr.cpp.o): in function
> `{lambda()#2}::operator()() const':
> /work/ohjelmointi/kicad/kicad-master/pcbnew/io_mgr.cpp:209: undefined
> reference to `PCB_IO::PCB_IO(int)'
>
>
>
> What might be the reason?
>
> BTW, why does it link anything under qa at all while I don't have
> KICAD_BUILD_QA_TESTS enabled? I'm not sure what the qa subdir should do,
> but I don't think I need or want it.
>
> Eeli Kaikkonen
> _______________________________________________
> 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
>


-- 
[image: KiCad Services Corporation Logo]
Seth Hillbrand
*Lead Developer*
+1-530-302-5483‬ <+12126039372>
Davis, CA
www.kipro-pcb.com    info@xxxxxxxxxxxxx

References