From: Paul on 4 Feb 2010 08:15 Hi, I am running R2009b 64-bit on a windows 7 pc. I am having trouble loading a library, when I use the load library function the following error message is generated:- ??? Error using ==> loadlibrary at 367 Failed to preprocess the input file. Output from preprocessor is:'cl' is not recognized as an internal or external command, operable program or batch file. Any help would be appreciated. Paul
From: Philip Borghesani on 4 Feb 2010 11:00 Paul This suggests that you do not have MS Visual Studio 2005 or 2008 installed correctly with 64 bit support on your machine. One of these is required for the LOADLIBRARY command on win64. Can you configure mex (mex -setup) and build an example mex file successfully? If so and you have one of the above compilers installed what is the output of the following command? >> !set vs % Display environment variables starting with vs With both installed the following is displayed: VS80COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\Tools\ VS90COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\ If one of these do not point to your installed compiler that may be the problem. If everything seems ok what is the output of: !"%VS80COMNTOOLS%..\..\VC\vcvarsall.bat" Change VS80COMNTOOLS to VS90COMNTOOLS if that is what you have. Phil "Paul " <p.black(a)cascade-technology.com> wrote in message news:hkeh9b$2o0$1(a)fred.mathworks.com... > Hi, > > I am running R2009b 64-bit on a windows 7 pc. I am having trouble loading a library, when I use the load library function the > following error message is generated:- > > ??? Error using ==> loadlibrary at 367 > Failed to preprocess the input file. > Output from preprocessor is:'cl' is not recognized as an internal or external command, > operable program or batch file. > > Any help would be appreciated. > > Paul >
From: Paul on 4 Feb 2010 11:38 Hi, I only have the 2008 version of MS Visual Studio Express installed, but it did come up after running the !set vs command. After running !"%VS80COMNTOOLS%..\..\VC\vcvarsall.bat" I got the following message:- Setting environment for using Microsoft Visual Studio 2008 x86 tools. After that I tried to load the library again, it didn't work but the error message changed to:- Error using ==> loadlibrary at 422 Building GasDBExt_thunk_pcwin64 failed. Compiler output is: I think this may now be a problem with the library rather than Matlab itself, I am going to ask the person who wrote the library. Thanks for your help. Paul
From: omegayen on 5 Feb 2010 02:04 "Paul " <p.black(a)cascade-technology.com> wrote in message <hket5c$6nq$1(a)fred.mathworks.com>... > Hi, > > I only have the 2008 version of MS Visual Studio Express installed, but it did come up after running the !set vs command. > > After running !"%VS80COMNTOOLS%..\..\VC\vcvarsall.bat" I got the following message:- > > Setting environment for using Microsoft Visual Studio 2008 x86 tools. > > After that I tried to load the library again, it didn't work but the error message changed to:- > > Error using ==> loadlibrary at 422 > Building GasDBExt_thunk_pcwin64 failed. Compiler output is: > > I think this may now be a problem with the library rather than Matlab itself, I am going to ask the person who wrote the library. > > Thanks for your help. > > Paul Paul I think you need to use the x64 compiler present in the Pro Version.... I wrote a guide on loadlibrary recently you may find helpful for some testing to see if you can get basic things to work http://www.toddmccollough.com/how-to-write-a-dll-file-in-windows-32-bit-64-bit-and-compile-in-matlab-32-bit-64-bit-and-how-to-write-a-so-file-in-ubuntu-linux-and-compile-in-64-bit-matlab/
|
Pages: 1 Prev: Gui (hold on, max, min, correlation) Next: Addind text header to ascii file |