How do I use UCustomMeshComponent?

I research a little more about this question. I thought that UCustomMeshComponent is a part of engine,but it is part of CustomMeshPlugin. You should try CUSTOMMESHCOMPONENT_API instead of ENGINE_API.

class CUSTOMMESHCOMPONENT_API UCustomMeshComponent : public UMeshComponent

Let me know if it helps to you.