# Why can i not Inclue a thirdparty?

**URL:** <https://forums.unrealengine.com/t/why-can-i-not-inclue-a-thirdparty/428129>\
**Category:** C++\
**Tags:** Third-Party, unreal-engine, CPP, question\
**Created:** [June 26, 2018, 2:27am UTC](https://forums.unrealengine.com/t/why-can-i-not-inclue-a-thirdparty/428129 "2018-06-26T02:27:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![HuangMM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HuangMM](https://forums.unrealengine.com/u/HuangMM)\
**Post date:** [June 26, 2018, 2:27am UTC](https://forums.unrealengine.com/t/why-can-i-not-inclue-a-thirdparty/428129/1 "2018-06-26T02:27:37Z")

</div>

When I try to add a folder in ThirdParty folder like this :

![245412-5l6iu3fybcw034qrekv2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/4/0/440b32190601caf8642a95dcf5f039b008398c61.png)

![245413-fold.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/7/2/57227b14a111d110b7d599e729391d2b1eb5d2ec.png)  
245415-245416-  
--------------------------------------------MyTestThirdParty.build.cs-----------------------------------

```
using UnrealBuildTool;  
using System.IO;  
 
 public class MyTestThirdParty : ModuleRules

  {

        public MyTestThirdParty(TargetInfo Target)

        {

             //表示第三方库

            Type= ModuleType.External;

             //第三方库新模块根目录目录路径你可以通过其他方式来获取路径比如get { return Path.GetFullPath(Path.Combine(ModuleDirectory,"../../ThirdParty/"));}

            string MyPath= UEBuildConfiguration.UEThirdPartySourceDirectory +"MyTestThirdParty/";

            //包含的头文件路径，因为编译的库里面都是链接过的编译单元，可以认为编译单元是不包含头文件的，所以在之后的使用时还需要获取到头文件的声明信息

            PublicIncludePaths.Add(MyPath +"include/");

 

            if(Target.Platform== UnrealTargetPlatform.Win64)

            {

              //第三方静态库的路径

               PublicLibraryPaths.Add(MyPath+"lib/");

              //第三方静态库的名称

               PublicAdditionalLibraries.Add("libtest.lib");

        }

     }

}

```

and When I create a project with c++ , err:

 ![245417-thirdparty.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/0/a/d0a74b10064331a63998286252f9626b0a9f5c1d.png)

what should i do to include a thirdparty correctly???  
thank you all very much~~~
