Houdini 11 and Visual Studio 2005

   3777   3   2
User Avatar
Member
3 posts
Joined: 1月 2011
Offline
Hi,

I know many posters have asked questions about compiling HDK plugins in Visual Studio. I've followed the directions, and am still having issues when linking.

The errors I receive are:

Error 153 error LNK2019: unresolved external symbol “__declspec(dllimport) public: __thiscall theTmpDirLockStaticInit::theTmpDirLockStaticInit(void)” (__imp_??0theTmpDirLockStaticInit@@QAE@XZ) referenced in function “void __cdecl `dynamic initializer for ‘theTmpDirLockInitializer’'(void)” (??__EtheTmpDirLockInitializer@@YAXXZ) HFXDLL.obj

Error 154 error LNK2019: unresolved external symbol “__declspec(dllimport) public: __thiscall theTmpDirLockStaticInit::~theTmpDirLockStaticInit(void)” (__imp_??1theTmpDirLockStaticInit@@QAE@XZ) referenced in function “void __cdecl `dynamic atexit destructor for ‘theTmpDirLockInitializer’'(void)” (??__FtheTmpDirLockInitializer@@YAXXZ) HFXDLL.obj

I have attached the code which I am trying to compile (it is essentially empty).

Any suggestions? Do I need to download the 32bit HDK in order to compile a 32bit DLL?

Thanks,
Lesley.
User Avatar
Member
345 posts
Joined:
Offline
Just a note, in order to compile 64bit plugins you need to use 64bit compiler which is missing in VS Express. HDK version depends on houdini version (command line) you are currenty running.
User Avatar
Member
255 posts
Joined: 8月 2009
Offline
try to compile source code with command line and you see If this is problem with setting in visual studio or something other.

if it is VS, wath this: http://vimeo.com/17195536 [vimeo.com]
https://vimeo.com/user3251535 [vimeo.com]
https://twitter.com/milansuk [twitter.com]
https://github.com/milansuk [github.com]
User Avatar
Member
3 posts
Joined: 1月 2011
Offline
I was able to get things working. I wanted a 32bit DLL, so I downloaded the 32bit version of Houdini.

Thanks for your quick responses.
  • Quick Links