codeblocks在链接c++工程文件时的错误?

查看:126
本文介绍了codeblocks在链接c++工程文件时的错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

如图,请问该怎么解决?


-------------- Build: Debug in xjgame (compiler: GNU GCC Compiler)---------------

||=== Build: Debug in xjgame (compiler: GNU GCC Compiler) ===|
/usr/bin/ld: obj/Debug/game/mod_rpt/GameRptModule.o||undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'|
||error: ld returned 1 exit status|
||=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|
/usr/bin/ld: obj/Debug/game/mod_rpt/GameRptModule.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 1 second(s))
2 error(s), 0 warning(s) (0 minute(s), 1 second(s))
 

解决方案

-lpthread

这篇关于codeblocks在链接c++工程文件时的错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆