webots和visual studio常见错误
时间: 2023-09-30 22:05:50 浏览: 208
Webots常见错误:
1. Error: "No OpenGL context available in this thread"
解决方法:在webots的目录下找到webots.ini文件,添加这一行:
USE_GL_DRAW_THREAD = FALSE
2. Error: "Could not load controller library: libController.so"
解决方法:打开Webots,点击“Preferences”,在“Controller”选项卡下,添加你的控制器库路径。
3. Error: "Could not load plugin library: libplugin.so"
解决方法:打开Webots,点击“Preferences”,在“Plugins”选项卡下,添加你的插件库路径。
Visual Studio常见错误:
1. Error: "fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory"
解决方法:在Visual Studio的项目属性中,添加头文件和库文件的路径。
2. Error: "LNK1104: cannot open file 'XXX.lib'"
解决方法:在Visual Studio的项目属性中,添加库文件的路径。
3. Error: "error LNK2019: unresolved external symbol"
解决方法:检查你的代码中是否存在未定义的函数或变量,或者是否链接了正确的库文件。
阅读全文
相关推荐















