`
xidajiancun
  • 浏览: 454750 次
文章分类
社区版块
存档分类
最新评论

error: two or more data types in declaration specifiers

 
阅读更多

昨天有个小学弟给我发邮件,说他在实验中遇到了一个问题。


error: two or more data types in declaration specifiers(记录一下...便于自己以及他人学习。)


还没看代码,光看这报错,大体就知道问题所在了。估计是“分号”没有处理好,漏了个分号吧。(毕竟我们也是这样过来的...)


然后在copy了他的代码,跑了下,看了下,发现他在结构体定义这里存在错误。

struct link
{
int data;
struct link*next;
}


这个应该是粗心所致吧。在结构体声明的时候,要带个;的。

例如:

struct link
{
int data;
struct link*next;
};



学习的路上,与君共勉。

分享到:
评论

相关推荐

    yaffs_vfs.c, android

    fs/yaffs2/yaffs_vfs.c:2383:2: error: implicit declaration of function 'get_sb_bdev' fs/yaffs2/yaffs_vfs.c: At top level: fs/yaffs2/yaffs_vfs.c:2390:2: error: unknown field 'get_sb' specified in ...

    苹果审核警告:ITMS-91053: Missing API declaration

    苹果审核警告:ITMS-91053: Missing API declaration

    STM32F103 MAX31865程序.zip

    本人项目亲测可用 STM32F103C8T6 温度控制精度精准

    FPGA常见问题解答

    FPGA常见问题解答FPGA常见问题解答

    lua-5.3.4.tar.gz Mylua-5.3.4.tar.gz lua生成动态库 lua包管理 pkgconfig PKG_CONFIG_PATH

    默认编译后,再回头编译vlc开源库,发现:lua/demux.c:55:13: 错误:implicit declaration of function ‘luaL_checkint’; did you mean ‘luaL_checkany’ 经过查找后发现,此gcc中宏定义没有生效,可能加载顺序出...

    keil常见错误.pdf

    keil常见错误 main.c(35): warning: #128-D: ...initSpi.c(6): error: #268: declaration may not appear after executable statement in block main.c(31): warning: #223-D: function "initNvic" declared implicitly

    STM32_MAX31865_HAL库程序及资料.zip

    MAX31865使用HAL库程序读取温度及相关芯片资料和bug

    实现语法分析器-编译原理

    1 : ID Declaration, symbol: a Children: 2 : ID Declaration, symbol: b Children: 3 : Var Declaration, Children: 0 1 2 4 : ID Declaration, symbol: a Children: 5 : Const Declaration, value:0, Children: 6...

    Qt中的signal和slot

    Qt中的signal和slot

    10种JavaScript最常见的错误(小结)

    主要介绍了10种JavaScript最常见的错误(小结),查看了数千个项目后,发现了 10 个最常见的 JavaScript 错误。我们会告诉你什么原因导致了这些错误,以及如何防止这些错误发生

    Declaration of academic integrity form

    requirement analysis •conceptual database design •choice of the DBMS •data model mapping •physical design •implementation

    MAX31856 STM32 例程

    MAX31856可对来自于任何类型热电偶的信号进行冷端补偿和数字化,将输出数据格式化为以摄氏度为单位。转换器的温度分辨率达0.0078125°C,允许读取高达+1800°C以及低至-210°C (取决于热电偶类型)的温度读数,热电偶...

    Codewarrior编译出现的错误以及解决方法

    文档描述了feescale 编译工具Codewarrior编译出现的错误以及解决方法,感觉挺有用,分享分享

    Java in Two Semesters Featuring JavaFX, 4th Edition

    Offering a gentle introduction to the field, assuming no prior knowledge of the subject, Java in Two Semesters is the ideal companion to undergraduate modules in software development or programming.

    修复RzBorder.pas Number of elements differs from declaration

    [Pascal Error] RzBorder.pas(1429): E2072 Number of elements (125) differs from declaration (224:TRzLEDCharacters) [Pascal Fatal Error] RzEdit.pas(2145): F2063 Could not compile used unit 'RzBorder....

    VMwareTools-9.9.0-230497

    在Ubuntu 14.04中安装VMware Tools的时候,可能会出现安装不上的问题 ,原因是此工具自身的问题。...error: implicit declaration of function ‘smp_mb__before_clear_bit’ 附件是我经过修改后的,可安装成功。

    PDO::errorCode讲解

    PDO::errorCode PDO::errorCode — 获取跟数据库句柄上一次操作相关的 SQLSTATE(PHP 5 >= 5.1.0, PECL pdo >= 0.1.0) 说明 语法 mixed PDO::errorCode ( void ) 返回值 返回一个 SQLSTATE,一个由5个字母或数字组成...

    STM32驱动max31865采集热电偶PT100程序

    STM32f103驱动MAX31865的程序采集PT100~PT1000,串口输出温度,已经调试验证,采用标准库,全工程给出,实在得很。

    keil错误集V1.0.pdf

    开发资料\我的资料\keil错误集V1.0.pdf 一、 main.c(35): warning: #128-D: loop is not ...initSpi.c(6): error: #268: declaration may not appear after executable statement in block 改正(定义变量放前)

    JavaScript and Open Data 2018 pdf

    Chapter 1. Variables: Declaration, Definition and Type ...delivery tools, or data directly accessible via different APIs, for converting many data from the Internet into data ready for your applications.

Global site tag (gtag.js) - Google Analytics