当前位置:网站首页>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 .
边栏推荐
- Transparent i/o model from beginning to end
- 2022 words for yourself
- De la famille debezium: SET ROLE statements supportant mysql8
- Time convolution Network + soft threshold + attention mechanism to realize residual life prediction of mechanical equipment
- Line test - graphic reasoning -7- different graphic classes
- 消费品企业敏捷创新转型案例
- Why is network i/o blocked?
- 7-18 simple simulation of banking business queue
- Microbial Health Network, How to restore Microbial Communities
- Cataloger integrates lidar and IMU for 2D mapping
猜你喜欢

行測-圖形推理-4-字母類

行测-图形推理-7-相异图形类

Line test - graphic reasoning - 4 - alphabetic class

0-5vac to 4-20mA AC current isolated transmitter / conversion module

Sword finger offer 55 - I. depth of binary tree

Robot autonomous exploration series papers environment code

IP network active evaluation system -- x-vision

DTC社群运营怎么做?

CTF练习
![Leetcode19. Delete the penultimate node of the linked list [double pointer]](/img/a9/809b93d1ffd11ba4a9074ac8e2bdee.jpg)
Leetcode19. Delete the penultimate node of the linked list [double pointer]
随机推荐
Use JfreeChart to generate curves, histograms, pie charts, and distribution charts and display them to jsp-2
行測-圖形推理-4-字母類
PHP records the pitfalls encountered in the complete docking of Tencent cloud live broadcast and im live group chat
【刷题记录】3. 无重复字符的最长子串
今日创见|企业促进创新的5大关键要素
Gazebo import the mapping model created by blender
Matplotlib quick start
UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xf9 in position 56: illegal multibyte sequence
Sword finger offer 28 Symmetric binary tree
Signal feature extraction +lstm to realize gear reducer fault diagnosis -matlab code
Digital transformation: five steps to promote enterprise progress
“拧巴”的早教行业:万亿市场,难出巨头
Understand the autograd package in pytorch
Pyqt GUI interface and logic separation
Cascade-LSTM: A Tree-Structured Neural Classifier for Detecting Misinformation Cascades-KDD2020
Sword finger offer 55 - I. depth of binary tree
消息队列与快递柜之间妙不可言的关系
How to judge whether the input content is "number"
Debezium系列之:源码阅读之BinlogReader
不夸张地说,这是我见过最通俗易懂的,pytest入门基础教程