I am experimenting with mac’s deprecated reflective loading functionalities. I have a go program that invokes the go compiler to create binaries, but apple’s implementation of reflective loading is reliant on C++ for exception handling.
As I understand it, CGO is only for C and requires a C wrapper to use C++ code, but I cannot figure out of it is possible to just link standard libraries. I tried passing -lc++ and -lc++abi as linker flags along with -L /usr/lib, and some other things, but no luck.
What would be the simplest way to do this? Please feel free to ask for elaboration if necessary, I am new to programming, go, and still learning the C toolchain, and playing with software that is slightly above my paygrade, so I might have missed some important concepts.