harry
harry

Reputation: 105

Can we use .so files on windows?

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?

Upvotes: 1

Views: 4843

Answers (1)

dmi
dmi

Reputation: 1479

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

Upvotes: 3

Related Questions