I need to build a shared library from c code generated with mcc ?

Hello,
i created a c- and h- files with following command line:
mcc -v -W lib:libfmat mymfunc.m
now i need to generate a shared library with this c-code, i am trying this way but this puts an unusable library out.
mbuild libfmat.c CFLAGS="-fPIC $CFLAGS" LDTYPE="-shared" LDEXT=".so"
I need to know how to make a shared library from generated c-code ?
Thank you. Ayoub

답변 (1개)

Titus Edelhofer
Titus Edelhofer 2016년 6월 10일
Hi,
you might do this in one step:
mcc -l mymfunc.m -o libfmat
Titus

카테고리

도움말 센터File Exchange에서 C Shared Library Integration에 대해 자세히 알아보기

태그

질문:

2016년 6월 2일

답변:

2016년 6월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by