How to set weld simulated bodies in ComponentToComponent?

You have to create a blueprint from your C++ class and drag that into the editor.

If for some reason you don’t want to make a blueprint, I googled “ue4 construction script c++” and found a bunch of threads about your issue and some workarounds.

It might just be better to expose your functions to blueprint and use the blueprint construction script, but it’s up to you.