[etherlab-users] Compile fix for 1.5 devel

Uwe Hermann uwe at hermann-uwe.de
Thu Feb 5 15:48:18 CET 2009


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compile_fix.patch
Type: text/x-diff
Size: 867 bytes
Desc: not available
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20090205/27c4335e/attachment-0003.patch>


More information about the Etherlab-users mailing list