Link Error at UE4Editor but Succeed when packaging

I try to use a function in VulkanMemory.h. when I add VulkanRHI module dependency in my build.cs. There is a link error in Editor version(saying that unresolvable symbol), but it links success at package version. Should I also modify something in my build.cs to enable UE4Editor Version?