On 20/06/14 6:54 AM, Jerome Tulip wrote:
I want to use OpenEXR in my application, however after building all
the needed libraries (and even trying with pre-compiled downloaded
from the internet).
Everything goes fine, but when I compile a project that use OpenEXR I get
/unresolved external symbol "__declspec(dllimport) union half::uif *
_toFloat" (__imp_?_toFloat@@3PATuif@half@@A) /
I've googled the issue and added as well the OPENEXR_DLL directive,
the Half.lib is in the additional dependencies list of the project.
Hi Jerome,
I don't have a Windows machine to verify but looking at the half.h
file, I guess you will need to define HALF_EXPORTS to get the symbols
exported.
Cheers
--
Nicholas Yue
Graphics - RenderMan, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
https://vimeo.com/channels/naiadtools
_______________________________________________
Openexr-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/openexr-devel