Skip to content

build: fix declaration mismatch for unity builds on Windows - #5360

Open
lgritz wants to merge 1 commit into
AcademySoftwareFoundation:mainfrom
lgritz:lg-exrlinkage
Open

build: fix declaration mismatch for unity builds on Windows#5360
lgritz wants to merge 1 commit into
AcademySoftwareFoundation:mainfrom
lgritz:lg-exrlinkage

Conversation

@lgritz

@lgritz lgritz commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

Windows Unity builds might combine exrinput.cpp and exrinput_c.cpp into one translation unit. The forward declaration in exrinput.cpp lacked OIIO_EXPORT while the definition in exrinput_c.cpp has it, causing MSVC error. I'm not sure why this never failed before today!

Assisted-by: Claude Code / Sonnet 5

Windows Unity builds might combine exrinput.cpp and exrinput_c.cpp
into one translation unit. The forward declaration in exrinput.cpp
lacked OIIO_EXPORT while the definition in exrinput_c.cpp has it,
causing MSVC error. I'm not sure why this never failed before today!

Assisted-by: Claude Code / Sonnet 5

Signed-off-by: Larry Gritz <lg@larrygritz.com>
@lgritz lgritz changed the title fix(openexr): fix declaration mismatch for unity builds on Windows build: fix declaration mismatch for unity builds on Windows Aug 2, 2026
@lgritz lgritz added build / testing / port / CI Affecting the build system, tests, platform support, porting, or continuous integration. windows Problems specific to MS Windows OS labels Aug 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build / testing / port / CI Affecting the build system, tests, platform support, porting, or continuous integration. windows Problems specific to MS Windows OS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant