MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0029764Community[OCCT] OCCT:Foundation Classespublic2018-05-14 14:512018-05-23 16:24
ReporterPawel 
Assigned Tobugmaster 
PrioritynormalSeverityminor 
StatustestedResolutionopen 
PlatformWindowsOSVC++ 2012OS Version64 bit
Product Version[OCCT] 7.3.0 
Target Version[OCCT] 7.3.0Fixed in Version 
Summary0029764: Foundation Classes, TColStd_MapIteratorOfPackedMapOfInteger - workaround Visual Studio Linker bug with enabled CLI
DescriptionIn 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
Steps To Reproduce
//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;
}
TagsNo tags attached.
Test case numberNot needed
Attached Files

- Relationships
child of 0029376verifiedbugmaster Open CASCADE Coding Rules, TColStd_PackedMapOfInteger - declare Iterator as nested class of map collection 

-  Notes
(0075961)
git (administrator)
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 (administrator)
2018-05-14 15:35

Branch CR29764 has been updated forcibly by kgv.

SHA-1: 062c5abe0d2be7a8bd4139d22fb2a8df3bee2a84
(0075967)
kgv (developer)
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 (manager)
2018-05-23 14:06

No remarks, please integrate
(0076185)
bugmaster (administrator)
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

- Issue History
Date Modified Username Field Change
2018-05-14 14:51 Pawel New Issue
2018-05-14 14:51 Pawel Assigned To => mpv
2018-05-14 14:57 Pawel Target Version 7.4.0* => 7.3.0
2018-05-14 15:33 kgv Assigned To mpv => abv
2018-05-14 15:33 kgv Category OCCT:Application Framework => OCCT:Foundation Classes
2018-05-14 15:33 kgv Summary Linker problem when compiling with Common Language Runtime Support => Foundation Classes, TColStd_MapIteratorOfPackedMapOfInteger - workaround Linker error with Common Language Runtime enabled
2018-05-14 15:33 kgv Steps to Reproduce Updated View Revisions
2018-05-14 15:34 git Note Added: 0075961
2018-05-14 15:35 kgv Summary Foundation 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:35 git Note Added: 0075962
2018-05-14 15:38 kgv Relationship added child of 0029376
2018-05-14 16:55 kgv Note Added: 0075967
2018-05-14 16:55 kgv Status new => resolved
2018-05-23 14:06 abv Note Added: 0076169
2018-05-23 14:06 abv Assigned To abv => bugmaster
2018-05-23 14:06 abv Status resolved => reviewed
2018-05-23 16:24 bugmaster Test case number => Not needed
2018-05-23 16:24 bugmaster Note Added: 0076185
2018-05-23 16:24 bugmaster Status reviewed => tested


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker