c++ custom project setting

Hi all.

I success to build OCC vc10 and its example.

 

Then, I'd like to write my own project, but i cannot include .hxx files. what are the problems?

 

I made c++ project, and for test, I want to use 

#include "gp_Pnt.hxx"

 

to do this, I did followings :

- VC++ directory - include directory : C:\OpenCASCADE7.1.0-vc10-64\opencascade-7.1.0\inc;$(IncludePath)

- VC++ directory - library directory : C:\OpenCASCADE7.1.0-vc10-64\opencascade-7.1.0\win64\vc10\lib;$(LibraryPath)

- Linker - input - Additional dependencies : 

TKVCAF.lib
TKBRep.lib
TKBool.lib
TKCAF.lib
TKCDF.lib
TKernel.lib
TKFeat.lib
TKFillet.lib
TKG2d.lib
TKG3d.lib
TKGeomAlgo.lib
TKGeomBase.lib
TKHLR.lib
TKMath.lib
TKOffset.lib
TKPrim.lib
TKService.lib
TKTopAlgo.lib
TKV3d.lib
TKOpenGl.lib

 

I thought that i finished to include files, but it wasn't i guess.

Is there any problem? or other things that i have to do?

 

The error messages are : 

1>main.obj : error LNK2019: "public: static class Standard_Type * __cdecl Standard_Type::Register(char const *,char const *,unsigned int,class opencascade::handle<class Standard_Type> const &)" (?Register@Standard_Type@@SAPAV1@PBD0IABV?$handle@VStandard_Type@@@opencascade@@@Z

and so on. error LNK 2019 and LNK 1120 were displayed. 

qa qa's picture

Hello,

try to use:

#include <gp_Pnt.hxx>

and it seems that you forgot to add TKernel.lib.

qa qa

Daewoon Kim's picture

there is TKernel.lib !!!! (linker - additional dependencies)

ganesh.rajendran_165949's picture

Dear Kim,

Did your problem resolved? I am facing the same problem. If you have solution kindly share with me.