This link may be useful for 64-bit compilation and the express edition: http://jenshuebel.wordpress.com/2009/02/12/visual-c-2008-express-edition-and-64-bit-targets/
Here are the steps to create a project in Visual Studio 2008 and compile a shader into a DLL. If you are using another compiler, go to the bottom of the tutorial.
Click File > New > Project to create a new project.
In the New Project window, click Win32 Project, type a name in the Name box, and click OK.
In the Win32 Application Wizard, click Next.
Select DLL as the application type, click the Empty project checkbox, and click Finish.
The Solution Explorer will show an empty project:
To compile in 64-bit, we must add a new platform from the Configuration Manager:
In the Active solution platform list, click <New...>.
And then select x64 as the solution platform, and copy the settings from the Win32 platform.
Add a .cpp file or create one:
We now have to configure the project. Right-click the project and then click Properties.
Add the Arnold SDK include folder.
Then we add the Arnold lib folder where the ai.lib file is located:
Add ai.lib to the Additional Dependencies we can link our project with Arnold:
You should now be able to compile the project. This will create a DLL in a folder next to the Solution (depending on the configuration). You must copy this .dll file into your target Arnold project. If you are using Softimage, you'll want to copy the file to the SItoA bin folder, for example, C:\solidangle\sitoa\Addons\SItoA\Application\Plugins\bin\nt-x86-64.
If you are trying to use Visual Studio Express make sure to follow these additional steps:
- First, download the Windows SDK 7.1 from the Microsoft website (you MUST have the SDK installed FIRST before trying to switch compiler configurations). The link to the website is here.
- Verify that you have the x64 compiler for Windows by going into Start->Control Panel->Programs and Features. Scroll down to the bottom and you should see this: Microsoft Visual C++ 2010 Compilers Standard - enu - x64. If you do NOT see this, then you didn't install the SDK properly! If you already installed the Visual C++ 2010 before the SDK you should deinstall the 2010 x86/x64 redistributables otherwise the SDK will not install. Then install the SDK but without compilers. After that you should install the 2010 compiler update: http://www.microsoft.com/en-us/download/details.aspx?id=4422. Also make sure that you installed the 2010 C++ Sp1 before: https://www.microsoft.com/en-us/download/details.aspx?id=8328
- You must download the Visual C++ Express package (2008 or 2010). You can get this download here in 2008 or 2010.
- Follow the instructions for compiling to 64-bit from the tutorial.
- IMPORTANT: At this time, it will NOT link. It will complain about not finding the file kernel32.lib. This is because Visual Studio is pointing to the Win32 library directories instead of the x64 directories. You should again point Visual Studio to the new location: C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib\x64 in the Linker->General->Additional Directories tab.