Mac创建简单的dylib? [英] Mac creating simple dylib?

查看:61
本文介绍了Mac创建简单的dylib?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用XCode为我的客户端创建一个dylib.dylib仅具有两个功能start和stop.我正在制作此单声道的人,他们将其称为dylib.我该如何创建呢?谢谢.

I need to create a dylib using XCode for my client. The dylib will have only two function start, and stop. The people i m making this for use mono and they will call this dylib. How can I create this? Thanks.

推荐答案

Xcode具有可可,C ++和C动态库的项目模板.只需创建其中之一,然后向其中添加功能即可.

Xcode has project templates for Cocoa, C++ and C dynamic libraries. Just create one of these and add you functions to it.

这篇关于Mac创建简单的dylib?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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