Hello,
When compiling a VS2010 C++ project with this command
CArgsRhinoGetPolygon args;
ON_Polyline polygon;
CRhinoCommand::result rc = RhinoGetPolygon( args, polygon );
I have this error:
1> Creating library C:\Users\Pablo\Documents\Visual Studio 2010\Projects\SampleProject\x64\Release\SampleProject.lib and object C:\Users\Pablo\Documents\Visual Studio 2010\Projects\SampleProject\x64\Release\SampleProject.exp
1>cmdSampleProject.obj : error LNK2001: unresolved external symbol "enum CRhinoCommand::result __cdecl RhinoGetPolygon(class CArgsRhinoGetPolygon &,class ON_Polyline &,class CRhinoHistory *)" (?RhinoGetPolygon@@YA?AW4result@CRhinoCommand@@AEAVCArgsRhinoGetPolygon@@AEAVON_Polyline@@PEAVCRhinoHistory@@@Z)
1>C:\Users\Pablo\Documents\Visual Studio 2010\Projects\SampleProject\x64\Release\SampleProject.rhp : fatal error LNK1120: 1 unresolved externals
I’m not sure about the external dependency to add, since rhinoSdkGetPolygon.h
is included in StdAfx.h
. There’s no problem with similar commands like RhinoGetRectangle
or RhinoGetCircle
.
Any idea?
Pablo