필터 지우기
필터 지우기

Why do I receive a linker error "LNK1181: cannot open input file 'odbc32.lib'" when trying to compile a MEX file with Microsoft's Platform SDK on Windows 64-bit using MATLAB 7.7 (R2008b)?

조회 수: 2 (최근 30일)
When I execute the following in MATLAB:
mex rainflow.c
I get the following error:
LINK : fatal error LNK1181: cannot open input file 'odbc32.lib'
C:\PROGRA~3\MATLAB\R2008b\BIN\MEX.PL: Error: Link of 'rainflow.mexw64' failed.
??? Error using ==> mex at 213
Unable to complete successfully.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2010년 5월 15일
The file 'odbc32.lib' is not included in the 64-bit installation of the Platform SDK (Microsoft Windows Server 2003 R2 Platform SDK Web Install). To work around this issue, you will need to exclude this library from the linker command, to do this:
1. Execute the following command to open the MEX options file in the MATLAB editor:
edit(fullfile(prefdir, 'mexopts.bat'))
2. Search in the file for the entries 'odbc32.lib' and 'odbccp32.lib' and remove them from the LINKFLAGS variable.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

제품


릴리스

R2008b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by