Create a Static Library on Windows Which Is macOS and Linux Compatible
问题 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