I am trying to export a Vision Assistant script into a C++ project. The project was originally written by somebody else, who copied the necessary VA functions in so that the C code exported from the script could be used.
Now I have slightly rewritten the vision scripts, and added a couple of new steps: Mask and Brightness. These functions aren't in the project, so I need to add them myself. Initially I just copy-pasted the functions and dealt with any minor issues, but now I'm stuck on 'Error LNK2019: unresolved external symbol'.
I'm getting 3 of these errors - one for each of the 3 new functions I've added, so I've clearly just missed something out. Can anyone help me find what it could be?
The full errors are below. I have defined the 3 functions in "LPTestGeneral.h", and pasted the function body into "LPTestGeneral.cpp". Then they are all called from a separate CPP file.
LPTest error LNK2019: unresolved external symbol "int __cdecl IVA_GetIntersection(struct Image_struct *,struct IVA_Data_Struct *,int,int,int,int,int,int,int,int,struct IVA_Result_Struct * *)" (?IVA_GetIntersection@@YAHPAUImage_struct@@PAUIVA_Data_Struct@@HHHHHHHHPAPAUIVA_Result_Struct@@@Z) referenced in function "class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > > __cdecl CheckLCDSegSet1(struct Image_struct *)" (?CheckLCDSegSet1@@YA?AV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@PAUImage_struct@@@Z)
LPTest error LNK2019: unresolved external symbol "int __cdecl IVA_InitCaliperResults(struct Image_struct *,struct IVA_Data_Struct *,int,int,int,struct IVA_Result_Struct * *)" (?IVA_InitCaliperResults@@YAHPAUImage_struct@@PAUIVA_Data_Struct@@HHHPAPAUIVA_Result_Struct@@@Z) referenced in function "class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > > __cdecl CheckLCDSegSet1(struct Image_struct *)" (?CheckLCDSegSet1@@YA?AV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@PAUImage_struct@@@Z)
LPTest error LNK2019: unresolved external symbol "int __cdecl IVA_MaskFromROI(struct Image_struct *,struct ROI_struct *,int,int)" (?IVA_MaskFromROI@@YAHPAUImage_struct@@PAUROI_struct@@HH@Z) referenced in function "class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > > __cdecl CheckLCDSegSet1(struct Image_struct *)" (?CheckLCDSegSet1@@YA?AV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@PAUImage_struct@@@Z)
LPTest fatal error LNK1120: 3 unresolved externals