Skip to content

Using #define CSG_OCC results in build errors on Windows in release configuration #294

@Valzul

Description

@Valzul

Here is my compilation context :

  • MSVC 2019 - Release x64
  • Windows SDK 10.0.26100.0
  • Language Standard ISO C++ 17

When uncommenting #define CSG_OCC in CSG_Adapter.cpp (ln 26), I got multiple errors that seems all related to namespaces :

'csg': is not a member of 'carve'
'CSG': is not a member of 'carve'
'csg': the symbol to the left of a '::' must be a type
'CSG': the symbol to the left of a '::' must be a type
'OP': is not a member of 'carve'

Steps to reproduce :

  • Download the current source code
  • Open the solution IfcPlusPlus.sln with Visual Studio 2019
  • Check "Release" build
  • Add the include path to OpenCascade library
  • Uncomment #define CSG_OCC in CSG_Adapter.cpp (ln 26)
  • Hit compile

However this work for the Debug configuration, yet I can't seem to detect what configuration of the project causes this behaviour, can someone point me to what may be wrong ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions