开发者

Can i use windows libraries in linux and vice versa?

开发者 https://www.devze.com 2023-04-11 04:57 出处:网络
As per my knowledge, windows uses .lib and .dll extension for libraries and linux uses .a and .so. I am working on a project in ubuntu for manipulation with jpeg image files. so i want to know if thes

As per my knowledge, windows uses .lib and .dll extension for libraries and linux uses .a and .so. I am working on a project in ubuntu for manipulation with jpeg image files. so i want to know if these libraries can be used interchangeably in linux and windows? for example if have created example.so library in ubuntu and now i want to use it in some compiler in w开发者_开发问答indows...


If you're planning on running under Wine, then yes.

Otherwise the chances are small. Windows DLLs will most probably use Windows APIs not available on Linux. Even if they're not the DLLs are built for use with compilers running on Windows.

Why not use imagemagick? http://www.imagemagick.org/script/index.php

0

精彩评论

暂无评论...
验证码 换一张
取 消