loadlibrary Problem: Reference to non-existent field 'The system cannot find the path specified. VSINSTALLDIR'.
Afficher commentaires plus anciens
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 commentaires
Taylor
le 6 Avr 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
le 7 Avr 2013
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Matrix Indexing dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!