如何建立及建立在C ++中使用共享库 [英] How to create & use Shared Library in C++

查看:143
本文介绍了如何建立及建立在C ++中使用共享库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用外部动态链接库访问以下功能?

How do i access the following function using external dynamically linked library?

double sum(double a, double b)
{
     return (a+b);
}




** P.S>我对这些东西一无所知.只想知道事情是如何工作的!


作业系统:Windows(preferable)& Linux




**P.S> I don''t ''ve any idea about these stuffs. Just wanna know how things work!


Operating System: Windows(preferable) & Linux

推荐答案

嗨absk007
请查看以下链接:
Linux:
http://www.yolinux.com/TUTORIALS/LibraryArchives-StaticAndDynamic.html

Windows:
http://www.icynorth.com/development/createdlltutorial.html
如何创建C中的DLL库,然后将其与C#一起使用
Hi absk007
Please see following links:
Linux:
http://www.yolinux.com/TUTORIALS/LibraryArchives-StaticAndDynamic.html

Windows:
http://www.icynorth.com/development/createdlltutorial.html
How to create a DLL library in C and then use it with C#


在CP的此处查看大量文章: ^ ]

您会发现非常不同级别的信息.

祝你好运!

:thumbsup:
Take a look at the big set of articles here in CP: http://www.codeproject.com/KB/DLL/[^]

You will find information at very different levels.

Good luck!

:thumbsup:


《 Windows编程》中的一章谈论您的问题
a chapter in《Windows Programming》talks about your question


这篇关于如何建立及建立在C ++中使用共享库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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