MATLAB Answers

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

1 view (last 30 days)
Ayoub Bourkhiss
Ayoub Bourkhiss on 2 Jun 2016
Answered: Titus Edelhofer on 10 Jun 2016
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

  0 Comments

Sign in to comment.

Answers (1)

Titus Edelhofer
Titus Edelhofer on 10 Jun 2016
Hi,
you might do this in one step:
mcc -l mymfunc.m -o libfmat
Titus

  0 Comments

Sign in to comment.

Sign in to answer this question.

Tags