loadlibrary Problem: Reference to non-existent field 'The system cannot find the path specified. VSINSTALLDIR'.
Mostrar comentarios más antiguos
Hi, When I try to use the 'loadlibrary' command, I get the error, 'Reference to non-existent field 'The system cannot find the path specified. VSINSTALLDIR'.'
Does anybody know how to fix this?
The error appears to be coming from the getLoadlibraryCompilerConfiguration function, where mex.getCompilerConfigurations('C','Selected') is called.
Calling this function leads to the error: Reference to non-existent field 'The system cannot find the path specified. VSINSTALLDIR'.
Error in mex.CompilerConfigurationFactory/determineLocation (line 275)
location = detailStruct.(outputValue);
Error in mex.CompilerConfigurationFactory/process (line 130)
basicStructArray(numberOfLangs).Location = determineLocation(obj,
storageLocations{index}, basicStructArray, detailsStruct);
Error in mex.getCompilerConfigurations (line 56)
compConfig = process(ccF);
Any help would be greatly appreciated.
Thanks, Taylor
4 comentarios
Taylor
el 6 de Abr. de 2013
That environment variable (VSINSTALLDIR) is set in the mexopts.bat file in your matlab preference folder. Type "prefdir" in MATLAB to figure out where that is. Normally in that file there should be a line similar to this
set VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio 10.0
Could you check that file for that entry and verify if that entry is valid? Do you have setup an environment variable called MATLAB_PREFDIR?
Taylor
el 7 de Abr. de 2013
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Matrix Indexing en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!