Re: Linker to_Float issue

Sean Y Chen <[email protected]>
Newsgroups gmane.comp.video.openexr.devel
Message-ID <CAAo+hKts3i9eUaQatF7JFPz-atErU2-0OyEujqRrjBvrq=Wwuw@mail.gmail.com>
Hey,

I remember having this problem. I can't quite remember what I did to solve
it, but I think I gave up on precompiled or included .sln files and used
CMake to generate my own. It's possible that solved my problem.

Sean


On Fri, Jun 20, 2014 at 12:07 PM, Nicholas Yue <[email protected]>
wrote:

>  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, Windowshttp://au.linkedin.com/in/nicholasyuehttps://vimeo.com/channels/naiadtools
>
>
> _______________________________________________
> Openexr-devel mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/openexr-devel
>
>

_______________________________________________
Openexr-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/openexr-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.