如何使用gcc或g ++从.cpp制作.so和.dll [英] How to Make .so and .dll from .cpp using gcc or g++

查看:257
本文介绍了如何使用gcc或g ++从.cpp制作.so和.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好初学问题如何在Linux中从.cpp制作.so和.dll?



我有简单的项目没有线程,2 .h文件,和2.cpp文件。

解决方案

Linux 下,你通常想要。所以文件( Linux 不能消耗 Windows DLL s)。

您可以在这里找到指南:Linux共享库简介(如何创建共享)图书馆) [ ^ ]。

Hi i have beginner question how to make .so and .dll from .cpp in Linux?

I have simple project no thread , 2 .h files ,and 2 .cpp files.

解决方案

Under Linux you usually want to make .so files (Linux can''t consume Windows DLLs).
Here you may find a guide: "Intro to Linux Shared Libraries (How to Create Shared Libraries)"[^].


这篇关于如何使用gcc或g ++从.cpp制作.so和.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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