OpenUSD icon indicating copy to clipboard operation
OpenUSD copied to clipboard

Warning C4275

Open GreatWhite2023 opened this issue 1 year ago • 4 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

GreatWhite2023 avatar Apr 07 '24 08:04 GreatWhite2023

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

plekakis avatar Apr 08 '24 10:04 plekakis

@plekakis Is the other warning C4251?

GreatWhite2023 avatar Apr 09 '24 02:04 GreatWhite2023

My full list of current warnings: 4003 4251 4267

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

plekakis avatar Apr 09 '24 07:04 plekakis

Filed as internal issue #USD-9547

jesschimein avatar Apr 12 '24 16:04 jesschimein