Make sure to use the appropriate runtime library for your version of Visual Studio, and for the processor architecture of your target application. The FBX libraries are organized into subdirectories under <yourFBXSDKpath>\lib according to their Visual Studio version, processor type, and build mode:
For example:
Each of those subdirectories contains several versions of the libraries, compiled with different flags. The following table presents the FBX SDK library filenames and their descriptions.
Dynamic .lib files require that their corresponding .dll file be available at application run-time (see the Application Dependency column in the table below). If you intend on using a dynamic library version of the FBX SDK with your application, you must distribute the appropriate .dll along with your executable.
| Library File | Library Description | Required Runtime Library Option | Required Preprocessor Definition |
|---|---|---|---|
libfbxsdk.lib |
Dynamic linking | FBXSDK_SHARED | |
libfbxsdk-md.lib |
Static linking | /MD |
|
libfbxsdk-mt.lib |
Static linking | /MT |
The following table provides a description of the relevant runtime library options. These descriptions can also be found at: http://msdn.microsoft.com/en-us/library/2kzt1wy3.aspx.
| Runtime Library Option | Description |
|---|---|
MT |
Causes your application to use the multithread, static version of the run-time library. Defines _MT and causes the compiler to place the library name LIBCMT.lib into the .obj file so that the linker uses LIBCMT.lib to resolve external symbols. |
MD |
Causes your application to use the multithread- and DLL-specific version of the run-time library. Defines _MT and _DLL and causes the compiler to place the library name MSVCRT.lib into the .obj file. Applications compiled with this option are statically linked to MSVCRT.lib. This library provides a layer of code that allows the linker to resolve external references. The actual working code is contained in MSVCR100.DLL, which must be available at run time to applications linked with MSVCRT.lib. |
These libraries can all be linked to Microsoft’s multithreaded C libraries. FBX SDK code, however, is not guaranteed to be thread-safe.
The instructions in this section are based on Visual Studio 2010.
Note To build and run the sample programs for the FBX SDK, see Building and Running the Sample Programs.
To create a new project, choose New > Project in the File menu.

Select PROJECT > Properties. The Property Pages dialog appears.

In the property tree on the left of the Property Pages dialog, choose Configuration Properties > C/C++ > General.
In the properties sheet on the right of the dialog, select <Edit..> in the Additional Include Directories drop-down box. The Additional Include Directories dialog appears.

In the list box on the top of the Additional Include Directories dialog, click the top blank line until you see a control to browse for directories.
In the tree on the left of the Property Pages dialog, select Code Generation.

/MD, /MDd,/MT, /MTd, and so on. Not all compiler options are available for all versions of Visual Studio (see Configuring the FBX SDK for Windows).Enter the full path for the <yourFBXSDKpath>\lib folder of the FBX SDK distribution.

In the previous step, if you selected a debug version of the FBX SDK library that uses static linking, then you must do the following:
LIBCMT, and click OK.wininet.lib, and click OK. If you are using a dynamic library version of the FBX SDK, add FBXSDK_SHARED to the preprocessor definitions of your project.
If you are using a dynamic library version of the FBX SDK, add FBXSDK_SHARED to the preprocessor definitions of your project. To do this in Visual Studio, in your project, select: PROJECT > Properties > Configuration Properties > C/C++ > Preprocessor, and edit the Preprocessor Definitions field.
Starting from FBX SDK 2012.0, the following are no longer required:
KFBX_DLLINFO preprocessor definition is no longer required for the dynamic library versions.\_SECURE_SCL=1, which is the default value for Visual Studio 2010 and later. If you are using Visual Studio 2010 or later with an older version of the FBX SDK, you need to explicitly include \_SECURE_SCL=0. If you are using Visual Studio 2008 with FBX SDK 2012 or later, you need to explicitly include \_SECURE_SCL=1. Otherwise, you can omit \_SECURE_SCL from your definitions.