声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1238|回复: 3

[混合编程] 求助:matlab与vc接口设置出现问题

[复制链接]
发表于 2006-10-24 10:49 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
按照书上把matlab 和 vc 都已经设置好了,在检验  C-MEX 函数的编写编译链接的时候出现问题。

先是 vc中没有mex.h  ……库函数,我从matlab文件夹里找到了,拷贝到vc的include里,但是vc中又出现新问题:
--------------------Configuration: w33 - Win32 Debug--------------------

Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/w33.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

w33.exe - 2 error(s), 0 warning(s)

哪位高手知道,给我指点一下,谢谢了!!
回复
分享到:

使用道具 举报

发表于 2006-10-24 18:04 | 显示全部楼层
在project中新建一个 win32 application 在向导中选择空project 然后把你的文件加到 project中编译
 楼主| 发表于 2006-10-25 09:15 | 显示全部楼层
我是新手,能说的细一点么?谢谢:)
 楼主| 发表于 2006-10-25 10:56 | 显示全部楼层
matlab运行 mbuild -setup 后出现的问题:  
Note: One or more components necessary to the operation of the MATLAB Visual
        Studio add-in could not be installed. The MATLAB Visual Studio add-in
        will not be available, but the rest of this setup operation will  
        continue normally.
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-5-24 00:36 , Processed in 0.070010 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表