当前位置:网站首页>LiteOS_ a - SYS_ The run() function is missing a header file.
LiteOS_ a - SYS_ The run() function is missing a header file.
2022-07-24 09:46:00 【Jiang tengxia】
SYS_RUN();
SYS_RUN() Function missing header file .
Compile the prompt :
error: data definition has no type or storage class [-Werror]
SYS_RUN(mymain);
^~~~~~~
error: type defaults to 'int' in declaration of 'SYS_RUN' [-Werror=implicit-int]
solve :
// to .c Add header file to file
#include "ohos_init.h" // Mainly this document
#include "ohos_types.h"
// to BUILD.gn Add the path of the header file ( Biga )
"//utils/native/lite/include",
"//kernel/liteos_m/components/cmsis/2.0",
"//base/iot_hardware/interfaces/kits/wifiiot_lite",
边栏推荐
- 力扣300-最长递增子序列——动态规划
- Getting started with identityserver4
- [don't bother to strengthen learning] video notes (II) 2. Write a small example of Q learning
- String sort
- SQL server2012 installation method details [easy to understand]
- CUDA day 2: GPU core and Sm core components [easy to understand]
- Friends come to interview a unicorn company in Beijing at leisure. The interview question is priced at 25K
- PHP caching system - PHP uses Memcache
- What is the cloud native mid platform business architecture?
- [leetcode] 31. Next arrangement
猜你喜欢

Detailed LinkedList

Spark Learning: implement compact table command

ASI-20220222-Implicit PendingIntent

Spark Learning: build SQL to meet the specified optimization rules

OPENCV学习DAY5

JS locate Daquan to get the brother, parent and child elements of the node, including robot instances
Gin framework uses session and redis to realize distributed session & Gorm operation mysql

Android Version Description security privacy 13

Raspberry Pie: /bin/sh: 1: bison: not found

Raspberry Pie: serial port login does not display print information
随机推荐
Scarcity in Web3: how to become a winner in a decentralized world
Countdownlatch and join [concurrent programming]
A null pointer exception is reported when the wrapper class inserts into the empty field of the database table
Centos7 install mysql8.0
Vim: extend the semantic analysis function of YCM for the third-party library of C language
Spark Learning: a form of association in a distributed environment?
SQL 优化原则
The most complete solution for distributed transactions
JS bind simulation
Raspberry Pie: serial port login does not display print information
js定位大全获取节点的兄弟,父级,子级元素含robot实例
Vscode failed to use SSH Remote Connection (and a collection of other problems)
Compilation and linking of programs
Cyclicbarrier and countdownlatch [concurrent programming]
ThreeJs
Dorissql syntax Usage Summary
Raspberry Pie: /bin/sh: 1: bison: not found
Makefile variables and dynamic library static library
Onpropertychange property
PHP Basics - session control - Session