Re: Link Error when using "half"
Delio Vicini <[email protected]> Wed, 25 Feb 2015 22:09:21 +0100
| Newsgroups | gmane.comp.video.openexr.devel |
|---|---|
| Message-ID | <[email protected]> |
Thanks for the quick reply! That solved my problem and now everything is working (even though I still have to do some work on the loading code :) ). Cheers, Delio Am 25.02.2015 um 15:41 schrieb Gonzalo Garramuno: > On 25/02/15 07:10, Delio Vicini wrote: >> Hi, >> The exact linker error message is: >> >> 1>main.obj : error LNK2001: unresolved external symbol "private: >> static union half::uif const * const half::_toFloat" >> (?_toFloat@half@@0QBTuif@1@B) >> 1>..\..\bin\Release\x64\OpenEXRExample.exe : fatal error LNK1120: 1 >> unresolved externals >> >> Cheers, >> Delio > You need to add a define when compiling to a DLL. Set: > > -D OPENEXR_DLL > > in your defines when you compile with CL.exe. >