1

I have a requirement to create and link libraries dynamically for my c++ codebase on windows and linux platform. I know DLL format is for windows and .so is for linux platform. But I read .so can be linked on windows platform also. My question is, can I create a common dynamic libraries (.so) to run my application on windows and linux? If yes, How?

harry
  • 105
  • 3
  • 13
  • 1
    Possible duplicate of [Using both .so and .dll on Windows](http://stackoverflow.com/questions/3233766/using-both-so-and-dll-on-windows) – Flash_Steel Jan 18 '16 at 12:51

1 Answers1

3

In my opinion a better solution would be to generate either *so or *dll depending on for what platform the SW is built. Then you link with the native tools. Recommend to read about cmake

dmi
  • 1,424
  • 1
  • 9
  • 9