Sorry, I do not know the features of the static libs used here, but here are some other thoughts that I remember from other platforms.
First of all, the problem is that class information is not completely accessible to the execution system, therefore, an error.
Ergo, a static lib either does not contain the necessary information, or the linker does not transmit information. In the latter case, you will be toasted if you do not find additional linker options that allow this feature. Therefore, read the linker manual to see if there are related parameters.
In the first case, you can first view the exported symbols with a tool (I believe that nm can do this) to make sure that the class name and its structure description are part of the symbols in lib. I donβt know how it should look, but maybe Google helps.
Another thought: what specific class does the main code refer to? If not, the linker may not include it in the final code, because it shows that it is used only in a static lib environment and therefore is not needed elsewhere. Therefore, try to see if declarations in the parameters of the compiler or linker command or in the source code pragmas can make this class generally known.
Good luck
source share