一个windows10系统中linux子系统的编译出现“undefine reference to”错误的解决方法
2017-04-24 00:00
1256 查看
windows10 x64环境的linux子系统中执行make遇到一个“undefine reference to”的错误。
查了函数的定义是一个inline函数,该函数是在当前环境中调用,定义上没发现明显的问题。
后来在inline 函数前加入关键字static,再次编译,通过。
查了函数的定义是一个inline函数,该函数是在当前环境中调用,定义上没发现明显的问题。
后来在inline 函数前加入关键字static,再次编译,通过。
相关文章推荐
- PHP 5.3.10 编译安装时出现 undefined reference to `libiconv' 错误的解决方法
- linux下开发,解决cocos2d-x中编译出现的一个小问题, undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
- 关于arm-linux-gcc交叉编译工具链,实现自己的crt0或者编译UBOOT出现undefined reference to `__aeabi_unwind_cpp_pr0'的解决方法
- 编译3.10内核 出现错误 “undefined reference to...." 解决方法
- 在linux上编译cppunit1.12.1出现'undefined reference to `dlclose''的解决方法
- PHP 编译安装时出现 undefined reference to `libiconv' 错误的解决方法
- 编译WU FTPD出现"undefined reference to crypt"错误解决方法
- GCC编译uboot出现(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'错误的解决的方法
- 编译3.10内核 出现错误 “undefined reference to...." 解决方法
- 编译出现"undefined reference to `GTK_WIDGET_REALIZED',`GTK_WIDGET_VISIBLE' "相关错误的解决方法
- linux下开发,解决cocos2d-x中编译出现的一个小问题, undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
- QT 编译出现 undefined reference to `vtable for xx' 的解决方法
- Windows系统出现致命错误C0000034正在更新操作174的解决方法
- 32位Linux编译redis失败解决方法:zmalloc.c:223: undefined reference to `__sync_add_and_fetch_4`
- 编译错误undefined reference to `dlsym' 的解决方法
- Linux下编译时出现的错误及解决方法
- IPHONE MinutesToMidnight 出现的编译错误,已找到解决方法
- Linux 编译报错 -- undefined reference to 问题解决方法 (具体'pthread_create'和opencv看文章最后两条)
- linux下编译C++程序出现错误 “*** stack smashing detected ***, eclipse解决方法
- 安装Office时出现windows installer服务不能更新一个或多个受保护的windows文件错误的解决方法