PixarAnimationStudios / OpenUSD

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

Warning C4275 #3036

Open GreatWhite2023 opened 1 month ago

GreatWhite2023 commented 1 month 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 1 month ago

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

GreatWhite2023 commented 1 month ago

@plekakis Is the other warning C4251?

plekakis commented 1 month 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 1 month ago

Filed as internal issue #USD-9547