当前位置:网站首页>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 23:02:00 【TSINGSEE】
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 .
边栏推荐
- 全面掌控!打造智慧城市建设的“领导驾驶舱”
- [environment] pycharm sets the tool to convert QRC into py file
- XMIND mind mapping software sharing
- 聊聊 Dart 的空安全 (null safety) 特性
- [network] Introduction to C language
- Failed to initialize rosdep after installing ROS
- 行测-图形推理-1-汉字类
- Ligne - raisonnement graphique - 4 - classe de lettres
- Line test - graphic reasoning - 1 - Chinese character class
- Line test - graphic reasoning - 3 - symmetric graphic class
猜你喜欢
PCL .vtk文件与.pcd的相互转换
一次搞明白 Session、Cookie、Token,面试问题全稿定
消息队列与快递柜之间妙不可言的关系
DTC社群运营怎么做?
行测-图形推理-1-汉字类
Force deduction - question 561 - array splitting I - step by step parsing
C # realizes the communication between Modbus protocol and PLC
Leetcode206. Reverse linked list
Gazebo import the mapping model created by blender
Two minutes, talk about some wrong understandings of MySQL index
随机推荐
QT graphicsview graphical view usage summary with flow chart development case prototype
一次搞明白 Session、Cookie、Token,面试问题全稿定
[network] Introduction to C language
“拧巴”的早教行业:万亿市场,难出巨头
[language programming] exe virus code example
Early childhood education industry of "screwing bar": trillion market, difficult to be a giant
Sword finger offer 27 Image of binary tree
Leetcode94. Middle order traversal of binary trees
Variables and constants
行测-图形推理-1-汉字类
Online interview, how to better express yourself? In this way, the passing rate will be increased by 50%~
Gbu1510-asemi power supply special 15A rectifier bridge gbu1510
行测-图形推理-7-相异图形类
Debezium系列之:mysql墓碑事件
Sword finger offer 55 - I. depth of binary tree
Sword finger offer 28 Symmetric binary tree
Loki, the "open source star picking program", realizes the efficient management of harbor logs
双非大厂测试员亲述:对测试员来说,学历重要吗?
2022 words for yourself
XMIND mind mapping software sharing