Hi, see patch. Without it the 1.5 tarball (r1655) won't compile here, as the new code uses C functions in the C++ code, I guess:
CommandFoeRead.cpp: In member function 'virtual void CommandFoeRead::execute(MasterDevice&, const std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)': CommandFoeRead.cpp:80: error: 'strncpy' was not declared in this scope make[2]: *** [ethercat-CommandFoeRead.o] Error 1 The attached patch makes it compile, the proper fix may be to use C++ contructs instead, dunno. Uwe. -- http://www.hermann-uwe.de | http://www.holsham-traders.de http://www.crazy-hacks.org | http://www.unmaintained-free-software.org
diff -Naur ethercat-devel-r1655/tool/CommandFoeRead.cpp ethercat-devel-r1655.modified/tool/CommandFoeRead.cpp --- ethercat-devel-r1655/tool/CommandFoeRead.cpp 2009-01-26 14:09:27.000000000 +0100 +++ ethercat-devel-r1655.modified/tool/CommandFoeRead.cpp 2009-02-02 18:54:38.000000000 +0100 @@ -6,6 +6,7 @@ #include <iostream> #include <iomanip> +#include <string.h> using namespace std; #include "CommandFoeRead.h" diff -Naur ethercat-devel-r1655/tool/CommandFoeWrite.cpp ethercat-devel-r1655.modified/tool/CommandFoeWrite.cpp --- ethercat-devel-r1655/tool/CommandFoeWrite.cpp 2009-01-26 14:09:27.000000000 +0100 +++ ethercat-devel-r1655.modified/tool/CommandFoeWrite.cpp 2009-02-02 18:53:49.000000000 +0100 @@ -9,6 +9,7 @@ #include <iostream> #include <iomanip> #include <fstream> +#include <string.h> using namespace std; #include "CommandFoeWrite.h"
_______________________________________________ etherlab-users mailing list [email protected] http://lists.etherlab.org/mailman/listinfo/etherlab-users
