C++ Resources

Updated on Nov 1  2020



Deborah R. Fowler | HDK hcustom on Windows

Deborah R. Fowler



click here for HDK Resources


hcustom on windows

Updated on  March 1  2015

Setting up compiling for HDK Code

On Windows you will need to have a few things in place in order for hcustom to run which depends on your houdini install.

On my personal computer: ie. houdini-13.0.582-win64-vc9.exe
The vc9 indicates that it will be using VS 2008 VC folder and Microsoft SDK's.

1. Install Microsoft Visual Studios 2008. You can find this on your MyScad on the Resources Tab/MSDN Software Downloads (this download may take time - on my previous page I mention the download did not work. I tried it 3/1/2014 and had success but it was slow). See note here about future versions.

2. Make sure MinGW is installed on your machine - you likely have done this already depending on what IDE you have choosen. Instructions here.
3. In a Houdini Command Line Tools window set your MSVCDir environment variable in the following manner:

Open your Windows start menu and go to All Programs / Side Effects Software / Houdini 13.0.582 / Utilities / Command Line Tools
In the window type in the following:

    # Set MSVCDir to point to the Microsoft Visual C++ installed location.
    set MSVCDir=C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC

    cd %HFS%\toolkit
    xcopy /S samples C:\samples
    cd C:\samples\SOP
    hcustom.exe SOP_Star.C

You can also test it by downloading SOP_Star.C and SOP_Star.h directly (zip here).

NOTE: The command line tool is just a cmd window with the Houdini environment variable set, so you still are in MS-DOS - dir instead of ls
You can now make your own custom nodes in C++ for Houdini - go back to the previous page to see some beginner examples.


As of 3/1/2015 I have successfully tested this using Windows 7 OS.
Here is what a clean hcustom compile should look like:

If you wish to check what version of c++ you are using type c++ -v