# Unresolved external symbol - Kinect Lirary

**URL:** <https://forums.unrealengine.com/t/unresolved-external-symbol-kinect-lirary/298230>\
**Category:** Community & Industry Discussion\
**Tags:** linker, library, kinect, linker-error, unreal-engine, link, question\
**Created:** [November 5, 2014, 4:58pm UTC](https://forums.unrealengine.com/t/unresolved-external-symbol-kinect-lirary/298230 "2014-11-05T16:58:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Creedzy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Creedzy](https://forums.unrealengine.com/u/Creedzy)\
**Post date:** [November 5, 2014, 4:58pm UTC](https://forums.unrealengine.com/t/unresolved-external-symbol-kinect-lirary/298230/1 "2014-11-05T16:58:12Z")

</div>

Hi guys,  
Im trying to make a plugin for Kinect 1.8, and I am currently trying to load the kinect library, but I ran into some issues that I cant resolve for 2 days now. I am getting this error and i have no clue what it means:

1\>LINK : warning LNK4001: no object files specified; libraries used  
1\>LINK : error LNK2001: unresolved external symbol \_DllMainCRTStartup  
1\>C:\Users\nas\Documents\Unreal Projects\Kinect1\Plugins\Kinect2\Binaries\Win64\UE4Editor-Kinect2.dll : fatal error LNK1120: 1 unresolved externals

This is my build file:

```
using System.IO;
namespace UnrealBuildTool.Rules
{
	public class Kinect2 : ModuleRules
	{
        public Kinect2(TargetInfo Target)
		{
			PublicIncludePaths.AddRange(
				new string[] {
					"Kinect2/Public",
                    "Kinect2/Classes"
                    
                    // ... add public include paths required here ...
				}
				);

			PrivateIncludePaths.AddRange(
				new string[] {
					"Kinect2/Private",
                    
					// ... add other private include paths required here ...
				}
				);

			PublicDependencyModuleNames.AddRange(
				new string[]
				{
					"Core", 
                    "CoreUObject", 
                    "Engine",
                    "Slate",
                    "InputDevice",
                    "InputCore",
                     "Kinect2"
                    
					// ... add other public dependencies that you statically link with here ...
				}
				);

			PrivateDependencyModuleNames.AddRange(
				new string[]
				{
                    "Core",
                    "CoreUObject",
                    "Engine"
					// ... add private dependencies that you statically link with here ...
				}
				);

			DynamicallyLoadedModuleNames.AddRange(
				new string[]
				{
                    "Kinect2"
					// ... add any modules that your module loads dynamically here ...
				}
				);
            LoadLibrary(Target);
            
		}
        public bool LoadLibrary(TargetInfo Target)
        {
            Type = ModuleType.External;
            bool isLibrarySupported = false;

            string ModulePath = Path.GetDirectoryName(RulesCompiler.GetModuleFilename(this.GetType().Name));
            string LibraryPath = Path.Combine(ModulePath, "ThirdParty", "KinectLib");
           
            string ArchitecturePath = "";

            if (Target.Platform == UnrealTargetPlatform.Win64 &&
                WindowsPlatform.Compiler == WindowsCompiler.VisualStudio2013)
            {
                ArchitecturePath = "amd64";

                isLibrarySupported = true;
            }
            else if (Target.Platform == UnrealTargetPlatform.Win32 &&
              WindowsPlatform.Compiler == WindowsCompiler.VisualStudio2013)
            {
               
                ArchitecturePath = "x86";

                isLibrarySupported = true;
            }

            if (isLibrarySupported==true)
            {
                // Add the architecture spacific path to the library files
                PublicAdditionalLibraries.Add(Path.Combine(LibraryPath, "lib", ArchitecturePath, "Kinect10.lib"));
                // Add a more generic path to the include header files
                PublicIncludePaths.Add(Path.Combine(LibraryPath, "inc"));
            }
            
            Definitions.Add(string.Format("WITH_KinectLib_BINDING={0}", isLibrarySupported ? 1 : 0));
            
            return isLibrarySupported;

        }
	}
}

```

Im not quite sure what else to include, so if you require something else, I will put it down.

---

<div class="post-metadata">

**Author:** ![Plant434](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/plant434/32/88718_2.png) [@Plant434](https://forums.unrealengine.com/u/Plant434)\
**Post date:** [February 27, 2022, 10:26am UTC](https://forums.unrealengine.com/t/unresolved-external-symbol-kinect-lirary/298230/2 "2022-02-27T10:26:14Z")

</div>

Hello there. Did you resolved the problem? I ran into the same problem
