Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Many C4275 warning compiling on Windows #182

Closed
AWhetter opened this issue Feb 15, 2016 · 2 comments
Closed

Many C4275 warning compiling on Windows #182

AWhetter opened this issue Feb 15, 2016 · 2 comments

Comments

@AWhetter
Copy link

When compiling the shared libraries of IlmBase on Windows, there are many print outs of the warning

IlmBase\Iex\IexBaseExc.h(143) : warning C4275: non dll-interface class 'Iex::BaseExc' used as base for dll-interface class 'Iex::ArgExc'
        IlmBase\Iex\IexBaseExc.h(60) : see declaration of 'Iex::BaseExc'
        IlmBase\Iex\IexBaseExc.h(143) : see declaration of 'Iex::ArgExc'

This also occurs for every other exception in IexBaseExc.h at inherits from Iex::BaseExc.

When compiling external projects that use Iex, the error shows there as well.

@meshula
Copy link
Contributor

meshula commented Feb 16, 2016

The problem stems from the fact that Iex::BaseExc is subclassed from std::string which does not have a DLL adornment. Although it is easy to refactor Iex::BaseEXc so that it does not derive from string, that is unfortunately a breaking change for some applications.

@cary-ilm
Copy link
Member

Looking into the OpenEXR issue backlog. This was addressed in v2.3.0, Iex::BaseExc is no longer derived from std::string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants