当前位置:网站首页>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 .
边栏推荐
- Codeforces 474 F. Ant colony
- How to meet the dual needs of security and confidentiality of medical devices?
- Codesonar Webinar
- POJ 3140 contents division "suggestions collection"
- Demon daddy guide post - simple version
- Deadlock conditions and preventive treatment [easy to understand]
- Goal: do not exclude yaml syntax. Try to get started quickly
- Mahout-Pearson correlation的实现
- uva 12230 – Crossing Rivers(概率)「建议收藏」
- 程序猿赚的那点钱算个P啊!
猜你喜欢
The latest version of codesonar has improved functional security and supports Misra, c++ parsing and visualization
[paper reading] maps: Multi-Agent Reinforcement Learning Based Portfolio Management System
How to meet the dual needs of security and confidentiality of medical devices?
使用枚举实现英文转盲文
C语言 整型 和 浮点型 数据在内存中存储详解(内含原码反码补码,大小端存储等详解)
万字总结数据存储,三大知识点
Onespin | solve the problems of hardware Trojan horse and security trust in IC Design
Codesonar enhances software reliability through innovative static analysis
Details of C language integer and floating-point data storage in memory (including details of original code, inverse code, complement, size end storage, etc.)
目标:不排斥 yaml 语法。争取快速上手
随机推荐
Datatable data conversion to entity
[matrix multiplication] [noi 2012] [cogs963] random number generator
Validutil, "Rethinking the setting of semi supervised learning on graphs"
[paper reading] maps: Multi-Agent Reinforcement Learning Based Portfolio Management System
HOJ 2245 浮游三角胞(数学啊 )
Demon daddy B3 read extensively in a small amount, and completed 20000 vocabulary+
Mahout-Pearson correlation的实现
Demon daddy A3 stage near normal speed speech flow initial contact
Problems encountered in installing mysql8 for Ubuntu and the detailed installation process
Numerical method for solving optimal control problem (0) -- Definition
恶魔奶爸 指南帖——简易版
Jetty: configure connector [easy to understand]
C语言 整型 和 浮点型 数据在内存中存储详解(内含原码反码补码,大小端存储等详解)
How to meet the dual needs of security and confidentiality of medical devices?
Is it safe to open an account online now? I want to know where I can open an account in Nanning now?
How to choose fund products? What fund is suitable to buy in July 2022?
Codeforces 474 F. Ant colony
Tensorflow2. How to run under x 1 Code of X
恶魔奶爸 A3阶段 近常速语流初接触
I wrote a markdown command line gadget, hoping to improve the efficiency of sending documents by garden friends!