操作
整備 #3991
完了coilをVxWorksでビルドする際に発生するコンパイルエラーを修正する
開始日:
2017/03/22
期日:
進捗率:
100%
予定工数:
説明
coilをWind River Workbench上で作成したVXWorks Shared Library Projectでコンパイルした際に発生するエラーを修正する。
以下のエラーはGNUコンパイラを使用した場合のエラー。Diabコンパイラを使用した場合は違うエラーが出る。
In file included from /home/openrtm/WindRiver/workspace/coil_test/ClockManager.cpp:19: /home/openrtm/coil/include/coil/Time.h:109: error: 'coil::usleep' declared as an 'inline' variable /home/openrtm/coil/include/coil/Time.h:109: error: 'useconds_t' was not declared in this scope /home/openrtm/coil/include/coil/Time.h:110: error: expected ',' or ';' before '{' token /home/openrtm/coil/include/coil/Time.h: In function 'int coil::settimeofday(const timeval*, const coil::timezone*)': /home/openrtm/coil/include/coil/Time.h:191: error: invalid conversion from 'const timeval*' to 'timeval*' /home/openrtm/coil/include/coil/Time.h:191: error: initializing argument 1 of 'int settimeofday(timeval*, void*)' /home/openrtm/coil/include/coil/Time.h:191: error: invalid conversion from 'const void*' to 'void*' /home/openrtm/coil/include/coil/Time.h:191: error: initializing argument 2 of 'int settimeofday(timeval*, void*)'
/home/openrtm/WindRiver/workspace/coil_test/Process.cpp:25:20: error: libgen.h: No such file or directory /home/openrtm/WindRiver/workspace/coil_test/Process.cpp: In function 'int coil::launch_shell(std::string)': /home/openrtm/WindRiver/workspace/coil_test/Process.cpp:46: error: 'fork' was not declared in this scope /home/openrtm/WindRiver/workspace/coil_test/Process.cpp:58: error: 'setsid' was not declared in this scope /home/openrtm/WindRiver/workspace/coil_test/Process.cpp:70: error: 'execvp' was not declared in this scope
/home/openrtm/WindRiver/workspace/coil_test/Routing.cpp: In function 'bool coil::find_dest_ifname(std::string, std::string&)': /home/openrtm/WindRiver/workspace/coil_test/Routing.cpp:63: error: 'gethostbyname' was not declared in this scope
In file included from /home/openrtm/WindRiver/workspace/coil_test/UUID.cpp:20: /home/openrtm/coil/include/coil/UUID.h:53:23: error: uuid/uuid.h: No such file or directory In file included from /home/openrtm/WindRiver/workspace/coil_test/UUID.cpp:20: /home/openrtm/coil/include/coil/UUID.h:58: error: 'uuid_t' does not name a type /home/openrtm/coil/include/coil/UUID.h:62: error: expected `)' before '*' token /home/openrtm/WindRiver/workspace/coil_test/UUID.cpp: In member function 'coil::UUID* coil::UUID_Generator::generateUUID(int, int)': /home/openrtm/WindRiver/workspace/coil_test/UUID.cpp:108: error: 'uuid_t' was not declared in this scope /home/openrtm/WindRiver/workspace/coil_test/UUID.cpp:108: error: expected `;' before 'uuid' /home/openrtm/WindRiver/workspace/coil_test/UUID.cpp:110: error: 'uuid' was not declared in this scope /home/openrtm/WindRiver/workspace/coil_test/UUID.cpp:110: error: 'uuid_generate' was not declared in this scope /home/openrtm/WindRiver/workspace/coil_test/UUID.cpp: In constructor 'coil::UUID::UUID()': /home/openrtm/WindRiver/workspace/coil_test/UUID.cpp:115: error: 'class coil::UUID' has no member named '_uuid' /home/openrtm/WindRiver/workspace/coil_test/UUID.cpp:115: error: 'uuid_clear' was not declared in this scope /home/openrtm/WindRiver/workspace/coil_test/UUID.cpp: At global scope: /home/openrtm/WindRiver/workspace/coil_test/UUID.cpp:118: error: expected `)' before '*' token /home/openrtm/WindRiver/workspace/coil_test/UUID.cpp: In member function 'const char* coil::UUID::to_string()': /home/openrtm/WindRiver/workspace/coil_test/UUID.cpp:123: error: 'class coil::UUID' has no member named '_uuid' /home/openrtm/WindRiver/workspace/coil_test/UUID.cpp:123: error: 'uuid_unparse' was not declared in this scope
操作