![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux C语言
丿没有蜡笔的小鑫
这个作者很懒,什么都没留下…
展开
-
VSCode无法跳转到外部函数定义
环境Ubuntu 16.04VSCodeC/C++问题描述浏览代码时,按F12无法跳转到外部函数定义原因头文件中include失败,画波浪线,外部函数定义的头文件没有正确include,自然也就无法跳转。解决使用F1,打开命令选项,输入C/C++,选择C/C++:Edit configurations(JSON),生成c_cpp_properties.json配置文件。配置 json 文件中的 includePath,加上 ${workspaceFolder}/**即可,意思是让原创 2021-10-29 09:40:27 · 7323 阅读 · 1 评论 -
Linux下pthread_t的定义
开发环境VMware虚拟机 Ubuntu16.04C语言问题描述调用 pthread_self() 函数获取线程 ID 并用 printf打印出来,需要知道 pthread_self() 函数返回值的类型。查询步骤找到 pthread_self() 函数的定义,打开命令行,输入以下命令进入帮助手册,如下图所示man pthread_self可以看到 pthread_self 函数定义在头文件 pthread.h 中,其返回值类型为 pthread_t。打开 pthread.h原创 2021-02-23 10:14:32 · 15973 阅读 · 1 评论