(HDK) Linking error while compiling a plugin

   3346   1   0
User Avatar
Member
9 posts
Joined: May 2012
Online
Hi,
Not sure if i'm posting this to the correct place.
I'm trying to compile a plugin with a #include <prtio/prt_ifstream.hpp>
This is the PRT format from ThinkboxSoftware. Basically, i'm trying to make a custom PRT reader.
As soon as i create a prtio::prt_ifstream object and use it's bind function i get this linking error:
error LNK2019: unresolved external symbol “private: static union half::uif const * const half::_toFloat” (?_toFloat@half@@0QBTuif@1@B) referenced in function “public: __cdecl half:perator float(void)const ” (??Bhalf@@QEBAMXZ)
I have a suspicion that this has something to do with the linking of the Half.lib library.
I'm using visual studio 2012 and this hcustom command:
hcustom -I “CProgram Files/PRT-IO-Library/include” -I %HFS%\toolkit\include\OpenEXR\ -I %HFS%\toolkit\include\zlib -L %HFS%\custom\houdini\dsolib\ -l Half.lib SOP_prti.C
If someone has any idea what is going on here help would be greatly appreciated, thank you!
User Avatar
Member
9 posts
Joined: May 2012
Online
Turns out all i had to do was set a HCUSTOM_CFLAGS variable to -DOPENEXR_DLL -DHALF_EXPORT
Now the dll compiles.
  • Quick Links