building with opencascade 7.0.0 pre-compiled libraries

I downloaded occ 7.0.0 64bit vs12 and ran the exe extracting everything. I created a c++ win32 console application in VS2015. In the project settings i set the include directory to a folder containing all the headers and the library directory to a folder conatining all the libs. in additional dependencies i added all the libs as follows:

FWOSPlugin.lib
TKBin.lib
TKBinL.lib
TKBinTObj.lib
TKBinXCAF.lib
TKBO.lib
TKBool.lib
TKBRep.lib
TKCAF.lib
TKCDF.lib
TKD3DHost.lib
TKDCAF.lib
TKDraw.lib
TKernel.lib
TKFeat.lib
TKFillet.lib
TKG2d.lib
TKG3d.lib
TKGeomAlgo.lib
TKGeomBase.lib
TKHLR.lib
TKIGES.lib
TKIVtk.lib
TKIVtkDraw.lib
TKLCAF.lib
TKMath.lib
TKMesh.lib
TKMeshVS.lib
TKOffset.lib
TKOpenGl.lib
TKPrim.lib
TKQADraw.lib
TKService.lib
TKShHealing.lib
TKStd.lib
TKStdL.lib
TKSTEP.lib
TKSTEP209.lib
TKSTEPAttr.lib
TKSTEPBase.lib
TKSTL.lib
TKTObj.lib
TKTObjDRAW.lib
TKTopAlgo.lib
TKTopTest.lib
TKV3d.lib
TKVCAF.lib
TKViewerTest.lib
TKVRML.lib
TKXCAF.lib
TKXDEDRAW.lib
TKXDEIGES.lib
TKXDESTEP.lib
TKXMesh.lib
TKXml.lib
TKXmlL.lib
TKXmlTObj.lib
TKXmlXCAF.lib
TKXSBase.lib
TKXSDRAW.lib

These are the libs located in the vc12/lib folder. 

when i try to build this code:

#include <iostream>

#include <STEPControl_Reader.hxx>

using std::cout;
using std::endl;

int main(int argsv, char** argsc) {
    
    cout << "Hello World!" << endl;

    system("pause");
    return 0;
}

i get lnk2019 errors such as this one

ERROR    LNK2019    Unsolved external symbol "public: static void * __cdecl Standard::Allocate(unsigned int)" (?Allocate@Standard@@SAPAXI@Z) referenced in function "public: static void * __cdecl Standard_Transient::operator new(unsigned int)" (??2Standard_Transient@@SAPAXI@Z)     

Searched the forum and google but couldnt find a solution. any ideas? did i miss a key step? i suspect my issue lies with how i linked the libraries but, i think i got em all.

Thanks,

Aaron

Aaron McDonald's picture

I figured it out. I copied all the cxx files into a single folder and added it to my additional includes list and everything compiles/links.