现在的位置: 首页 > 综合 > 正文

player 2.1.1, compilied with gcc4.3 (EN)

2014年01月01日 ⁄ 综合 ⁄ 共 2102字 ⁄ 字号 评论关闭


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.


 

抱歉!评论已关闭.