一般是代码里面的 大括号没搞对,少了个{ 或者 多了个 } 导致的
xxxxx.c:100: error: invalid storage class for function 'xxxxxxx'
xxxxx.c:100: error: invalid storage class for function 'xxxxxxx'
error: invalid storage class for function 'scrSetting1_btnClose_event_handler' 6352 | static void scrSetting1_btnClose_event_handler (lv_event_t *e) | ^~~~ C:/NXP/GUI-Guider-Projects/TSVWI_V1.7.2_240517/lvgl-simulator/../generated/events_init.c:8067:1: error:...
The following compilation error occurred when I tried to compile the code. downloader.c:426:1: error: invalid storage class for function 'downloader_step' static ret_t downloader_step (cherokee_downloader_t *downloader) { ... } I removed "static" from the function declaration and it compiled...
/usr/include/alsa/control.h:237:23: error: invalid storage class for function ‘snd_ctl_abort’ static __inline__ int snd_ctl_abort(snd_ctl_t *ctl) { return snd_ctl_nonblock(ctl, 2); } ^~~~ In file included from /usr/include/alsa/asoundlib.h:58:0, from IP...
error: invalid storage class for function error: invalid storage class for function
error: invalid storage class for function myfs_exit /home/nidhi/STUDY/LINUX/LINUX_Projects/FS/MyFs4/myfs4.c:481: error: invalid storage class for function init_myfs_inodecache /home/nidhi/STUDY/LINUX/LINUX_Projects/FS/MyFs4/myfs4.c:493: error: invalid ...
when I compile my program for Linux I get this error: error: storage class specifiers invalid for parameter declarations This only happens on Linux as it compiles fine for Windows. The line of code is: int Start(static const char* m_vertexshader, static const char* m_fragmentshader...