Building a .NET Component project with MATLAB 7.3 in windows 7
Show older comments
I want to build a .NET Component project with MATLAB 7.3 in Windows 7. The problem is that when I build the project I get the following error:
Your project cannot be built because you have not specified a compiler. To do so run the following command in MATLAB: mbuild -setup
when i write the mbuild -setup command, it displays the choices to select from the installed compilers. when I am done after specifying the choice it displays the following error:
Error: DllRegisterServer in C:\PROGRA~2\MATLAB\R2006b\bin\win32\mwcomutil.dll failed Undefined subroutine &mexsetup::expire called at C:\PROGRA~2\MATLAB\R2006b\bin\/mexsetup.pm line 819. ??? Error using ==> mbuild Unable to complete successfully
Can any one resolve this error? Thanks.
Answers (1)
Walter Roberson
on 22 Jun 2011
1 vote
5 Comments
Kaustubha Govind
on 22 Jun 2011
As the second link suggests, you need to run MATLAB as Administrator for mbuild to run successfully.
Bushra
on 23 Jun 2011
Kaustubha Govind
on 23 Jun 2011
I would recommend following instructions from the official documentation: http://www.mathworks.com/help/toolbox/dotnetbuilder/ug/brw2nmx.html#brxstoy-1
If Test.dll is still not created, could you paste the build log so we can look for any errors.
Also, one quick tip: start MATLAB as a regular user (not Admin) to build your component. I've notice some problems with running as Admin - it appears that user-specific folders are not given access to the admin. So perhaps you tried to compile on the session of MATLAB that you run as admin, and Windows is not giving MATLAB permission to write to disk?
Bushra
on 3 Jul 2011
Kaustubha Govind
on 5 Jul 2011
Bushra: It's not clear what is going wrong here. I would recommend contacting Tech Support so they can walk you through the process.
Categories
Find more on Downloads in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!