The above error message comes out when compiling player 2.1.1 with gcc 4.3.2.
Obviously, it is shown that "lms400_cola.cc:61: error: 'close' was not declared in this scope" like that.
So that means the header file which contains the close() function is missing in the source file.
Do followings to debug:
Added #include <cstring> to playerc++.h
- Added #include <iostream> to lms400_cola.h
- Added #include <iostream> to drivers/mixed/mricp/src/geometry2D.cpp
- Added #include <stdlib> to drivers/mixed/mricp/src/map.cpp
- Added #include <algorithm> to examples/libplayerc++/example3.cc
Also, there are some other errors like that, I do not remember clearly. And actually,
to solve the problem, the <stdlib.h> and <iostream> were added into the corresponding source file.
本文记录了使用gcc 4.3.2编译player 2.1.1过程中遇到的编译错误,特别是关于未声明的函数如close(), read()和write()等,并提供了解决这些问题的方法,包括向源文件中添加必要的头文件。

5891

被折叠的 条评论
为什么被折叠?



