PixarAnimationStudios / OpenUSD

Universal Scene Description
http://www.openusd.org
Other
6.12k stars 1.22k forks source link

Warning C4275 #3036

Open GreatWhite2023 opened 7 months ago

GreatWhite2023 commented 7 months ago

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_24pxrReserved::Vt_ArrayBase' used as base for dll-interface class 'pxrInternal_v0_24pxrReserved::VtArray'

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

plekakis commented 7 months ago

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

GreatWhite2023 commented 7 months ago

@plekakis Is the other warning C4251?

plekakis commented 7 months ago

My full list of current warnings: 4003 4251 4267

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

jesschimein commented 6 months ago

Filed as internal issue #USD-9547