M
Martin Petzold
Hello,
i have got a small problem while compiling my helloworld.c where i
include a driver class (comm.c). i compile under winXP with minGW and
have got this error:
--------------------------------------------------------------
D:\develop\spiderbot\testing>gcc hello.c
In file included from hello.c:4:
comm.c:45: parse error before "far"
comm.c:47: parse error before "far"
comm.c:47: warning: data definition has no type or storage class
comm.c:52: parse error before "far"
---------------------------------------------------------------
code snip (starting at line 45):
---------------------------------------------------------------
void (interrupt far *Serial)(); /* for origninal serial int. */
void interrupt far Handler(void);
/****************************************/
/* The actual serial interface driver */
/****************************************/
void interrupt far Handler(void)
----------------------------------------------------------------
can someone help me?
i have took out "#include <alloc.h>" at the beginning of comm.c because
this also made an error (couldent find taht file)...
thx for help!
martin petzold
i have got a small problem while compiling my helloworld.c where i
include a driver class (comm.c). i compile under winXP with minGW and
have got this error:
--------------------------------------------------------------
D:\develop\spiderbot\testing>gcc hello.c
In file included from hello.c:4:
comm.c:45: parse error before "far"
comm.c:47: parse error before "far"
comm.c:47: warning: data definition has no type or storage class
comm.c:52: parse error before "far"
---------------------------------------------------------------
code snip (starting at line 45):
---------------------------------------------------------------
void (interrupt far *Serial)(); /* for origninal serial int. */
void interrupt far Handler(void);
/****************************************/
/* The actual serial interface driver */
/****************************************/
void interrupt far Handler(void)
----------------------------------------------------------------
can someone help me?
i have took out "#include <alloc.h>" at the beginning of comm.c because
this also made an error (couldent find taht file)...
thx for help!
martin petzold