https://linen.dev logo
I'm trying a basic C++ thing, to make my custom fu...
# programming
t
I'm trying a basic C++ thing, to make my custom function
edgeEdgeAngle
located in
helpFunctions.C
visible in two other source files so that I could use
#include "helpFunctions.H"
to get it visible. I have added
helpFunctions.C
to top of
Make/files
. Here is `helpFunctions.H`:
Copy code
#ifndef helpFunctions_H
#define helpFunctions_H

double edgeEdgeAngle
(
    const vector cCoords,
    const vector p1Coords,
    const vector p2Coords
);

#endif
The error I get from wmake is
Copy code
In file included from helpFunctions.C:11:
helpFunctions.H:6:11: error: ‘vector’ does not name a type; did you mean ‘vector_H’?
so I tried to add
#include "vector.H"
to various places, but failing so far to do the right thing. What am I missing?