(see next post for the question about makefiles!)
I have this line in ScanScene.h
bool ScanScene(LiDARScan &Scan, LiDARScanner &Scanner, vector<geom_Triangle> &Scene);
and in ScanScene.cpp
bool ScanScene(LiDARScan &Scan, LiDARScanner &Scanner, vector<geom_Triangle> &Scene)
{
...
}
then in another file, I
#include "ScanScene.h";
int main()
{
LiDARScan Scan;
LiDARScanner Scanner;
vector<geom_Triangle> Triangles;
bool success = ScanScene(Scan, Scanner, Triangles);
}
But when I compile it says
SingleScan.o(.text+0x339): In function `main':
: undefined reference to `ScanScene(LiDARScan&, LiDARScanner&, std::vector<geom_Triangle, std::allocator<geom_Triangle> >&)'
Can anyone see a problem with this?