Software-as-a-Service(软件即服务)
Welcome To My Home!
posts - 112, comments - 215, trackbacks - 0, articles - 34
IT博客
::
首页
::
新随笔
::
联系
::
聚合
::
管理
Matlab--mcc命令大全
Posted on 2006-12-12 19:11
济公
阅读(10358)
评论(6)
编辑
收藏
引用
所属分类:
VCMatlab
创建动态链接库主要有两种方法: 一种是使用Matlab 为VC++ IDE提供的Add-in。这种方法比较简单,方便快捷,只要在VC++中创建工程的时候选择Matlab Project Wizard,并且在接下来的Step 1 中的Visual Matlab Application Type选择Shared M-DLL 就可以了。接下来就是添加*.m 文件, 进行编译了。另一种方法就是使用Matlab 的mcc 命令将*.m文件编译为动态链接库( *.DLL)。因为Add-in 也是调用Compiler 的命令mcc 进行编译工作的, 而且有时候这个Add-in 还会出现不能使用的情况, 因此这里主要讨论使用mcc 命令的方法。
关于mcc 有很多参数可以使用, 而且有多种用法,主要参数如下:
Bold entries in the Comment/Options column indicate default values
-a
filename
Add filename to the CTF archive
无
-b
Generate Excel-compatible formula function
Requires MATLAB Builder for Excel
-B filename[:arg[,arg]]
Replace -B filename on the mcc command line with the contents of filename
The file should contain only mcc command line options. These are MathWorks included options files:
-B csharedlib:foo
C shared library
-B cpplib:fooC++ library
-c
生成C语言包装函数
Equivalent to
-T codegen
-d directory
输出到指定目录
无
-f filename
Use the specified options file, filename, when calling mbuild
mbuild -setup is recommended.
-g
生成 debugging 信息
无
-G
同 -g
无
-I directory
Add directory to search path for M-files
MATLAB path is automatically included when running from MATLAB, but not when running from DOS/UNIX shell.
-l
创建库函数的宏
等效于命令
-W lib -T link:lib
-m
生成C语言独立运行程序的宏
等效于命令
-W main -T link:exe
-M string
传递字符串给 mbuild
Use to define compile-time options.
-N
Clear the path of all but a minimal, required set of directories
无
-o outputfile
制定最终可执行文件的名字
Adds appropriate extension
-P directory
Add directory to compilation path in an order-sensitive context
Requires -N option
-R
option
Specify run-time options for MCR
option
=
-nojvm
-nojit
-S
Create Singleton MCR
Requires MATLAB Builder for COM
-T
target
Specify output stage
target
=
codegen
compile:
bin
link:
bin
where
bin
=exe
lib
-v
显示详细; 显示编译步骤
无
-w
option
显示警告信息
option
= list
level
level
:string
where
level
=disable
enable
error
-W
type
Control the generation of function wrappers
type
= main
cpplib:<string>
lib:<string>
none
com:compname,clname,version
-Y licensefile
Use licensefile when checking out a Compiler license
无
-z path
指定库文件和包含文件的路径
无
-?
显示帮助信息
无
Feedback
#
re: Matlab--mcc命令大全
回复
更多评论
2006-12-15 18:59 by
我的求职信
我思想所以我存在我思想所以我存在我思想所以我存在我思想所以我存在我思想所以我存在我思想所以我存在我思想所以我存在我思想所以我存在我思想所以我存在我思想所以我存在我思想所以我存在
#
re: Matlab--mcc命令大全
回复
更多评论
2006-12-15 20:26 by
E代青蛙
TO:我的求职信
哪位大侠???
#
re: Matlab--mcc命令大全
回复
更多评论
2008-01-05 09:56 by
小戴
麻烦,请问一下,为什么我的MATLAB不能将M文件转化为C文件?
#
re: Matlab--mcc命令大全
回复
更多评论
2008-12-28 20:48 by
df
shibai
刷新评论列表
只有注册用户
登录
后才能发表评论。
Powered by:
IT博客
Copyright © 济公
日历
<
2007年4月
>
日
一
二
三
四
五
六
25
26
27
28
29
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
1
2
3
4
5
公告
个人简介:
网名:
济公
留言簿
(30)
给我留言
查看公开留言
查看私人留言
随笔分类
(112)
C#Asp.net(5)
C/C++(15)
Crack(3)
DataBase(2)
ImageProc(10)
ITNews(9)
Java(1)
NetWorks(4)
OS(3)
Security(13)
VC++(7)
VCMatlab(27)
WebService(9)
XML(4)
随笔档案
(112)
2008年1月 (1)
2007年12月 (15)
2007年11月 (5)
2007年10月 (2)
2007年6月 (1)
2007年5月 (1)
2007年4月 (16)
2007年3月 (1)
2007年1月 (4)
2006年12月 (56)
2006年11月 (10)
文章分类
(24)
幽默笑话(9)
文章收藏(8)
饮食健康(7)
BLOG
rise-我要飞
小龙虾
果果笑专贴吧
常用链接
CSDN社区
Java 2 Platform SE
jsj应用技巧资讯站
MSDN Forums
MSDN WebServices
VC知识库
中国图像图像网
搜索软件吧
看雪学院
软件即服务论坛
积分与排名
积分 - 241389
排名 - 20
最新随笔
1. OllyICE使用说明与示例
2. C#简易端口扫描器实例
3. 坐标系画图(C#)示例
4. 向Web服务传递文件
5. C#简单网络通信程序示例
6. 用Serv-U FTP Server构建自己的强力FTP服务器
7. C#的Excel编程
8. 木马是如何编写的。
9. 目标区域参数测量
10. 还原WINXP默认服务的批处理文件
11. .net 序列化文件(图像)成xml
12. ASP.NET WEB 服务支持数据类型的实例
13. ASP.NET+Web服务实现软件共享
14. 关于"visual stadio.net已检测到web服务器运行的不是asp.net1.1版"的错误
15. ASP.NET使用小经验
16. 使用soap标头的一个实例(带身份验证)
17. 如何使用 ASP.NET Web 服务和 Visual C# .NET 发送和接收二进制文档
18. Software-as-a-service(软件即服务)
19. xml笔记-ENTITY使用实例
20. xml笔记-ATTLIST使用实例
最新评论
1. re: VC调用matlab中定义的.m文件中的函数的实例
评论内容较长,点击标题查看
--大小姐pf
2. re: VC调用matlab中定义的.m文件中的函数的实例
评论内容较长,点击标题查看
--陈大可
3. re: VC调用matlab中定义的.m文件中的函数的实例
@Favory
我的错误跟你的一样,你解决了吗?
--111
4. re: RGB、HSV色彩空间模式的互相转换
@zyp
这是关键代码,不是所有代码。
--GT9
5. re: 运用C#创建一个.Net下的Web Service
评论内容较长,点击标题查看
--purchasing essays
阅读排行榜
1. OllyICE使用说明与示例(21044)
2. VC调用matlab中定义的.m文件中的函数的实例(16993)
3. 坐标系画图(C#)示例(11776)
4. Matlab--mcc命令大全(10358)
5. 华为招聘--C语言笔试试题(9256)
6. VC++与Matlab混合编程之引擎操作详解(6484)
7. Matlab与C++接口与混合编程讨论小结(5494)
8. RGB、HSV色彩空间模式的互相转换(5094)
9. 人脸检测的C/C++源代码(4406)
10. Matlab7.0利用mcc与VC++编程实例(4344)