Info

This question is closed. Reopen it to edit or answer.

mclmcrInitialize crash in visual studio

3 views (last 30 days)
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 !!!

Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!