MantisBT - Community
View Issue Details
0029764Community[OCCT] OCCT:Foundation Classespublic2018-05-14 14:512018-06-29 21:18
Pawel 
abv 
normalminor 
closedfixed 
WindowsVC++ 201264 bit
[OCCT] 7.3.0 
[OCCT] 7.3.0[OCCT] 7.3.0 
Not needed
0029764: Foundation Classes, TColStd_MapIteratorOfPackedMapOfInteger - workaround Visual Studio Linker bug with enabled CLI
In a C++ mixed-mode assembly (VS2012) instantiating TColStd_MapIteratorOfPackedMapOfInteger gives a linker error: LNK2022: metadata operation failed (8013119F) : A TypeRef exists which should, but does not, have a corresponding TypeDef: (TColStd_intMapNode).

In order to resolve this problem I have to compile TColStd_PackedMapOfInteger.cxx within the project.

I observe this problem with OCCT 7.3.0 Beta
//compile with /clr
#pragma comment (lib , "TKernel.lib")

#include <TColStd_HPackedMapOfInteger.hxx>
#include <TColStd_MapIteratorOfPackedMapOfInteger.hxx>

int _tmain(int argc, _TCHAR* argv[])
{
Handle_TColStd_HPackedMapOfInteger hMap = new TColStd_HPackedMapOfInteger();
TColStd_MapIteratorOfPackedMapOfInteger itr(hMap->Map());
return 0;
}
No tags attached.
child of 0029376closed bugmaster Open CASCADE Coding Rules, TColStd_PackedMapOfInteger - declare Iterator as nested class of map collection 
Issue History
2018-05-14 14:51PawelNew Issue
2018-05-14 14:51PawelAssigned To => mpv
2018-05-14 14:57PawelTarget Version7.4.0 => 7.3.0
2018-05-14 15:33kgvAssigned Tompv => abv
2018-05-14 15:33kgvCategoryOCCT:Application Framework => OCCT:Foundation Classes
2018-05-14 15:33kgvSummaryLinker problem when compiling with Common Language Runtime Support => Foundation Classes, TColStd_MapIteratorOfPackedMapOfInteger - workaround Linker error with Common Language Runtime enabled
2018-05-14 15:33kgvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=19069#r19069
2018-05-14 15:34gitNote Added: 0075961
2018-05-14 15:35kgvSummaryFoundation Classes, TColStd_MapIteratorOfPackedMapOfInteger - workaround Linker error with Common Language Runtime enabled => Foundation Classes, TColStd_MapIteratorOfPackedMapOfInteger - workaround Visual Studio Linker bug with enabled CLI
2018-05-14 15:35gitNote Added: 0075962
2018-05-14 15:38kgvRelationship addedchild of 0029376
2018-05-14 16:55kgvNote Added: 0075967
2018-05-14 16:55kgvStatusnew => resolved
2018-05-23 14:06abvNote Added: 0076169
2018-05-23 14:06abvAssigned Toabv => bugmaster
2018-05-23 14:06abvStatusresolved => reviewed
2018-05-23 16:24bugmasterTest case number => Not needed
2018-05-23 16:24bugmasterNote Added: 0076185
2018-05-23 16:24bugmasterStatusreviewed => tested
2018-05-24 16:02abvChangeset attached => occt master 3d77e962
2018-05-24 16:02abvAssigned Tobugmaster => abv
2018-05-24 16:02abvStatustested => verified
2018-05-24 16:02abvResolutionopen => fixed
2018-06-23 13:56gitNote Added: 0076945
2018-06-29 21:13aivFixed in Version => 7.3.0
2018-06-29 21:18aivStatusverified => closed

Notes
(0075961)
git   
2018-05-14 15:34   
Branch CR29764 has been created by kgv.

SHA-1: 95693289805aaaa1aa6d9f1258087a4f20d4ebd8


Detailed log of new commits:

Author: kgv
Date: Mon May 14 15:33:55 2018 +0300

    0029764: Foundation Classes, TColStd_MapIteratorOfPackedMapOfInteger - workaround Linker error with Common Language Runtime enabled
(0075962)
git   
2018-05-14 15:35   
Branch CR29764 has been updated forcibly by kgv.

SHA-1: 062c5abe0d2be7a8bd4139d22fb2a8df3bee2a84
(0075967)
kgv   
2018-05-14 16:55   
Please take a look onto workaround in the patch.

http://jenkins-test-11.nnov.opencascade.com/view/CR29764-master-KGV/ [^]
(0076169)
abv   
2018-05-23 14:06   
No remarks, please integrate
(0076185)
bugmaster   
2018-05-23 16:24   
Combination -
OCCT branch : CR29764 SHA - 062c5abe0d2be7a8bd4139d22fb2a8df3bee2a84
Products branch : master SHA - 300cf879a836fb8a5c4636713070ca9cf544749f
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:
Debian70-64:
OCCT
Total CPU difference: 18303.059999999845 / 18243.73999999987 [+0.33%]
Products
Total CPU difference: 7513.160000000051 / 7505.440000000054 [+0.10%]
Windows-64-VC10:
OCCT
Total CPU difference: 17956.57310549851 / 18049.78370299853 [-0.52%]
Products
Total CPU difference: 7679.991630399949 / 7697.713343999945 [-0.23%]


Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention
(0076945)
git   
2018-06-23 13:56   
Branch CR29764 has been deleted by kgv.

SHA-1: 062c5abe0d2be7a8bd4139d22fb2a8df3bee2a84