asiSheetMetalExe_Main.cpp

pdusp2

Looking around for some CAD
hi,

I ran the C# version, but there is a bigger problem with C++.
I'm trying to run SMRU sample c++,
I added the necessary libraries and headers and I still have a problem with the code, I can't understand what it needs now.
HashCode conflict?
Maybe I could ask for some advice?
Thank you
Pd

1715625494074.png



Build started at 20:41...
1>------ Build started: Project: QStudio_c, Configuration: Debug x64 ------
1>QStudio_c.cpp
1>C:\QStudio\Test20240512\QStudio_c\QStudio_c\include\ActAPI_IDataCursor.h(102,16): error C2039: 'HashCode': is not a member of '`global namespace''
1>(compiling source file 'QStudio_c.cpp')
1>C:\QStudio\Test20240512\QStudio_c\QStudio_c\include\ActAPI_IDataCursor.h(102,16): error C2664: 'Standard_Integer ActAPI_IDataCursor::Hasher::HashCode(const opencascade::handle<ActAPI_IDataCursor> &,const Standard_Integer)': cannot convert argument 1 from 'ActAPI_DataObjectId' to 'const opencascade::handle<ActAPI_IDataCursor> &'
1>(compiling source file 'QStudio_c.cpp')
1>C:\QStudio\Test20240512\QStudio_c\QStudio_c\include\ActAPI_IDataCursor.h(102,25):
1>Reason: cannot convert from 'ActAPI_DataObjectId' to 'const opencascade::handle<ActAPI_IDataCursor>'
1>C:\QStudio\Test20240512\QStudio_c\QStudio_c\include\ActAPI_IDataCursor.h(102,25):
1>No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
1>C:\QStudio\Test20240512\QStudio_c\QStudio_c\include\ActAPI_IDataCursor.h(95,36):
1>see declaration of 'ActAPI_IDataCursor::Hasher::HashCode'
1>C:\QStudio\Test20240512\QStudio_c\QStudio_c\include\ActAPI_IDataCursor.h(102,16):
1>while trying to match the argument list '(ActAPI_DataObjectId, const Standard_Integer)'
1>C:\QStudio\Test20240512\QStudio_c\QStudio_c\include\ActAPI_IParameter.h(490,16): error C2039: 'HashCode': is not a member of '`global namespace''
1>(compiling source file 'QStudio_c.cpp')
1>C:\QStudio\Test20240512\QStudio_c\QStudio_c\include\asiAlgo_ShapePartnerHasher.h(51,22): error C2039: 'HashCode': is not a member of '`global namespace''
1>(compiling source file 'QStudio_c.cpp')
1>C:\QStudio\Test20240512\QStudio_c\QStudio_c\include\asiAlgo_ShapePartnerHasher.h(51,22): error C2664: 'int asiAlgo_ShapePartnerHasher::HashCode(const TopoDS_Shape &,const int)': cannot convert argument 1 from 'const int' to 'const TopoDS_Shape &'
1>(compiling source file 'QStudio_c.cpp')
1>C:\QStudio\Test20240512\QStudio_c\QStudio_c\include\asiAlgo_ShapePartnerHasher.h(51,31):
1>Reason: cannot convert from 'const int' to 'const TopoDS_Shape'
1>C:\QStudio\Test20240512\QStudio_c\QStudio_c\include\asiSheetMetal_ClearanceInfo.h(66,16): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
 
Top