我对C世界比较陌生,我在学校学习过,但那是很久以前的事了。 现在我再次感兴趣,特别是因为我有一个目标要实现,我必须编写一些不那么新的乐器,来自tektronix的DSO,带有GPib卡,在DOS下工作。
我在网上找到了一些信息,但是当我尝试编译程序时,我收到了decl.h
标题的错误,我从国家仪器软件包中获取了标题,我将在下面添加它。
这些错误都与功能之前缺少simbols(初始化程序)有关(在dev c ++下)和类型不匹配错误(在Turbo C 2.0下)
有人能帮助我吗?我把标题作为一个黑盒子,不知道它做了什么,我只是在程序中调用一些函数。
提供问题的标头代码:
/* Function prototypes */
extern int _far _cdecl ibask(int handle, int option, int _far *retval);
extern int _far _cdecl ibbna(int handle, char _far *bdname);
extern int _far _cdecl ibcac(int handle, int v);
extern int _far _cdecl ibclr(int handle);
extern int _far _cdecl ibcmd(int handle, void _far *buffer, long cnt);
extern int _far _cdecl ibcmda(int handle, void _far *buffer, long cnt);
extern int _far _cdecl ibconfig(int handle, int option, int value);
extern int _far _cdecl ibdev(int boardID, int pad, int sad, int tmo, int eot, int eos);
extern int _far _cdecl ibdma(int handle, int v);
extern int _far _cdecl ibeos(int handle, int v);
extern int _far _cdecl ibeot(int handle, int v);
extern int _far _cdecl ibevent(int handle, short _far *event);
extern int _far _cdecl ibfind(char _far *bdname);
extern int _far _cdecl ibgts(int handle, int v);
extern int _far _cdecl ibist(int handle, int v);
extern int _far _cdecl iblines(int handle, short _far *lines);
extern int _far _cdecl ibln(int handle, int padval, int sadval, short _far *listenflag);
extern int _far _cdecl ibloc(int handle);
extern int _far _cdecl ibonl(int handle, int v);
extern int _far _cdecl ibpad(int handle, int v);
extern int _far _cdecl ibpct(int handle);
extern int _far _cdecl ibppc(int handle, int v);
extern int _far _cdecl ibrd(int handle, void _far *buffer, long cnt);
extern int _far _cdecl ibrda(int handle, void _far *buffer, long cnt);
extern int _far _cdecl ibrdf(int handle, char _far *flname);
extern int _far _cdecl ibrpp(int handle, char _far *ppr);
extern int _far _cdecl ibrsc(int handle, int v);
extern int _far _cdecl ibrsp(int handle, char _far *spr);
extern int _far _cdecl ibrsv(int handle, int v);
extern int _far _cdecl ibsad(int handle, int v);
extern int _far _cdecl ibsic(int handle);
extern int _far _cdecl ibsre(int handle, int v);
extern void _far _cdecl ibsrq(void (_far *func)(void));
extern int _far _cdecl ibstop(int handle);
extern int _far _cdecl ibtmo(int handle, int v);
extern void _far _cdecl ibtrap(int mask, int mode);
extern int _far _cdecl ibtrg(int handle);
extern int _far _cdecl ibwait(int handle, int mask);
extern int _far _cdecl ibwrt(int handle, void _far *buffer, long cnt);
extern int _far _cdecl ibwrta(int handle, void _far *buffer, long cnt);
extern int _far _cdecl ibwrtf(int handle, char _far *flname);
extern int _far _cdecl ibpoke(int handle, int option, int value);
extern int _far _cdecl ibdiag(int handle, void _far *buffer, long cnt);
extern int _far _cdecl ibxtrc(int handle, void _far *buffer, long cnt);
extern int _far _cdecl ibwrtkey(int handle, void _far *buffer, int cnt);
extern int _far _cdecl ibrdkey(int handle, void _far *buffer, int cnt);
extern void _far _cdecl AllSpoll(int boardID, Addr4882_t _far *addrlist, short _far *resultlist);
extern void _far _cdecl DevClear(int boardID, Addr4882_t address);
extern void _far _cdecl DevClearList(int boardID, Addr4882_t _far *addrlist);
extern void _far _cdecl EnableLocal(int boardID, Addr4882_t _far *addrlist);
extern void _far _cdecl EnableRemote(int boardID, Addr4882_t _far *addrlist);
extern void _far _cdecl FindLstn(int boardID, Addr4882_t _far *padlist, Addr4882_t _far *resultlist, int limit);
extern void _far _cdecl FindRQS(int boardID, Addr4882_t _far *addrlist, short _far *result);
extern void _far _cdecl PPoll(int boardID, short _far *result);
extern void _far _cdecl PPollConfig(int boardID, Addr4882_t address, int dataLine, int lineSense);
extern void _far _cdecl PPollUnconfig(int boardID, Addr4882_t _far *addrlist);
extern void _far _cdecl PassControl(int boardID, Addr4882_t address);
extern void _far _cdecl RcvRespMsg(int boardID, void _far *buffer, long cnt, int termination);
extern void _far _cdecl ReadStatusByte(int boardID, Addr4882_t address, short _far *result);
extern void _far _cdecl Receive(int boardID, Addr4882_t address, void _far *buffer, long cnt, int termination);
extern void _far _cdecl ReceiveSetup(int boardID, Addr4882_t address);
extern void _far _cdecl ResetSys(int boardID, Addr4882_t _far *addrlist);
extern void _far _cdecl Send(int boardID, Addr4882_t address, void _far *buffer, long datacnt, int eotmode);
extern void _far _cdecl SendCmds(int boardID, void _far *buffer, long cnt);
extern void _far _cdecl SendDataBytes(int boardID, void _far *buffer, long cnt, int eotmode);
extern void _far _cdecl SendIFC(int boardID);
extern void _far _cdecl SendLLO(int boardID);
extern void _far _cdecl SendList(int boardID, Addr4882_t _far *addrlist, void _far *buffer, long datacnt, int eotmode);
extern void _far _cdecl SendSetup(int boardID, Addr4882_t _far *addrlist);
extern void _far _cdecl SetRWLS(int boardID, Addr4882_t _far *addrlist);
extern void _far _cdecl TestSRQ(int boardID, short _far *result);
extern void _far _cdecl TestSys(int boardID, Addr4882_t _far *addrlist, short _far *resultlist);
extern void _far _cdecl Trigger(int boardID, Addr4882_t address);
extern void _far _cdecl TriggerList(int boardID, Addr4882_t _far *addrlist);
extern void _far _cdecl WaitSRQ(int boardID, short _far *result);
extern void _far _cdecl GotoMultAddr(int boardID,
unsigned short type,
unsigned short (_far *addrfunc)(),
unsigned short (_far *spollfunc)());
extern void _far _cdecl GenerateREQT(int boardID, unsigned short addr);
extern void _far _cdecl GenerateREQF(int boardID, unsigned short addr);
#ifdef __cplusplus
}
#endif