Problems with Netifdev.h

C

Che

Hello,

I am trying to build ucip stack using Borland 4.5. I have a problem
in building the stack, where in one of the ".c" files refers to
(netifdev.h)

I am getting an error message which says "Error netifdev.h 84:
Declaration terminated incorrectly" and the Line it refers to has the
following content
" void (*interrupt)(struct iface*);"

I also used -A- and -AT compiler options as suggested by few folks
out here (Borland Manual suggests to use -A- instead of -ANSI), but in
vain.

Link to ucip source code is: http://sourceforge.net/projects/ucip/

What else could be the problem ? Any ideas ?

Thanks.
Che
 
I

Irrwahn Grausewitz

(e-mail address removed) (Che) wrote in
<SNIP>

Questions about how to build certain third party code with
certain compilers on certain platforms is rarely topical to
comp.lang.c, as you've already learned by reading the fine
faq at: http://www.eskimo.com/~scs/C-faq/top.html :)

Please refer to a newsgroup specialized to your problem or
compiler or try to get information from where you obtained
the code.

Regards,
Irrwahn
 
M

Martin Dickopp

I am trying to build ucip stack using Borland 4.5. I have a problem
in building the stack, where in one of the ".c" files refers to
(netifdev.h)

I am getting an error message which says "Error netifdev.h 84:
Declaration terminated incorrectly" and the Line it refers to has the
following content
" void (*interrupt)(struct iface*);"

I also used -A- and -AT compiler options as suggested by few folks
out here (Borland Manual suggests to use -A- instead of -ANSI), but in
vain.

Link to ucip source code is: http://sourceforge.net/projects/ucip/

In the future, please don't post the whole question twice, especially not
within only four days. When you want to add information, post a followup
to the original thread.

That said, I see on the Sourceforge project page that this project has
a mailing list. Have you considered asking there? I doesn't look like
a problem with the C language to me, so the project developers might be
able to help you better than this newsgroup.

Martin
 
R

Richard Heathfield

Che said:
Hello,

I am trying to build ucip stack using Borland 4.5. I have a problem
in building the stack, where in one of the ".c" files refers to
(netifdev.h)

I am getting an error message which says "Error netifdev.h 84:
Declaration terminated incorrectly" and the Line it refers to has the
following content
" void (*interrupt)(struct iface*);"

This is valid C code, provided the compiler can see a forward reference for
struct iface. It defines 'interrupt' to be a pointer to a function, a
"function taking a pointer to struct iface and returning no value".

I seem to see this question in my dreams, nowadays. It was asked here just
the other day, and shortly before that I answered the same question in IRC.
Has to be the same bloke, surely? But asking the question again doesn't
change the reality of the right answer, not even when you switch from IRC
to Usenet!

The code is valid C. If your compiler won't accept it, it's probably because
it's not a C compiler; that is, it has some extension or other which gets
in the way of its conformance. In this case, it's probably that magic word
"interrupt". If you can turn off the relevant extension, do so, and that
should fix it. Otherwise, you have no choice but to hack the source to get
rid of the i-word.
I also used -A- and -AT compiler options as suggested by few folks
out here (Borland Manual suggests to use -A- instead of -ANSI), but in
vain.

That's of concern, since it seems to indicate that Borland haven't disabled
/all/ their extensions even when asked so to do.
 
C

Che

Hi,

1. Sorry for Multiple Postings as I wasn't aware of the protocol followed here.

2. I have no access to IRC and I have not posted this question anywhere else.
Surprisingly the same thing is also duplicated here
http://dbforums.com/t900566.html ... I have no idea ....

3. Thank you guys for the reply.

Che
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,078
Messages
2,570,572
Members
47,204
Latest member
MalorieSte

Latest Threads

Top