小编kho*_*hop的帖子

C中的编译器错误:在'*'标记之前预期')'

正如标题所说,在尝试编译时不断收到此错误.从谷歌搜索这个错误人们说,它没有在头文件中声明,但我的功能是静态的,它不在头文件中,我原型.

#include <recGbl.h>
#include <devSup.h>
#include <devLib.h>
#include <drvIpac.h>
#include <dbScan.h>
#include <epicsExport.h>

static int cardinit(cardinfo *card);   // <-- line that gives the error

typedef struct cardinfo{
  struct cardinfo *next;

  struct io_mem_read *pMem;   /* IP register (A16) mem address */
  word *rambase;             /* RAM conversion memory mem address*/

  int isconfigured;
  int doram;   /* 1 if we are using the RAM to output data.
          0 if we are writing to registers (AO style) */

  int cardnum;
  int vmeslotnum;
  int ipslotnum;


  /* …
Run Code Online (Sandbox Code Playgroud)

c compiler-errors

3
推荐指数
2
解决办法
2万
查看次数

标签 统计

c ×1

compiler-errors ×1