Visual Studio 2015 LNK2001: unresolved external symbol _purecall

Having trouble installing or compiling FreeCAD? Get help here.
User avatar
Rafalisko
Posts: 5
Joined: Tue Oct 18, 2016 6:37 pm

Visual Studio 2015 LNK2001: unresolved external symbol _purecall

Postby Rafalisko » Tue Oct 18, 2016 6:48 pm

Hi Guys

I am a newbie to FreeCAD community and trying to compile FreeCAD. Once successfuly produced Visual Studio 2015 Solution I get the following output during compilation and can't identify the reason. Please, provide some suggestions.

Rafal

1>------ Rebuild All started: Project: ZERO_CHECK, Configuration: Debug x64 ------
1> Checking Build System
1> CMake does not need to re-run because D:/FreeCAD/Build/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Build/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/3rdParty/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/3rdParty/salomesmesh/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Base/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/App/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Main/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Points/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Points/App/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Complete/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Complete/App/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Test/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Image/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Image/App/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Mesh/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Mesh/App/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Part/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Part/App/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Material/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/PartDesign/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/PartDesign/App/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Raytracing/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Raytracing/App/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Drawing/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Drawing/App/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Sketcher/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Sketcher/App/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Robot/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Robot/App/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/ReverseEngineering/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/ReverseEngineering/App/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/MeshPart/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/MeshPart/App/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Draft/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Start/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Start/App/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Idf/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Import/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Import/App/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Inspection/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Inspection/App/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Arch/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Assembly/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Assembly/App/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Fem/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Fem/App/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Sandbox/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Sandbox/App/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Ship/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/OpenSCAD/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Plot/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Spreadsheet/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Spreadsheet/App/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Path/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Mod/Path/App/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/src/Doc/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/data/CMakeFiles/generate.stamp is up-to-date.
1> CMake does not need to re-run because D:/FreeCAD/Build/data/examples/CMakeFiles/generate.stamp is up-to-date.
2>------ Rebuild All started: Project: SMDS, Configuration: Debug x64 ------
2> Building Custom Rule D:/FreeCAD/freecad-master/src/3rdParty/salomesmesh/CMakeLists.txt
2> CMake does not need to re-run because D:\FreeCAD\Build\src\3rdParty\salomesmesh\CMakeFiles\generate.stamp is up-to-date.
2> SMDS_EdgePosition.cpp
2> Unknown compiler version - please run the configure tests and report the results
2> SMDS_FaceOfEdges.cpp
2> Unknown compiler version - please run the configure tests and report the results
2> SMDS_FaceOfNodes.cpp
2> Unknown compiler version - please run the configure tests and report the results
2> SMDS_FacePosition.cpp
2> Unknown compiler version - please run the configure tests and report the results
2> SMDS_IteratorOfElements.cpp
2> Unknown compiler version - please run the configure tests and report the results
2> SMDS_MemoryLimit.cpp
2> SMDS_Mesh.cpp
2> Unknown compiler version - please run the configure tests and report the results
2> SMDS_MeshEdge.cpp
2> Unknown compiler version - please run the configure tests and report the results
2> SMDS_MeshElement.cpp
2> Unknown compiler version - please run the configure tests and report the results
2> SMDS_MeshElementIDFactory.cpp
2> Unknown compiler version - please run the configure tests and report the results
2> SMDS_MeshFace.cpp
2> Unknown compiler version - please run the configure tests and report the results
2> SMDS_MeshGroup.cpp
2> Unknown compiler version - please run the configure tests and report the results
2> SMDS_MeshIDFactory.cpp
2> SMDS_MeshNode.cpp
2> Unknown compiler version - please run the configure tests and report the results
2> SMDS_MeshObject.cpp
2> SMDS_MeshVolume.cpp
2> Unknown compiler version - please run the configure tests and report the results
2> SMDS_PolygonalFaceOfNodes.cpp
2> Unknown compiler version - please run the configure tests and report the results
2> SMDS_PolyhedralVolumeOfNodes.cpp
2> Unknown compiler version - please run the configure tests and report the results
2> SMDS_Position.cpp
2> Unknown compiler version - please run the configure tests and report the results
2> SMDS_QuadraticEdge.cpp
2> Unknown compiler version - please run the configure tests and report the results
2> Generating Code...
2> Compiling...
2> SMDS_QuadraticFaceOfNodes.cpp
2> Unknown compiler version - please run the configure tests and report the results
2> SMDS_QuadraticVolumeOfNodes.cpp
2> Unknown compiler version - please run the configure tests and report the results
2> SMDS_SpacePosition.cpp
2> Unknown compiler version - please run the configure tests and report the results
2> SMDS_VertexPosition.cpp
2> Unknown compiler version - please run the configure tests and report the results
2> SMDS_VolumeOfFaces.cpp
2> Unknown compiler version - please run the configure tests and report the results
2> SMDS_VolumeOfNodes.cpp
2> Unknown compiler version - please run the configure tests and report the results
2> SMDS_VolumeTool.cpp
2> Unknown compiler version - please run the configure tests and report the results
2> Generating Code...
2> Creating library D:/FreeCAD/Build/lib/Debug/SMDS_d.lib and object D:/FreeCAD/Build/lib/Debug/SMDS_d.exp
2>SMDS_VertexPosition.obj : error LNK2001: unresolved external symbol _purecall
2>SMDS_VolumeOfFaces.obj : error LNK2001: unresolved external symbol _purecall
2>SMDS_VolumeOfNodes.obj : error LNK2001: unresolved external symbol _purecall
2>SMDS_VolumeTool.obj : error LNK2001: unresolved external symbol _purecall
2>SMDS_QuadraticEdge.obj : error LNK2001: unresolved external symbol _purecall
2>SMDS_QuadraticFaceOfNodes.obj : error LNK2001: unresolved external symbol _purecall
2>SMDS_QuadraticVolumeOfNodes.obj : error LNK2001: unresolved external symbol _purecall
2>SMDS_SpacePosition.obj : error LNK2001: unresolved external symbol _purecall
2>SMDS_MeshVolume.obj : error LNK2001: unresolved external symbol _purecall
2>SMDS_PolygonalFaceOfNodes.obj : error LNK2001: unresolved external symbol _purecall
2>SMDS_PolyhedralVolumeOfNodes.obj : error LNK2001: unresolved external symbol _purecall
2>SMDS_Position.obj : error LNK2001: unresolved external symbol _purecall
2>SMDS_MeshElementIDFactory.obj : error LNK2001: unresolved external symbol _purecall
2>SMDS_MeshFace.obj : error LNK2001: unresolved external symbol _purecall
2>SMDS_MeshGroup.obj : error LNK2001: unresolved external symbol _purecall
2>SMDS_MeshNode.obj : error LNK2001: unresolved external symbol _purecall
2>SMDS_IteratorOfElements.obj : error LNK2001: unresolved external symbol _purecall
2>SMDS_Mesh.obj : error LNK2001: unresolved external symbol _purecall
2>SMDS_MeshEdge.obj : error LNK2001: unresolved external symbol _purecall
2>SMDS_MeshElement.obj : error LNK2001: unresolved external symbol _purecall
2>SMDS_EdgePosition.obj : error LNK2001: unresolved external symbol _purecall
2>SMDS_FaceOfEdges.obj : error LNK2001: unresolved external symbol _purecall
2>SMDS_FaceOfNodes.obj : error LNK2001: unresolved external symbol _purecall
2>SMDS_FacePosition.obj : error LNK2001: unresolved external symbol _purecall
2>SMDS_VolumeOfFaces.obj : error LNK2001: unresolved external symbol __imp__invalid_parameter
2>SMDS_VolumeOfNodes.obj : error LNK2001: unresolved external symbol __imp__invalid_parameter
2>SMDS_VolumeTool.obj : error LNK2001: unresolved external symbol __imp__invalid_parameter
2>SMDS_QuadraticEdge.obj : error LNK2001: unresolved external symbol __imp__invalid_parameter
2>SMDS_QuadraticFaceOfNodes.obj : error LNK2001: unresolved external symbol __imp__invalid_parameter
2>SMDS_QuadraticVolumeOfNodes.obj : error LNK2001: unresolved external symbol __imp__invalid_parameter
2>SMDS_VertexPosition.obj : error LNK2001: unresolved external symbol __imp__invalid_parameter
2>SMDS_MeshNode.obj : error LNK2001: unresolved external symbol __imp__invalid_parameter
2>SMDS_MeshVolume.obj : error LNK2001: unresolved external symbol __imp__invalid_parameter
2>SMDS_PolygonalFaceOfNodes.obj : error LNK2001: unresolved external symbol __imp__invalid_parameter
2>SMDS_PolyhedralVolumeOfNodes.obj : error LNK2001: unresolved external symbol __imp__invalid_parameter
2>SMDS_MeshElementIDFactory.obj : error LNK2001: unresolved external symbol __imp__invalid_parameter
2>SMDS_MeshFace.obj : error LNK2001: unresolved external symbol __imp__invalid_parameter
2>SMDS_MeshGroup.obj : error LNK2001: unresolved external symbol __imp__invalid_parameter
2>SMDS_MeshIDFactory.obj : error LNK2001: unresolved external symbol __imp__invalid_parameter
2>SMDS_IteratorOfElements.obj : error LNK2001: unresolved external symbol __imp__invalid_parameter
2>SMDS_Mesh.obj : error LNK2001: unresolved external symbol __imp__invalid_parameter
2>SMDS_MeshEdge.obj : error LNK2001: unresolved external symbol __imp__invalid_parameter
2>SMDS_MeshElement.obj : error LNK2001: unresolved external symbol __imp__invalid_parameter
2>SMDS_EdgePosition.obj : error LNK2001: unresolved external symbol __imp__invalid_parameter
2>SMDS_FaceOfEdges.obj : error LNK2001: unresolved external symbol __imp__invalid_parameter
2>SMDS_FaceOfNodes.obj : error LNK2001: unresolved external symbol __imp__invalid_parameter
2>SMDS_FacePosition.obj : error LNK2001: unresolved external symbol __imp__invalid_parameter
2>SMDS_VolumeTool.obj : error LNK2001: unresolved external symbol memcpy
2>SMDS_MeshGroup.obj : error LNK2001: unresolved external symbol memcpy
2>SMDS_PolyhedralVolumeOfNodes.obj : error LNK2001: unresolved external symbol memcpy
2>SMDS_VertexPosition.obj : error LNK2001: unresolved external symbol memcpy
2>SMDS_VolumeOfNodes.obj : error LNK2001: unresolved external symbol memcpy
2>SMDS_EdgePosition.obj : error LNK2001: unresolved external symbol memcpy
2>SMDS_FacePosition.obj : error LNK2001: unresolved external symbol memcpy
2>SMDS_Mesh.obj : error LNK2001: unresolved external symbol memcpy
2>SMDS_MeshElement.obj : error LNK2001: unresolved external symbol memcpy
2>SMDS_VolumeTool.obj : error LNK2001: unresolved external symbol __imp_memmove
2>SMDS_QuadraticFaceOfNodes.obj : error LNK2001: unresolved external symbol __imp_memmove
2>SMDS_QuadraticVolumeOfNodes.obj : error LNK2001: unresolved external symbol __imp_memmove
2>SMDS_VertexPosition.obj : error LNK2001: unresolved external symbol __imp_memmove
2>SMDS_VolumeOfNodes.obj : error LNK2001: unresolved external symbol __imp_memmove
2>SMDS_MeshElement.obj : error LNK2001: unresolved external symbol __imp_memmove
2>SMDS_MeshGroup.obj : error LNK2001: unresolved external symbol __imp_memmove
2>SMDS_PolygonalFaceOfNodes.obj : error LNK2001: unresolved external symbol __imp_memmove
2>SMDS_PolyhedralVolumeOfNodes.obj : error LNK2001: unresolved external symbol __imp_memmove
2>SMDS_EdgePosition.obj : error LNK2001: unresolved external symbol __imp_memmove
2>SMDS_FaceOfNodes.obj : error LNK2001: unresolved external symbol __imp_memmove
2>SMDS_FacePosition.obj : error LNK2001: unresolved external symbol __imp_memmove
2>SMDS_Mesh.obj : error LNK2001: unresolved external symbol __imp_memmove
2>SMDS_VolumeOfNodes.obj : error LNK2001: unresolved external symbol strlen
2>SMDS_VolumeTool.obj : error LNK2001: unresolved external symbol strlen
2>SMDS_QuadraticFaceOfNodes.obj : error LNK2001: unresolved external symbol strlen
2>SMDS_QuadraticVolumeOfNodes.obj : error LNK2001: unresolved external symbol strlen
2>SMDS_VertexPosition.obj : error LNK2001: unresolved external symbol strlen
2>SMDS_VolumeOfFaces.obj : error LNK2001: unresolved external symbol strlen
2>SMDS_MeshNode.obj : error LNK2001: unresolved external symbol strlen
2>SMDS_PolygonalFaceOfNodes.obj : error LNK2001: unresolved external symbol strlen
2>SMDS_PolyhedralVolumeOfNodes.obj : error LNK2001: unresolved external symbol strlen
2>SMDS_QuadraticEdge.obj : error LNK2001: unresolved external symbol strlen
2>SMDS_Mesh.obj : error LNK2001: unresolved external symbol strlen
2>SMDS_MeshEdge.obj : error LNK2001: unresolved external symbol strlen
2>SMDS_MeshElement.obj : error LNK2001: unresolved external symbol strlen
2>SMDS_MeshGroup.obj : error LNK2001: unresolved external symbol strlen
2>SMDS_EdgePosition.obj : error LNK2001: unresolved external symbol strlen
2>SMDS_FaceOfEdges.obj : error LNK2001: unresolved external symbol strlen
2>SMDS_FaceOfNodes.obj : error LNK2001: unresolved external symbol strlen
2>SMDS_FacePosition.obj : error LNK2001: unresolved external symbol strlen
2>SMDS_VolumeOfFaces.obj : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
2>SMDS_VolumeOfNodes.obj : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
2>SMDS_VolumeTool.obj : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
2>SMDS_QuadraticEdge.obj : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
2>SMDS_QuadraticFaceOfNodes.obj : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
2>SMDS_QuadraticVolumeOfNodes.obj : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
2>SMDS_VertexPosition.obj : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
2>SMDS_MeshNode.obj : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
2>SMDS_MeshVolume.obj : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
2>SMDS_PolygonalFaceOfNodes.obj : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
2>SMDS_PolyhedralVolumeOfNodes.obj : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
2>SMDS_MeshElementIDFactory.obj : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
2>SMDS_MeshFace.obj : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
2>SMDS_MeshGroup.obj : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
2>SMDS_MeshIDFactory.obj : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
2>SMDS_IteratorOfElements.obj : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
2>SMDS_Mesh.obj : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
2>SMDS_MeshEdge.obj : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
2>SMDS_MeshElement.obj : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
2>SMDS_EdgePosition.obj : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
2>SMDS_FaceOfEdges.obj : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
2>SMDS_FaceOfNodes.obj : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
2>SMDS_FacePosition.obj : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
2>MSVCRTD.lib(throw_bad_alloc.obj) : error LNK2001: unresolved external symbol _CxxThrowException
2>SMDS_VertexPosition.obj : error LNK2001: unresolved external symbol _CxxThrowException
2>SMDS_VolumeOfFaces.obj : error LNK2001: unresolved external symbol _CxxThrowException
2>SMDS_VolumeOfNodes.obj : error LNK2001: unresolved external symbol _CxxThrowException
2>SMDS_VolumeTool.obj : error LNK2001: unresolved external symbol _CxxThrowException
2>SMDS_QuadraticEdge.obj : error LNK2001: unresolved external symbol _CxxThrowException
2>SMDS_QuadraticFaceOfNodes.obj : error LNK2001: unresolved external symbol _CxxThrowException
2>SMDS_QuadraticVolumeOfNodes.obj : error LNK2001: unresolved external symbol _CxxThrowException
2>SMDS_SpacePosition.obj : error LNK2001: unresolved external symbol _CxxThrowException
2>SMDS_MeshNode.obj : error LNK2001: unresolved external symbol _CxxThrowException
2>SMDS_MeshVolume.obj : error LNK2001: unresolved external symbol _CxxThrowException
2>SMDS_PolygonalFaceOfNodes.obj : error LNK2001: unresolved external symbol _CxxThrowException
2>SMDS_PolyhedralVolumeOfNodes.obj : error LNK2001: unresolved external symbol _CxxThrowException
2>SMDS_MeshElementIDFactory.obj : error LNK2001: unresolved external symbol _CxxThrowException
2>SMDS_MeshFace.obj : error LNK2001: unresolved external symbol _CxxThrowException
2>SMDS_MeshGroup.obj : error LNK2001: unresolved external symbol _CxxThrowException
2>SMDS_MeshIDFactory.obj : error LNK2001: unresolved external symbol _CxxThrowException
2>SMDS_IteratorOfElements.obj : error LNK2001: unresolved external symbol _CxxThrowException
2>SMDS_Mesh.obj : error LNK2001: unresolved external symbol _CxxThrowException
2>SMDS_MeshEdge.obj : error LNK2001: unresolved external symbol _CxxThrowException
2>SMDS_MeshElement.obj : error LNK2001: unresolved external symbol _CxxThrowException
2>SMDS_EdgePosition.obj : error LNK2001: unresolved external symbol _CxxThrowException
2>SMDS_FaceOfEdges.obj : error LNK2001: unresolved external symbol _CxxThrowException
2>SMDS_FaceOfNodes.obj : error LNK2001: unresolved external symbol _CxxThrowException
2>SMDS_FacePosition.obj : error LNK2001: unresolved external symbol _CxxThrowException
2>SMDS_VolumeOfNodes.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3
2>SMDS_VolumeTool.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3
2>MSVCRTD.lib(gshandlereh.obj) : error LNK2001: unresolved external symbol __CxxFrameHandler3
2>SMDS_QuadraticVolumeOfNodes.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3
2>SMDS_SpacePosition.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3
2>SMDS_VertexPosition.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3
2>SMDS_VolumeOfFaces.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3
2>SMDS_PolyhedralVolumeOfNodes.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3
2>SMDS_Position.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3
2>SMDS_QuadraticEdge.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3
2>SMDS_QuadraticFaceOfNodes.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3
2>SMDS_MeshNode.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3
2>SMDS_MeshObject.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3
2>SMDS_MeshVolume.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3
2>SMDS_PolygonalFaceOfNodes.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3
2>SMDS_MeshElementIDFactory.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3
2>SMDS_MeshFace.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3
2>SMDS_MeshGroup.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3
2>SMDS_MeshIDFactory.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3
2>SMDS_IteratorOfElements.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3
2>SMDS_Mesh.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3
2>SMDS_MeshEdge.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3
2>SMDS_MeshElement.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3
2>SMDS_EdgePosition.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3
2>SMDS_FaceOfEdges.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3
2>SMDS_FaceOfNodes.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3
2>SMDS_FacePosition.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3
2>SMDS_QuadraticFaceOfNodes.obj : error LNK2001: unresolved external symbol __imp__wassert
2>SMDS_VolumeTool.obj : error LNK2001: unresolved external symbol __imp__wassert
2>SMDS_IteratorOfElements.obj : error LNK2001: unresolved external symbol __imp__wassert
2>SMDS_Mesh.obj : error LNK2001: unresolved external symbol __imp__wassert
2>SMDS_MeshElement.obj : error LNK2001: unresolved external symbol __imp__wassert
2>SMDS_QuadraticEdge.obj : error LNK2001: unresolved external symbol __imp__wassert
2>SMDS_Mesh.obj : error LNK2019: unresolved external symbol memset referenced in function "void __cdecl std::_Uninitialized_default_fill_n1<class SMDS_MeshNode const * *,unsigned __int64,class std::allocator<class SMDS_MeshNode const *> >(class SMDS_MeshNode const * *,unsigned __int64,struct std::_Wrap_alloc<class std::allocator<class SMDS_MeshNode const *> > &,struct std::integral_constant<bool,1>)" (??$_Uninitialized_default_fill_n1@PEAPEBVSMDS_MeshNode@@_KV?$allocator@PEBVSMDS_MeshNode@@@std@@@std@@YAXPEAPEBVSMDS_MeshNode@@_KAEAU?$_Wrap_alloc@V?$allocator@PEBVSMDS_MeshNode@@@std@@@0@U?$integral_constant@_N$00@0@@Z)
2>SMDS_PolygonalFaceOfNodes.obj : error LNK2001: unresolved external symbol memset
2>SMDS_QuadraticFaceOfNodes.obj : error LNK2001: unresolved external symbol memset
2>SMDS_QuadraticVolumeOfNodes.obj : error LNK2001: unresolved external symbol memset
2>SMDS_Mesh.obj : error LNK2019: unresolved external symbol __RTDynamicCast referenced in function "public: bool __cdecl SMDS_Mesh::ChangeElementNodes(class SMDS_MeshElement const *,class SMDS_MeshNode const * * const,int)" (?ChangeElementNodes@SMDS_Mesh@@QEAA_NPEBVSMDS_MeshElement@@QEAPEBVSMDS_MeshNode@@H@Z)
2>SMDS_VolumeTool.obj : error LNK2019: unresolved external symbol sqrt referenced in function "public: double __cdecl XYZ::Magnitude(void)" (?Magnitude@XYZ@@QEAANXZ)
2>MSVCRTD.lib(ehvecdtr.obj) : error LNK2019: unresolved external symbol terminate referenced in function "int __cdecl ArrayUnwindFilter(struct _EXCEPTION_POINTERS *)" (?ArrayUnwindFilter@@YAHPEAU_EXCEPTION_POINTERS@@@Z)
2>MSVCRTD.lib(utility_desktop.obj) : error LNK2001: unresolved external symbol terminate
2>MSVCRTD.lib(dll_dllmain.obj) : error LNK2001: unresolved external symbol __C_specific_handler
2>MSVCRTD.lib(ehvecdtr.obj) : error LNK2001: unresolved external symbol __C_specific_handler
2>MSVCRTD.lib(ehvecctr.obj) : error LNK2001: unresolved external symbol __C_specific_handler
2>MSVCRTD.lib(_error_.obj) : error LNK2001: unresolved external symbol __C_specific_handler
2>MSVCRTD.lib(utility.obj) : error LNK2001: unresolved external symbol __C_specific_handler
2>MSVCRTD.lib(new_scalar.obj) : error LNK2019: unresolved external symbol _callnewh referenced in function "void * __cdecl operator new(unsigned __int64)" (??2@YAPEAX_K@Z)
2>MSVCRTD.lib(new_scalar.obj) : error LNK2019: unresolved external symbol malloc referenced in function "void * __cdecl operator new(unsigned __int64)" (??2@YAPEAX_K@Z)
2>MSVCRTD.lib(delete_scalar.obj) : error LNK2019: unresolved external symbol _free_dbg referenced in function "void __cdecl operator delete(void *)" (??3@YAXPEAX@Z)
2>MSVCRTD.lib(_init_.obj) : error LNK2019: unresolved external symbol _CrtDbgReport referenced in function _CRT_RTC_INIT
2>MSVCRTD.lib(_init_.obj) : error LNK2019: unresolved external symbol _CrtDbgReportW referenced in function _CRT_RTC_INITW
2>MSVCRTD.lib(thread_safe_statics.obj) : error LNK2001: unresolved external symbol _CrtDbgReportW
2>MSVCRTD.lib(_error_.obj) : error LNK2019: unresolved external symbol __stdio_common_vsprintf_s referenced in function _vsprintf_s_l
2>MSVCRTD.lib(utility.obj) : error LNK2019: unresolved external symbol _seh_filter_dll referenced in function __scrt_dllmain_exception_filter
2>MSVCRTD.lib(utility.obj) : error LNK2019: unresolved external symbol _configure_narrow_argv referenced in function "public: static int __cdecl __scrt_narrow_argv_policy::configure_argv(void)" (?configure_argv@__scrt_narrow_argv_policy@@SAHXZ)
2>MSVCRTD.lib(utility.obj) : error LNK2019: unresolved external symbol _initialize_narrow_environment referenced in function __scrt_dllmain_after_initialize_c
2>MSVCRTD.lib(utility.obj) : error LNK2019: unresolved external symbol _initialize_onexit_table referenced in function __scrt_initialize_onexit_tables
2>MSVCRTD.lib(utility.obj) : error LNK2019: unresolved external symbol _register_onexit_function referenced in function _onexit
2>MSVCRTD.lib(utility.obj) : error LNK2019: unresolved external symbol _execute_onexit_table referenced in function __scrt_dllmain_uninitialize_c
2>MSVCRTD.lib(utility.obj) : error LNK2019: unresolved external symbol _crt_atexit referenced in function _onexit
2>MSVCRTD.lib(utility.obj) : error LNK2019: unresolved external symbol _crt_at_quick_exit referenced in function at_quick_exit
2>MSVCRTD.lib(utility.obj) : error LNK2019: unresolved external symbol _cexit referenced in function __scrt_dllmain_uninitialize_c
2>MSVCRTD.lib(thread_safe_statics.obj) : error LNK2019: unresolved external symbol __vcrt_InitializeCriticalSectionEx referenced in function "int __cdecl __scrt_initialize_thread_safe_statics(void)" (?__scrt_initialize_thread_safe_statics@@YAHXZ)
2>MSVCRTD.lib(dll_dllmain.obj) : error LNK2019: unresolved external symbol _initterm referenced in function "int __cdecl dllmain_crt_process_attach(struct HINSTANCE__ * const,void * const)" (?dllmain_crt_process_attach@@YAHQEAUHINSTANCE__@@QEAX@Z)
2>MSVCRTD.lib(dll_dllmain.obj) : error LNK2019: unresolved external symbol _initterm_e referenced in function "int __cdecl dllmain_crt_process_attach(struct HINSTANCE__ * const,void * const)" (?dllmain_crt_process_attach@@YAHQEAUHINSTANCE__@@QEAX@Z)
2>MSVCRTD.lib(throw_bad_alloc.obj) : error LNK2019: unresolved external symbol __std_exception_copy referenced in function "public: __cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@Z)
2>MSVCRTD.lib(throw_bad_alloc.obj) : error LNK2019: unresolved external symbol __std_exception_destroy referenced in function "public: virtual __cdecl std::exception::~exception(void)" (??1exception@std@@UEAA@XZ)
2>MSVCRTD.lib(_pdblkup_.obj) : error LNK2019: unresolved external symbol _wmakepath_s referenced in function "int __cdecl GetPdbDllPathFromFilePath(wchar_t const *,wchar_t *,unsigned __int64)" (?GetPdbDllPathFromFilePath@@YAHPEB_WPEA_W_K@Z)
2>MSVCRTD.lib(_pdblkup_.obj) : error LNK2019: unresolved external symbol _wsplitpath_s referenced in function "int __cdecl GetPdbDllPathFromFilePath(wchar_t const *,wchar_t *,unsigned __int64)" (?GetPdbDllPathFromFilePath@@YAHPEB_WPEA_W_K@Z)
2>MSVCRTD.lib(_pdblkup_.obj) : error LNK2019: unresolved external symbol wcscpy_s referenced in function "int __cdecl GetPdbDllPathFromFilePath(wchar_t const *,wchar_t *,unsigned __int64)" (?GetPdbDllPathFromFilePath@@YAHPEB_WPEA_W_K@Z)
2>MSVCRTD.lib(_pdblkup_.obj) : error LNK2019: unresolved external symbol __vcrt_GetModuleFileNameW referenced in function "struct HINSTANCE__ * __cdecl GetPdbDll(void)" (?GetPdbDll@@YAPEAUHINSTANCE__@@XZ)
2>MSVCRTD.lib(_pdblkup_.obj) : error LNK2019: unresolved external symbol __vcrt_GetModuleHandleW referenced in function "struct HINSTANCE__ * __cdecl GetPdbDll(void)" (?GetPdbDll@@YAPEAUHINSTANCE__@@XZ)
2>MSVCRTD.lib(_pdblkup_.obj) : error LNK2019: unresolved external symbol __vcrt_LoadLibraryExW referenced in function "struct HINSTANCE__ * __cdecl GetPdbDll(void)" (?GetPdbDll@@YAPEAUHINSTANCE__@@XZ)
2>MSVCRTD.lib(tncleanup.obj) : error LNK2019: unresolved external symbol __std_type_info_destroy_list referenced in function "void __cdecl __scrt_uninitialize_type_info(void)" (?__scrt_uninitialize_type_info@@YAXXZ)
2>D:\FreeCAD\Build\bin\SMDS_d.dll : fatal error LNK1120: 41 unresolved externals
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========
wmayer
Site Admin
Posts: 15487
Joined: Thu Feb 19, 2009 10:32 am

Re: Visual Studio 2015 LNK2001: unresolved external symbol _purecall

Postby wmayer » Tue Oct 18, 2016 6:57 pm

Unknown compiler version - please run the configure tests and report the results
Could it be that the cmake version you use is too old to detect VS 2015?
User avatar
Rafalisko
Posts: 5
Joined: Tue Oct 18, 2016 6:37 pm

Re: Visual Studio 2015 LNK2001: unresolved external symbol _purecall

Postby Rafalisko » Tue Oct 18, 2016 7:45 pm

Thanks for a prompt reply!

My cmake version is 3.7.0-rc1, rather most recent one, i think, and installed 2 weeks ago.

I can easily obtain VS2015 solution generated with my cmake for some basic tutorial project and compile it with no single error. That's why I think my cmake is fine and the linker error I get for freeCAD source must be attributed to some other issue. Besides, I get no message on unknown compiler while building my simple tutorial example.

Any other thoughts?

Rafal
wmayer
Site Admin
Posts: 15487
Joined: Thu Feb 19, 2009 10:32 am

Re: Visual Studio 2015 LNK2001: unresolved external symbol _purecall

Postby wmayer » Wed Oct 19, 2016 7:21 am

Here is the explanation for the message:
Unknown compiler version - please run the configure tests and report the results
http://stackoverflow.com/questions/3076 ... -0-vs-2015

Obviously the boost version might be too old. Which version do you have? And where did you get all the needed libs from? As far as I know our libpack is built for VS 2013 and there is not yet one built for VS 2015. In case you use the libpack for VS 2015 then this may cause the linker errors.
User avatar
Rafalisko
Posts: 5
Joined: Tue Oct 18, 2016 6:37 pm

Re: Visual Studio 2015 LNK2001: unresolved external symbol _purecall

Postby Rafalisko » Wed Oct 19, 2016 5:23 pm

Followed instructions carefully. Seems like this hint did not help.

For reference I attach screenshot of my CMake gui with most relevant information on boost configuration.
Untitled.png
Untitled.png (93.69 KiB) Viewed 8005 times
User avatar
sgrogan
Posts: 5636
Joined: Wed Oct 22, 2014 5:02 pm

Re: Visual Studio 2015 LNK2001: unresolved external symbol _purecall

Postby sgrogan » Wed Oct 19, 2016 6:44 pm

Rafalisko wrote: For reference I attach screenshot of my CMake gui with most relevant information on boost configuration.
Boost_INCLUDE_DIR is pointing to D:/FreeCAD/freecad-master/include. I think it should be D:/Boost/include
But where did you get the libraries located in D:/FreeCAD/freecad-master?
User avatar
Rafalisko
Posts: 5
Joined: Tue Oct 18, 2016 6:37 pm

Re: Visual Studio 2015 LNK2001: unresolved external symbol _purecall

Postby Rafalisko » Wed Oct 19, 2016 7:03 pm

1. I tried to set up Boost_INCLUDE_DIR as you suggest, but somehow it is always changed to what can be seen on the screenshot when I click Generate button.
2. Libraries in "D:/FreeCAD/freecad-master" are from the FreeCADLibs_11.0_x64_VC12.7z archive or downloaded by GIT from the repository (git clone git://git.code.sf.net/p/free-cad/code freecad-master).
User avatar
sgrogan
Posts: 5636
Joined: Wed Oct 22, 2014 5:02 pm

Re: Visual Studio 2015 LNK2001: unresolved external symbol _purecall

Postby sgrogan » Wed Oct 19, 2016 7:18 pm

Rafalisko wrote:2. Libraries in "D:/FreeCAD/freecad-master" are from the FreeCADLibs_11.0_x64_VC12.7z archive or downloaded by GIT from the repository (git clone git://git.code.sf.net/p/free-cad/code freecad-master).
As wmayer pointed out in his second post this is not going to work. These libs were compiled with VC12 which is VS2013 and they will not work with VC14 VS2015. You will either need to down grade the compiler or build all of the libs in the libpack yourself or find pre-compiled binaries built with Vs2015 (They don't all exist, I've looked)
Also if you are trying to build from current master, there are some recent new dependencies. See Here: viewtopic.php?f=4&t=16874
User avatar
Rafalisko
Posts: 5
Joined: Tue Oct 18, 2016 6:37 pm

Re: Visual Studio 2015 LNK2001: unresolved external symbol _purecall

Postby Rafalisko » Thu Oct 20, 2016 6:59 pm

Thanks guys, going back to VS2013 solved all problems.

Rafal