C/C++ 라이브러리에 대한 MATLAB 인터페이스 작성하기
clibPublishInterfaceWorkflow 함수 사용C 또는 C++ 라이브러리에 대한 MATLAB 인터페이스를 빌드(퍼블리시)하려면 clibPublishInterfaceWorkflow 함수를 호출하십시오. 개괄적인 내용은 C/C++ 라이브러리에 대한 MATLAB 인터페이스를 퍼블리시하는 방법 항목을 참조하십시오.
MATLAB에서 라이브러리의 함수를 호출하는 방법에 대한 자세한 내용은 사전 작성된 MATLAB 인터페이스를 C/C++ 라이브러리에 사용하기 항목을 참조하십시오.
함수
clibPublishInterfaceWorkflow | Publish interface for C/C++ library in the Live Editor (R2023a 이후) |
clibgen.generateLibraryDefinition | Create definition file for C/C++ library |
clibgen.buildInterface | Create interface to C/C++ library without definition file |
라이브 편집기 작업
| C++ 인터페이스 생성 | Generate definition file for C/C++ interface library in the Live Editor (R2023a 이후) |
네임스페이스
도움말 항목
인터페이스를 퍼블리시하는 방법
- What Types of Files Define Your Library?
Your library might contain combinations of header files, C and C++ source files, and shared library files.
- C/C++ 라이브러리에 대한 MATLAB 인터페이스를 퍼블리시하는 방법
C/C++ 라이브러리에 대한 인터페이스를 퍼블리시하는 방법을 간략히 설명합니다. - Requirements for Building Interface to C/C++ Libraries
Requirements for calling functions in external, compiled C/C++ libraries from MATLAB.
정의 및 사용자 지정
- Define MATLAB Interface for C/C++ Library
Generate and edit the MATLAB library definition file to customize and define the interface.
- Publish Help Text for MATLAB Interface to C/C++ Library
Provide documentation for end-users of a MATLAB interface to a C/C++ Library.
인터페이스 공유하기
- Distribute MATLAB Interface to C/C++ Library
How to share your MATLAB interface with MATLAB users.
- C++ to MATLAB Data Type Mapping
Correspondence of MATLAB data types to C/C++ types. - Lifetime Management of C++ Objects in MATLAB
MATLAB rules for managing memory for C++ objects created in a MATLAB interface to a C++ compiled library. - Initialize Pointer Members of C++ Structures for MATLAB Interface to Library
Verify that C++ class constructors initialize pointer members.
문제 해결
Build C/C++ Library Interface and Review Contents
If library functionality is missing, the library might contain unsupported language features or data types.
MATLAB에서 지원되지 않는 C/C++ 라이브러리 기능.
Troubleshooting C/C++ Library Definition Issues
Information for resolving errors when publishing a MATLAB interface to a C/C++ library.
- Resolve Build Error: Multiple Redefinition Linker Errors
- Resolve Build Error: Unresolved External Symbols
- Build Error Due to Compile-Time Checks
- Errors Parsing Header Files on macOS
Troubleshooting MATLAB Interface to C/C++ Library Run-Time Issues
Resolve unexpected run-time errors when calling functions in a published MATLAB interface to a C/C++ shared library.
Troubleshooting Calls to C/C++ Library Functions
Resolve unexpected issues when calling functions in a C/C++ shared library.
Debug C++ Library from MATLAB Interface
How to build a debug version of a MATLAB interface to a C++ library.