MantisBT - Community
View Issue Details
0031922Community[OCCT] OCCT:Configurationpublic2020-11-12 09:242020-11-21 13:27
Vico Liang 
bugmaster 
normalminor 
verifiedfixed 
[OCCT] 7.1.0 
[OCCT] 7.6.0* 
Not required
0031922: Configuration - unresolved external symbol NCollection_Lerp<Handle(Graphic3d_Camera)>::Interpolate()
Static build occt7.5 in visual studio 2017, and then link to project, there is a link issue as below:

TKV3d.lib(AIS_AnimationCamera.obj) : error LNK2019: unresolved external symbol "public: void __cdecl 
NCollection_Lerp<class opencascade::handle<class Graphic3d_Camera> >::Interpolate(double,class 
opencascade::handle<class Graphic3d_Camera> &)const " (?Interpolate@?$NCollection_Lerp@V?$handle@VGraphic3d_Camera@@@opencascade@@@@QEBAXNAEAV?$handle@VGraphic3d_Camera@@@opencascade@@@Z) 
referenced in function "protected: virtual void __cdecl AIS_AnimationCamera::update(struct AIS_AnimationProgress 
const &)" (?update@AIS_AnimationCamera@@MEAAXAEBUAIS_AnimationProgress@@@Z)
No tags attached.
child of 0027764closed apn Open CASCADE Visualization - add functionality for animation of 3D camera and interactive objects 
Issue History
2020-11-12 09:24Vico LiangNew Issue
2020-11-12 09:24Vico LiangAssigned To => kgv
2020-11-12 09:29Vico LiangNote Added: 0096679
2020-11-12 09:44kgvCategoryOCCT:Coding => OCCT:Configuration
2020-11-12 09:44kgvSummaryunresolved external symbol NCollection_Lerp<Handle(Graphic3d_Camera)>::Interpolate => Configuration - unresolved external symbol NCollection_Lerp<Handle(Graphic3d_Camera)>::Interpolate()
2020-11-12 09:44kgvDescription Updatedbug_revision_view_page.php?rev_id=23976#r23976
2020-11-12 12:02gitNote Added: 0096696
2020-11-12 12:04kgvRelationship addedchild of 0027764
2020-11-12 12:04kgvProduct Version7.5.0 => 7.1.0
2020-11-12 12:05kgvNote Added: 0096697
2020-11-12 12:16gitNote Added: 0096699
2020-11-12 16:41kgvAssigned Tokgv => Vico Liang
2020-11-12 16:41kgvStatusnew => feedback
2020-11-13 04:20Vico LiangNote Added: 0096734
2020-11-13 05:54Vico LiangAssigned ToVico Liang => kgv
2020-11-13 07:31kgvAssigned Tokgv => Vico Liang
2020-11-13 07:33kgvNote Added: 0096735
2020-11-13 07:33kgvAssigned ToVico Liang => bugmaster
2020-11-13 07:33kgvStatusfeedback => reviewed
2020-11-21 12:39bugmasterChangeset attached => occt master 026aec18
2020-11-21 12:39bugmasterStatusreviewed => verified
2020-11-21 12:39bugmasterResolutionopen => fixed
2020-11-21 12:42bugmasterNote Added: 0096931
2020-11-21 12:46bugmasterTest case number => Not required
2020-11-21 13:27gitNote Added: 0096956

Notes
(0096679)
Vico Liang   
2020-11-12 09:29   
This can be fixed by instancing the template in file Graphic3d_Camera.cxx
template NCollection_Lerp<Handle(Graphic3d_Camera)>;
(0096696)
git   
2020-11-12 12:02   
Branch CR31922 has been created by kgv.

SHA-1: 65662482bb893d62ec416952f742cb1252467758


Detailed log of new commits:

Author: kgv
Date: Thu Nov 12 12:02:44 2020 +0300

    0031922: Configuration - unresolved external symbol NCollection_Lerp<Handle(Graphic3d_Camera)>::Interpolate()
    
    A normal method Graphic3d_Camera::Interpolate() is now exported instead of
    template method NCollection_Lerp<Handle(Graphic3d_Camera)>::Interpolate().
(0096697)
kgv   
2020-11-12 12:05   
Vico, could you please check if patch CR31922 fixes the problem in your configuration?
(0096699)
git   
2020-11-12 12:16   
Branch CR31922 has been updated forcibly by kgv.

SHA-1: 6ef3dfa485c0870e65b61fdde36c7598be580e99
(0096734)
Vico Liang   
2020-11-13 04:20   
Dear kgv, I just merged the patch, it works well. Thanks for the fix.
(0096735)
kgv   
2020-11-13 07:33   
Please raise the patch
- OCCT branch: CR31922.
(0096931)
bugmaster   
2020-11-21 12:42   
Combination -
OCCT branch : IR-2020-11-20
master SHA - c5892d852bb462075f9db03f31085e35d7b59f35
a206de37fbfa0bf71bd534ae47192bbec23b8522
Products branch : IR-2020-11-20 SHA - a5d1f89f5fa83c955e6a604f57a5b590eb433b43
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.

Number of compiler warnings:
No new/fixed warnings

Regressions/Differences/Improvements:
No regressions/differences

CPU differences:
Debian80-64:
OCCT
Total CPU difference: 18024.090000000127 / 17964.340000000077 [+0.33%]
Products
Total CPU difference: 12166.12000000011 / 12169.520000000111 [-0.03%]
Windows-64-VC14:
OCCT
Total CPU difference: 19696.90625 / 19723.125 [-0.13%]
Products
Total CPU difference: 13644.875 / 13567.078125 [+0.57%]


Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention
(0096956)
git   
2020-11-21 13:27   
Branch CR31922 has been deleted by inv.

SHA-1: 6ef3dfa485c0870e65b61fdde36c7598be580e99