I would like to generate a Static Library file in Windows using MSVC / IXX which is macOS and Linux compatible.
I'm using C
(Let's say C99
) and the functions are really simple. For example:
void AddArray(float* mA, float* mB, float* mC, int numElements){
int ii;
for(ii = 0; ii < numElements; ii++){
mC[ii] = mA[ii] + mB[ii];
}
}
Is there a way to build the Library only once on Windows and use it everywhere?
If not on windows, could it be done on Linux and work on Windows and macOS?
The idea is compile once with the same compiler and not use MinGW
on Linux for instance.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…