PixarAnimationStudios / OpenUSD

Universal Scene Description

Home Page:http://www.openusd.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Warning C4275

GreatWhite2023 opened this issue · comments

Description of Issue

When we compile our code integrating USD toolkit 24.03 in Visual Studio 2022 on Windows, the compile reports C4275, such as
E:\git_adsk\baiwUSD\USD\debug\include\pxr\base\vt\array.h(228,24): warning C4275: non dll-interface class 'pxrInternal_v0_24__pxrReserved__::Vt_ArrayBase' used as base for dll-interface class 'pxrInternal_v0_24__pxrReserved__::VtArray<pxrInternal_v0_24__pxrReserved__::GfVec4i>'

Steps to Reproduce

Include "pxr/base/vt/array.h" in cpp file, then compile with VS 2022.

System Information (OS, Hardware)

Windows 10, Visual Studio 2022

Package Versions

24.03

Build Flags

I get same issue (along with other similar warnings).

@plekakis Is the other warning C4251?

My full list of current warnings:
4003
4251
4267

Disabling them seems fine and I have no runtime issues, but worth investigating.

Filed as internal issue #USD-9547