当前位置:网站首页>note: expected ‘void * (***)(void ***)’ but argument is of type ‘void (*)(void *)’
note: expected ‘void * (***)(void ***)’ but argument is of type ‘void (*)(void *)’
2022-07-24 09:45:00 【Jiang tengxia】
Compiler error :
reason :
It means pthread_create(&voiceThread,NULL,voice_Thread,NULL); The return type of the function to be called is inconsistent , Inconsistent with the return type expected by the function .
After reading for a long time, I found that it was the time to define a function , Return value type forgot to add * 了
The return type of the two functions reporting errors is not a pointer type .
Connected to the above figure 
terms of settlement :
Wouldn't it be nice to define the return type of those two functions as pointer type (void * Function name (){}…)
Compile operation

Nice!!!
边栏推荐
- At the moment of the epidemic, we need to work harder, aoligui
- js定位大全获取节点的兄弟,父级,子级元素含robot实例
- Scheme and software analysis of dual computer hot standby system "suggestions collection"
- Financial digital transformation
- [don't bother to strengthen learning] video notes (IV) 1. What is dqn?
- Dark king | analysis of zego low illumination image enhancement technology
- Aruba learning notes 06 wireless control AC basic configuration (CLI)
- Scarcity in Web3: how to become a winner in a decentralized world
- Leetcode question brushing series -- 174. Dungeon games
- [don't bother with reinforcement learning] video notes (I) 1. What is reinforcement learning?
猜你喜欢

缓冲区的概念真的理解么?带你揭开缓冲区的面纱~

Little dolphin "transformed" into a new intelligent scheduling engine, which can be explained in simple terms in the practical development and application of DDS

配置系统环境变量的时候误删了Path怎么办?
![CAS principle [concurrent programming]](/img/f0/77e7e1079f70198c601b0f1e25106e.png)
CAS principle [concurrent programming]

Cess test online line! The first decentralized storage network to provide multiple application scenarios

Dark king | analysis of zego low illumination image enhancement technology

Detailed LinkedList

OPENCV学习DAY5

代码随想录笔记_链表_25K个一组翻转链表

Development history of the first commercial humanoid biped robot in China
随机推荐
What if path is deleted by mistake when configuring system environment variables?
Scheme and software analysis of dual computer hot standby system "suggestions collection"
What's the difference between testing / developing programmers' professionalism and salted fish? They don't want to be excellent coders?
RxJS Beginner Guide
Firewalld firewall related commands
A null pointer exception is reported when the wrapper class inserts into the empty field of the database table
Map processing background management menu data
获取所有股票历史行情数据
Will your NFT disappear? Dfinity provides the best solution for NFT storage
代码随想录笔记_链表_25K个一组翻转链表
We were tossed all night by a Kong performance bug
Problem: filesystemversionexception: you have version null and I want version 8
PHP Basics - session control - cookies
《动手学深度学习》(七) -- 边界框和锚框
Excuse me, what are the financial products with an annual interest rate of 6%
[don't bother with intensive learning] video notes (III) 1. What is SARS?
Re6:读论文 LeSICiN: A Heterogeneous Graph-based Approach for Automatic Legal Statute Identification fro
华为无线设备安全策略配置命令
程序的编译与链接
[don't bother with reinforcement learning] video notes (I) 2. Summary of reinforcement learning methods