diff --git a/tool/Makefile.am b/tool/Makefile.am index 5961aabf..2fe10075 100644 --- a/tool/Makefile.am +++ b/tool/Makefile.am @@ -36,7 +36,6 @@ EXTRA_DIST = bin_PROGRAMS = ethercat ethercat_SOURCES = \ - ../master/soe_errors.c \ Command.cpp \ CommandAlias.cpp \ CommandCrc.cpp \ diff --git a/tool/SoeCommand.cpp b/tool/SoeCommand.cpp index 8b8c061e..536ae260 100644 --- a/tool/SoeCommand.cpp +++ b/tool/SoeCommand.cpp @@ -31,8 +31,7 @@ using namespace std; #include "SoeCommand.h" - -extern const ec_code_msg_t soe_error_codes[]; +#include "../master/soe_errors.c" /*****************************************************************************/