当前位置:网站首页>Develop those things: go plus c.free to free memory, and what are the reasons for compilation errors?
Develop those things: go plus c.free to free memory, and what are the reasons for compilation errors?
2022-07-07 21:20:00 【Tsingsee green rhino video】
stay EasyGBS During the development and testing of platform functions , We are go Medium plus C.free Free memory , An error message appears in the figure below :“could not determine kind of name for C.free”( Compile failed ).
The following code is plus C.free After the function , Resulting in compilation failure :
stay EasyGBS In the same project , Other go There are also documents C.free Release memory functions in this way . When compiling the executable , There are no compilation errors .
So here , I immediately thought it might be some C The header file of is not added . Because in go Write in C Program , There will be no error prompt . So this leads to writing errors , But I don't know . Only when it is compiled into an executable program will an error be reported .
In view of the above situation , Compare two go in C The header file , Finally find #include <stdlib.h> References to header files .
cgo in C.free It can be done with #include <stdlib.h> Use it together , Refer to the following :
As a family, it originated from EasyDarwin Open source framework for technology-based enterprises , In the development process , We are also happy to communicate code technology with all technology development enthusiasts 、 Share development experience , To provide you with some small reference .
With AI The continuous development and application of Technology , We are also gradually integrating AI detection and analysis technology into the platform , For example, face detection 、 Face recognition 、 People flow statistics 、 Vehicle detection 、 License plate recognition 、 Track tracking 、 Behavior recognition, etc . At present, we are based on EasyCVR The platform and AI Safety production camera , Launched a video that can be applied to the scene of enterprise safety production +AI Solution . among ,AI The safety production camera adopts a new embedded multi algorithm framework , Built in a variety of AI Algorithm , Algorithm can be selected according to camera configuration , In addition to helmet testing , It also includes fireworks detection 、 Indoor channel blockage detection 、 Off duty sleep detection 、 Perimeter intrusion detection 、 Occupancy detection of outdoor fire passage, etc . Interested users can go to the demonstration platform for experience or deployment testing .
边栏推荐
- H3C s7000/s7500e/10500 series post stack BFD detection configuration method
- Small guide for rapid formation of manipulator (12): inverse kinematics analysis
- Klocwork code static analysis tool
- 2022年在启牛开中银股票的账户安全吗?
- Cocos2d-x 游戏存档[通俗易懂]
- How to meet the dual needs of security and confidentiality of medical devices?
- Solve the problem of using uni app mediaerror mediaerror errorcode -5
- HOJ 2245 浮游三角胞(数学啊 )
- GridView defines its own time for typesetting "suggestions collection"
- Usage of MySQL subquery keywords (exists)
猜你喜欢

程序猿赚的那点钱算个P啊!
SQL注入报错注入函数图文详解

Static analysis of software defects codesonar 5.2 release
![[C language] advanced pointer --- do you really understand pointer?](/img/ee/79c0646d4f1bfda9543345b9da0f25.png)
[C language] advanced pointer --- do you really understand pointer?

ISO 26262 - considerations other than requirements based testing

恶魔奶爸 B3 少量泛读,完成两万词汇量+

C语言多角度帮助你深入理解指针(1. 字符指针2. 数组指针和 指针数组 、数组传参和指针传参3. 函数指针4. 函数指针数组5. 指向函数指针数组的指针6. 回调函数)
Klocwork 代码静态分析工具

Implement secondary index with Gaussian redis

【C语言】指针进阶---指针你真的学懂了吗?
随机推荐
数值法求解最优控制问题(〇)——定义
单词反转实现「建议收藏」
EasyUI date control emptying value
openGl超级宝典学习笔记 (1)第一个三角形「建议收藏」
Small guide for rapid formation of manipulator (12): inverse kinematics analysis
Static analysis of software defects codesonar 5.2 release
[uvalive 6663 count the regions] (DFS + discretization) [easy to understand]
margin 等高布局
Le capital - investissement est - il légal en Chine? C'est sûr?
私募基金在中国合法吗?安全吗?
Codesonar Webinar
Focusing on safety in 1995, Volvo will focus on safety in the field of intelligent driving and electrification in the future
Codeforces round 275 (Div. 2) C – diverse permutation (construction) [easy to understand]
Is it safe to open an account online now? I want to know where I can open an account in Nanning now?
C语言多角度帮助你深入理解指针(1. 字符指针2. 数组指针和 指针数组 、数组传参和指针传参3. 函数指针4. 函数指针数组5. 指向函数指针数组的指针6. 回调函数)
[matrix multiplication] [noi 2012] [cogs963] random number generator
Guava multithreading, futurecallback thread calls are uneven
Mahout-Pearson correlation的实现
开户还得用身份证银行卡安全吗,我是小白不懂
解决使用uni-app MediaError MediaError ErrorCode -5