I am trying to compile the files below. The PosLin.cpp contains the SurTriAuto and SurTriPosRotAndQ functions below. Before adding SurTriPosRotAndQ, it compiled fine, but when I added SurTriPosRotAndQ, I am getting "invalid use of incomplete type ‘struct PosRotAndQ" error messages
I was thinking I could try moving SurTriAuto and SurTriPosRotAndQ to PosLin.h, but since they return "T*", I'm not sure what to do
I have a "t.h" file
namespace TNS
{
class T
{
public:
T();
//other stuff
}
}
"geopar.h" file has
#include "t.h"
#include "Geo/Geo.h"
class Geo;
struct PosRotAndQ;
namespace TNS
{
class GeoP;
{
public:
GeoP();
T* SurTriAuto(T* surface, Geo* geo, int p);
T* SurTriPosRotAndQ(T* surface, PosRotAndQ* sur, int p);
}
}
and "PL.h" has
#include "T/t.h"
#include "Geo/Geo.h"
struct PosRotAndQ {
TNS::T* surface;
};
class PS{
public:
PosExCode cqa(Geo* geo, POpinion* opinion, PosRotAndQ* sur)
PosRotAndQ mattersur;
}
when I add "include Pos/PL.h" to geopar.h, I get an error saying v.hpp is missing, where v.hpp is part of a 3rd-party software and it is already in my directory