当前位置:网站首页>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 .
边栏推荐
- UVA 11080 – place the guards
- Hoj 2245 planktonic triangle cell (Mathematics)
- 使用枚举实现英文转盲文
- Demon daddy B3 read extensively in a small amount, and completed 20000 vocabulary+
- Details of C language integer and floating-point data storage in memory (including details of original code, inverse code, complement, size end storage, etc.)
- The little money made by the program ape is a P!
- OpenGL super classic learning notes (1) the first triangle "suggestions collection"
- Cantata9.0 | new features
- SQL注入报错注入函数图文详解
- A brief understanding of the in arc__ bridge、__ bridge_ Retained and__ bridge_ transfer
猜你喜欢
Using enumeration to realize English to braille
[200 opencv routines] 223 Polygon fitting for feature extraction (cv.approxpolydp)
C language helps you understand pointers from multiple perspectives (1. Character pointers 2. Array pointers and pointer arrays, array parameter passing and pointer parameter passing 3. Function point
Magic weapon - sensitive file discovery tool
使用枚举实现英文转盲文
Intelligent software analysis platform embold
Cantata9.0 | new features
程序猿赚的那点钱算个P啊!
How does codesonar help UAVs find software defects?
Onespin | solve the problems of hardware Trojan horse and security trust in IC Design
随机推荐
权限不足
Intelligent software analysis platform embold
I have to use my ID card to open an account. Is the bank card safe? I don't understand it
Numerical method for solving optimal control problem (0) -- Definition
DataTable数据转换为实体
刚开户的能买什么股票呢?炒股账户安全吗
MySQL storage expression error
[paper reading] maps: Multi-Agent Reinforcement Learning Based Portfolio Management System
Do you have to make money in the account to open an account? Is the fund safe?
Devil daddy B1 hearing the last barrier, break through with all his strength
[200 opencv routines] 223 Polygon fitting for feature extraction (cv.approxpolydp)
写一下跳表
Codeforces round 275 (Div. 2) C – diverse permutation (construction) [easy to understand]
openGl超级宝典学习笔记 (1)第一个三角形「建议收藏」
Static analysis of software defects codesonar 5.2 release
OpenGL super classic learning notes (1) the first triangle "suggestions collection"
Is embedded system really safe? [how does onespin comprehensively solve the IC integrity problem for the development team]
201215-03-19 - cocos2dx memory management - specific explanation "recommended collection"
恶魔奶爸 A3阶段 近常速语流初接触
FatMouse&#39; Trade(杭电1009)