note on relative header paths

52 views
Skip to first unread message

Stephane Popinet

unread,
Nov 1, 2021, 8:19:43 AM11/1/21
to basilisk-fr
Dear all,

I see quite a few codes in sandboxes using relative paths to header
files i.e. codes looking like:

#include "../../popinet/distance_point_ellipse.h"
#include "../alex_functions.h"
#include "../LS_reinit.h"
#include "../basic_geom.h"

This is clearly much better than copying these files locally (as also
seen in some sandboxes), but not as good as:

#include "popinet/distance_point_ellipse.h"
#include "alimare/alex_functions.h"
#include "alimare/LS_reinit.h"
#include "alimare/basic_geom.h"

which works because the default sandbox Makefile includes the line
-I$(DOCUMENT_ROOT)/sandbox, see:

http://basilisk.fr/sandbox/Makefile

See also my previous message on this topic:

https://groups.google.com/g/basilisk-fr/c/d8Um7O-m46I/m/mqeDILV7CwAJ

cheers,

Stephane


Reply all
Reply to author
Forward
0 new messages