Main Content

MATLAB 인터페이스를 C++ 라이브러리에 작성하기

C++ 라이브러리에 대한 MATLAB® 인터페이스를 생성하려면 MATLAB clibgen 네임스페이스를 사용하십시오.

C++ 라이브러리에 대한 MATLAB 인터페이스를 작성(퍼블리시)하려면 clibPublishInterfaceWorkflow를 호출하십시오. 개괄적인 내용은 C++ 라이브러리에 대한 MATLAB 인터페이스를 퍼블리시하는 단계 항목을 참조하십시오.

MATLAB에서 라이브러리의 함수를 호출하는 방법에 대한 자세한 내용은 사전 작성된 MATLAB 인터페이스를 C++ 라이브러리에 사용하기 항목을 참조하십시오.

함수

clibPublishInterfaceWorkflowPublish interface for C++ library in the Live Editor (R2023a 이후)
clibgen.generateLibraryDefinitionCreate definition file for C++ library
clibgen.buildInterfaceCreate interface to C++ library without definition file

라이브 편집기 작업

C++ 인터페이스 생성Generate definition file for C++ interface library in the Live Editor (R2023a 이후)

네임스페이스

clibgen NamespaceC++ 라이브러리 기능 호출을 지원하는 MATLAB 네임스페이스 및 클래스 요약

도움말 항목

인터페이스를 퍼블리시하는 방법

다음 파일에 의해 정의된 라이브러리에 대한 인터페이스 퍼블리시하기

인터페이스 공유하기

문제 해결

Build C++ Library Interface and Review Contents

If library functionality is missing, the library might contain unsupported language features or data types.

C/C++ 지원의 제한 사항

MATLAB에서 지원되지 않는 C/C++ 라이브러리 기능.

Troubleshooting C++ Library Definition Issues

Information for resolving error when publishing a MATLAB interface to a C++ library.

Debug C++ Library from MATLAB Interface

How to build a debug version of a MATLAB interface to a C++ library.