Using UE4 memory allocation in third party libs

Error example:

  d:\engine-plugin-ue4-experimental\Plugins\Funapi\Source\Funapi\Private\google\protobuf\extension_set_heavy.cpp(151): error C2668: 'google::protobuf::internal::cpp_type': ambiguous call to overloaded function
  d:\engine-plugin-ue4-experimental\Plugins\Funapi\Source\Funapi\Private\google\protobuf\extension_set_heavy.cpp(127): note: could be 'google::protobuf::FieldDescriptor::CppType google::protobuf::internal::cpp_type(google::protobuf::internal::FieldType)'

Did you add bUseUnityBuild = false; in both funapi_plugin_ue4.Target.cs and funapi_plugin_ue4Editor.Target.cs? Also, Make sure you execute ChangeExtensions file if you’re working on 4.21 version.

Hi, sorry was busy yesterday on another tasks, just checked with this flag and it works! Now compilation is fine - thanks a lot ! Will investigate our project and try to inject protobuf as you did. But one small question - As I understood you don’t build/link protobuf library, you just put protobuf source to your plugin to have protobuf function, is this correct ?

Could you check the question above please ?

Hello, sorry for disturbing, could you clarify the question above please ?