info-inventor
[Top] [All Lists]

Re: Q: local header includes in libnurbs...

To: ben@xxxxxxxxxxxxx (Ben Houston)
Subject: Re: Q: local header includes in libnurbs...
From: jlim@xxxxxxxxxxxxxxxxxxxx (Jonathan Lim)
Date: Mon, 28 Aug 2000 11:21:57 -0700 (PDT)
Cc: info-inventor@xxxxxxxxxxx
In-reply-to: <IPEKIJJJKIMAFKAFMNAEMEOECHAA.ben@exocortex.org> from "Ben Houston" at Aug 28, 2000 12:16:25 PM
Sender: owner-inventor@xxxxxxxxxxx
On Mon Aug 28 09:16:25 2000, ben@xxxxxxxxxxxxx wrote:
> 
> [stuff deleted]
>
> Shouldn't it be something like this instead?
>   #include "../types.h"
> 
> The reason that this is possible is because of the following line in the
> makefile:
>   LCXXFLAGS
> = -I$(DEPTH)/include  -I../head  -DLIBRARYBUILD  -DNDEBUG -DDEBUG
> 
> I have to add all these "../" references to my ported version within _WIN32
> define blocks.  I feel that the original should probably be changed to
> include correct header referencing in the nurbs library code rather than a
> fix in the makefile.

The include directory specification in the makefile is the way to go. As long
as -I../head is specified before any other directory that may have a different
types.h, the preprocessor should pick up the right file.


              Jonathan Lim  _  Silicon Graphics  _  Mountain View
              GPS Graphics     Computer Systems        CA, USA

<Prev in Thread] Current Thread [Next in Thread>