Re: [NEWBIE] General compile question

From: Jason Wilkins (fenix@IO.COM)
Date: 10/21/98


On Wed, 21 Oct 1998, Brian wrote:

> Why?  For some reason, arena.h was not being seen by anything.  What did I
> miss that I needed to add so it would see arena.h?

Does arena.h have conditional compile statements like

#ifndef __ARENA_H__
#define __ARENA_H__

.
.
.

#endif

If so, does something accidentally define __ARENA_H__ these somewhere
else, causing the contents of arena.h to not be included?

I don't have the code here at work, so this is just a stab in the dark.
The other possiblity is that the definitions themselfs are conditionally
compiled.

The other is that there is another arena.h somewhere that is getting
included instead

The absolute best thing to do is to run

gcc -E comm.c

or

cpp comm.c

This will run the c preproccesor (cpp) only, which will show you exactly
what is being done with the include files and macros.  This shows you
exactly what is being sent to the actual C compiler.

Hope this helps.


>  - Brian

Jason Wilkins


--
         The Phoenix - President of The Artistic Intuition Company
    Caelius * Zen-X * Mirror Reflex * Runica * X-Domain * Infinite Realms
                          http://www.io.com/~fenix


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST