Mail Archives: djgpp/2000/06/03/14:01:35
Richard Dawe <richdawe AT bigfoot DOT com> wrote:
>"Peter J. Farley III" wrote:
>> PMFJI here fellas
>
>Whoa, what does "PMFJI" mean? Peter M. Farley Jumps In? ;)
<Grin> No, that's "Pardon Me For Jumping In".
>> I ran into this myself recently with an open-source FSM (finite state
>> machine) application generator called libero <http://www.imatix.com>.
>> I, too, got the "ntohl redefined" error (among others), and thus
>> discovered this problem myself.
>
>I forget - why does this error appear? I looked back at the reason this
>thread started and I don't see why this happened. It looked to me like the
>originator was using stale headers from an old version of libsocket, but
>that wasn't confirmed. (I just read section 8.2 of the FAQ too, BTW).
netinet/in.h defines "ntohl", and the application I referred to also
has a "default" definition for "ntohl" and other networking functions
that happens when it can't correctly determine the "unix" environment
in which you are compiling. In my case, the application is not really
fully DJGPP-aware yet, so the application headers do the "wrong thing"
for DJGPP compilation.
<Snipped>
>> For those new to the networking libraries/headers, it would be nice to
>> see a short FAQ somewhere on what libraries are needed for what
>> networking application areas (i.e., do I need libnet AND WAT-TCP AND
>> libsocket, or just two of them, or just one? How do I choose? Are
>> there incompatibilities? In what order should they be installed?
>> Etc.)
>
>OK, here's a short FAQ, off the top of my head:
<Snipped>
Thank you, Richard! That was a most helpful exposition. It was
exactly what I was requesting. I commend you for your honesty and
clarity.
----------------------------------------------------
Peter J. Farley III (pjfarley AT nospam DOT dorsai DOT org OR
pjfarley AT nospam DOT banet DOT net)
- Raw text -