首页 > 系统相关 >Linux下创建线程报错‘pthread_create’未定义的引用

Linux下创建线程报错‘pthread_create’未定义的引用

时间:2023-05-17 13:25:21浏览次数:46  
标签:未定义 create pthread 线程 Linux 报错

报错如下:

image

我查找了网页上的解决方案,发现多数是因为编译链接时没有加-lpthread
可是我加了,一直都在用;
最终找出问题所在:函数名写错了

pthread_create()而不是pthread_creat()

细心是一种美好品质,希望我能尽快拥有它。

标签:未定义,create,pthread,线程,Linux,报错
From: https://www.cnblogs.com/Hubugui/p/17408325.html

相关文章

  • 【git】报错解决方案-'pre -commit hook failed (add --no-verify to bypass)'
    git-commit报错: 可以看到这个报错有两点,第一点是因为npm缓存问题,第二点是pre-commit导致的commit报错pre-commit钩子都被存储在Git目录下的hooks子目录中。当你用gitinit初始化一个新版本库时,Git默认会在这个目录中放置一些示例脚本。这些脚本除了本身可以被......
  • 【git】报错解决方案-'This is probably not a problem with npm. There is likely ad
    git-commit报错: 原因:npm缓存造成的解决方案: 删除packpackage-lock.json,删除所有依赖,执行npmcacheclean--forcenpminstall......
  • Windows的disk报错代码153和SCSI代码简要分析
    SCSI报错代码示例Windows服务器上频繁出现event上来源为disk,ID为153的事件,并且影响到了数据库业务的正常运行。点击该事件的详细信息,可以看到对应的SCSI读写请求及其状态。上文scsi的译义如下:offset29SCSISatus为00,译义为SCSISTAT_GOOD,对应SCSI端口和驱动。offset30S......
  • python 项目报错 Fatal Python error: _enter_buffered_busy: could not acquire lock
    FatalPythonerror:_enter_buffered_busy:couldnotacquirelockfor<_io.BufferedWritername=''>atinterpretershutdown,possiblyduetodaemonthreadsPythonruntimestate:finalizing(tstate=0x00005654c4008a40)Currentthread0x00007fc......
  • RN安装app时报错unable to load script的解决方法
     时间:2023/05/17 报错截图如下所示:解决方法:在安装app时不使用默认端口8081,而是指定空闲端口,具体指令如下所示:npxreact-nativerun-android--port=8082本人是在win10环境中运行RN的,感觉这里安装报错主要是由于端口冲突,所以通过指定空闲端口就可以解决。 参考:1......
  • JPA 级联更新报错(all-delete-orphan)
    报错内容:nestedexceptionisorg.hibernate.HibernateException:Acollectionwithcascade="all-delete-orphan"wasnolongerreferencedbytheowningentityinstance:com.**.**.bo.requirementForm.entities.RequirementForm.hardwareList原因:级联更新集合字段是一个持......
  • java 连接 sqlserver 报错
    使用最新的sqlserver驱动报错:com.zaxxer.hikari.pool.HikariPool$PoolInitializationException:Failedtoinitializepool:"encrypt"propertyissetto"true"and"trustServerCertificate"propertyissetto"false"butthedri......
  • vscode中vue项目中修改.vue文件名后报错
    报错误信息:Alreadyincludedfilename'.../xxx.vue'differsfromfilename'.../xxx.vue'onlyincasing.Thefileisintheprogrambecause:Importedvia'…/xxx.vue'fromfile'.../xxx.vue'Rootfilespecifiedforcompi......
  • ssh连接报错处理
    问题现象[root]#[email protected]/etc/ssh/ssh_configline59:Unsupportedoption"gssapiauthentication" 处理方法:注释/etc/ssh/ssh_config文件第59行[root]#vi/etc/ssh/ssh_config#GSSAPIAuthenticationyes 重启sshd服务[root]#system......
  • Vue 报错-4058 ENOENT: no such file or directory的原因和解决办法
    原因是我在上一级目录打开的cmd然后npmrunserve 需要进到app内run一下 ......