Skip to content

SdfFileFormat class is not DLL exported #3949

@jerry-huxtable-foundry

Description

@jerry-huxtable-foundry

The class SdfFileFormat is not marked as SDF_API. Its methods are marked as SDF_API though. This means that although the methods are exported, the type_info and vtable etc. aren't. When trying to write a file format plugin and subclassing SdfFileFormat, on Windows this causes a compiler warning:

warning C4275: non dll-interface class 'pxrInternal_v0_25_8__pxrReserved__::SdfFileFormat' used as base for dll-interface class 'MySuperFileFormat'

SdfFileFormat is the class with which we've encountered this problem. I suspect there are other public API classes which also exhibit it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions