mclmcrInitialize crash in visual studio

i compiled simple function :
---------------------
function [y] = *foo*(a,b)
y=a+b;
-----------------------
mcc -W cpplib:libmfoo -T link:lib foo.m -v
i create project console application in c++ , included all needed libraries also inserted dll intorun directory and arrange system path
when i call
mclmcrInitialize();
visual studio 2010 crashed
i try to call mclInitializeApplication(NULL,0); before but still it not helped
i haver 3 libs
*libfoo.lib
mclmcrrt.lib
mclmcr.lib*
it stops at mainret = main(argc, argv, envp);
---------
when i use in command line
mbuild test.cpp libmfoo.lib
and run test the application worked and printed the results !!1
anybody can help me urgent !!!

回答 (0 件)

この質問は閉じられています。

質問済み:

2013 年 5 月 8 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by