当前位置:网站首页>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 .
边栏推荐
- Ligne - raisonnement graphique - 4 - classe de lettres
- This time, let's clear up: synchronous, asynchronous, blocking, non blocking
- ASEMI整流桥KBPC1510的型号数字代表什么
- Ni9185 and ni9234 hardware settings in Ni Max
- Years of summary, some core suggestions for learning programming
- Debezium series: MySQL tombstone event
- 一次搞明白 Session、Cookie、Token,面试问题全稿定
- 开发那些事儿:Go加C.free释放内存,编译报错是什么原因?
- Apple further entered the financial sector through the 'virtual card' security function in IOS 16
- Microbial health network, how to restore microbial communities
猜你喜欢
一次搞明白 Session、Cookie、Token,面试问题全稿定
LeetCode206. Reverse linked list [double pointer and recursion]
Microbial Health Network, How to restore Microbial Communities
“拧巴”的早教行业:万亿市场,难出巨头
双非大厂测试员亲述:对测试员来说,学历重要吗?
0-5VAC转4-20mA交流电流隔离变送器/转换模块
XMIND mind mapping software sharing
Yarn cannot view the historical task log of yarn after enabling ACL user authentication. Solution
数字藏品加速出圈,MarsNFT助力多元化文旅经济!
Common verification rules of form components -2 (continuously updating ~)
随机推荐
数字藏品加速出圈,MarsNFT助力多元化文旅经济!
微生物健康網,如何恢複微生物群落
Time convolution Network + soft threshold + attention mechanism to realize residual life prediction of mechanical equipment
Leetcode19. Delete the penultimate node of the linked list [double pointer]
Leetcode1984. Minimum difference in student scores
Redis official ORM framework is more elegant than redistemplate
What is fake sharing after filling the previous hole?
The PHP source code of the new website + remove authorization / support burning goose instead of pumping
Cascade-LSTM: A Tree-Structured Neural Classifier for Detecting Misinformation Cascades-KDD2020
行测-图形推理-4-字母类
There is another problem just online... Warm
7-18 simple simulation of banking business queue
软件测评中心▏自动化测试有哪些基本流程和注意事项?
「开源摘星计划」Loki实现Harbor日志的高效管理
Debezium series: set role statement supporting mysql8
LeetCode203. Remove linked list elements
[record of question brushing] 3 Longest substring without duplicate characters
Basic knowledge of binary tree
Unity technical notes (II) basic functions of scriptableobject
Gbu1510-asemi power supply special 15A rectifier bridge gbu1510