For $reasons$, I need to build my project as libraries using different compilers and then link them together. I am on MacOS and am trying to blend XCode and GCC.
I’ve set up a MWE on GitHub here with a longer explanation of the situation.
I think the problem is that the two compilers are using different standard libraries. This causes the linker to be unable to find desired symbols. When I try to force the same standard library, the secondary compiler (gcc) is not able to find the standard library headers.
Any help is appreciated,
Rob