player 2.1.1, compilied with gcc4.3 (EN)

来源:互联网 发布:kindle 选择 知乎 编辑:程序博客网 时间:2024/04/29 20:16


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.


 

原创粉丝点击