Check whether mex file is compiled for system

Check if mex file is compiled for the OS or if the source was modified since it was compiled.
다운로드 수: 1.2K
업데이트 날짜: 2018/5/5

NOTE: this function is now available from the IoSR Matlab Toolbox as iosr.general.checkMexCompiled.
-------------------------
CHECK_MEX_COMPILED Check if mex file is compiled for system.

SYNTAX

CHECK_MEX_COMPILED(SOURCE_FILE)
CHECK_MEX_COMPILED(OPTIONS,SOURCE_FILE)

DESCRIPTION

CHECK_MEX_COMPILED(SOURCE_FILE) checks whether a mex source file SOURCE_FILE is compiled for the current operating system OR whether the source file has been modified since it was compiled. It is compiled if it does not pass these tests (to the same directory as the source file). SOURCE_FILE must be a string that is the name of a source file on the MATLAB search path.

CHECK_MEX_COMPILED(OPTIONS,SOURCE_FILE) passes the script switches in OPTIONS to the mex compiler, one argument per switch.

USAGE EXAMPLE

% check function compiled, with useful debugging info,
% and with large-array-handling API
check_mex_compiled('-v','-g','-largeArrayDims','myfunction.c')

인용 양식

Christopher Hummersone (2024). Check whether mex file is compiled for system (https://github.com/IoSR-Surrey/MatlabToolbox), GitHub. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2009b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 MATLAB Compiler에 대해 자세히 알아보기
태그 태그 추가

Community Treasure Hunt

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

Start Hunting!

GitHub 디폴트 브랜치를 사용하는 버전은 다운로드할 수 없음

버전 게시됨 릴리스 정보
1.5.0.0

Some minor bug fixes and documentation updates
Migrated to GitHub.

1.4.0.0

Minor alterations: function now calls MEX directly (rather than through EVAL), changed the way the OPTIONS are handled to bring it more in line with MEX functionality.

1.3.0.0

Updated description/help

1.2.0.0

Minor: updated the help

1.0.0.0

이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.