语言的选择便携式库 [英] Choice of language for portable library

查看:104
本文介绍了语言的选择便携式库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想写将从现代操作系统,如Windows,Linux和OS / X(即,它会被部署为的.dll 的.so 模块)。

I want to write a library which will be dynamically linked from other programs running on modern operating systems like Windows, Linux and OS/X (i.e. it will be deployed as a .dll or .so module).

这是在这种情况下,最合适的语言?我应该坚持纯C?或者是C ++也行?

What is the most appropriate language in that case? Should I stick with plain C? Or is C++ also ok?

推荐答案

您可以使用C或C ++的实现,但我会建议界定在纯C的接口这将是更容易整合。

You can use either C or C++ for the implementation, but I would recommend to define the interface in pure C. It will be much easier to integrate.

这篇关于语言的选择便携式库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆