mmzzyyhh 发表于 2010-9-7 09:43

求助:下面这个关于混编的问题怎么解决

本帖最后由 ChaChing 于 2010-9-7 14:57 编辑

在matlab里调用vc时,总是出错。我 已经设置了编译器。但运行时总是出现错误。
>> mex -setup
Please choose your compiler for building external interface (MEX) files:

Would you like mex to locate installed compilers /n? y

Select a compiler:
Lcc-win32 C 2.4.1 in C:\PROGRA~1\MATLAB\R2009b\sys\lcc
Microsoft Visual C++ 2005 SP1 in C:\Program Files\Microsoft Visual Studio 8
Microsoft Visual C++ 6.0 in C:\Program Files\Microsoft Visual Studio

None

Compiler: 3

Please verify your choices:

Compiler: Microsoft Visual C++ 6.0
Location: C:\Program Files\Microsoft Visual Studio

Are these correct /n? y

Trying to update options file: C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R2009b\mexopts.bat
From template:            C:\PROGRA~1\MATLAB\R2009b\bin\win32\mexopts\msvc60opts.bat

Done . . .

**************************************************************************
Warning: The MATLAB C and Fortran API has changed to support MATLAB
         variables with more than 2^32-1 elements.In the near future
         you will be required to update your code to utilize the new
         API. You can find more information about this at:
         
         Building with the -largeArrayDims option enables the new API.
**************************************************************************
运行时就出现:'h264encoder' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
该命令处是:str_cmd = ['!h264encoder -d h264enc.cfg -p InputFile=',fin,' -p FramesToBeEncoded=',str_fnum,' -p QPISlice=',str_qp];
eval(str_cmd);
h264encoder是可执行文件。
都快一个月了,还没找到原因,电脑系统重装了两次,中间又一次正确了。可后面怎么也不正确,请求大家给予帮助。谢谢啦!

有没有知道的,请帮个忙。如果这个问题解决不了,没法继续后面的学习。希望大家多多帮助一下!
页: [1]
查看完整版本: 求助:下面这个关于混编的问题怎么解决