:: Re: [DNG] [DN Offlist G] netman GIT…
Top Page
Delete this message
Reply to this message
Author: Steve Litt
Date:  
To: dng
Subject: Re: [DNG] [DN Offlist G] netman GIT project
On Mon, 14 Sep 2015 09:39:55 +0100
KatolaZ <katolaz@???> wrote:

> On Mon, Sep 14, 2015 at 10:26:25AM +0200, aitor_czr wrote:
> > Hi Edward,
> >
> > I thick you must change all the headers like:
> >
> > #include "paths.h"
> > #include "automated_scanner.h"
> > #include "core_functions.h"
> > #include "caller.h"
> >
> > etc... in the *.c files of the backend of netman by:
> >
> > #include "../include/paths.h"
> > #include "../include/automated_scanner.h"
> > #include "../include/core_functions.h"
> > #include "../include/caller.h"
> >
> > because they are not found by the compiler.
> >
>
>
> I think you guys must rather specify an appropriate "-I" flag to gcc
> in the Makefile. I have never ever seen "../something" in an
> #include....
>
> My2Cents
>
> KatolaZ


KatolaZ,

Back in the day I used to do #include "/path/absolute" all the time.
I'm pretty sure #include #include "../path/relative" would work too.

I prefer to annunciate the include in the source file so I don't have
to document the -I.

SteveT

Steve Litt
August 2015 featured book: Troubleshooting: Just the Facts
http://www.troubleshooters.com/tjust