info-inventor
[Top] [All Lists]

Q: local header includes in libnurbs...

To: <info-inventor@xxxxxxxxxxx>
Subject: Q: local header includes in libnurbs...
From: "Ben Houston" <ben@xxxxxxxxxxxxx>
Date: Mon, 28 Aug 2000 12:16:25 -0400
Importance: Normal
Sender: owner-inventor@xxxxxxxxxxx
Hi,

<an aside>
Should I be spamming this list with these types of questions?  What would be
proper etiquette?
</an aside>

I noticed in the nurbs/libnurbs and the nurbs/client directories all the
*.c++ files access header files in the directory nurbs/head using just local
header references.

For example the source file
   \nurbs\clients\isocurveeval.c++
references the header
   \nurbs\head\types.h
using just a local include like
  #include "types.h"
even though the header is not in the local directory.

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.

Take care,
-ben houston
www.exocortex.org/~ben



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