Re: MATLAB在64位元下使用mex compile時mexopts.ba …

看板Lab720作者時間14年前 (2010/05/18 17:27), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
※ 引述《minimates ()》之銘言: : http://comkat.case.edu/comkat/comkat_wiki/index.php?title=Support:Tech_notes 另外還有三件事要做 Reference: http://forums.nvidia.com/lofiversion/index.php?t54084.html 1st: The linker searches for some libraries, such as kernel32.lib, in %MATLAB%\extern\lib\win32\microsoft% (see nvmexopt.bat) The libraries are in the MSVC SDK path in "C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin" Copy all the files (*.lib) of the second (MSVC) to the first directory (MATLAB). 2nd: After that I encountered a problem with the mt command in the pre-last line of the nvmexopts.bat file set POSTLINK_CMDS2=mt ... bla bla replace it with set POSTLINK_CMDS2="C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\mt.exe" ... bla bla 3rd: One minor change is the path of the visual studio: set VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio 9.0 instead of Visual Studio 8.0 Of course, maybe somebody can give a more efficient solution. ========== 第一點也可以在LINKFLAGS中加入 /LIBPATH "C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin" 第三點我沒遇到 應該可以不用改 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.114.27.141

05/18 23:42, , 1F
也是使用者有情推~
05/18 23:42, 1F
文章代碼(AID): #1BybsMoc (Lab720)