4 Responses

  1. David K
    David K February 10, 2012 at 9:19 pm | | Reply

    Totosugito,

    Thank you for your post. Its really helpful. Unfortunately I am not able to run your example. I think the problem is with my make file. If you don’t mind, I have a few questions.

    1) You have sighted foo.m, libfoo, and foowrap.c, so where does mlfFoo come from?

    2) In Makefile, is there a reason that you have written
    -I/data/ProgramFiles/Matlab2008/extern/include/ twice?

    3) In Makefile, what is the point of -lm -lfoo -lmwmclmcrrt?

    4) Would this code be different for CPP?

    5) How would you use MATLAB functions from a nested CPP function?

    Thank you for your wonderful sight,

    David K

  2. Izik
    Izik June 6, 2013 at 4:23 am | | Reply

    Hi Totosugito,

    This tutorial is great.

    I got a problem when I do the process you posted.

    I have already compiled the project and also run it.

    However,

    if (!libfooInitialize())
    {
    fprintf(stderr,”Could not initialize the library.
    “);
    exit(1);
    }

    Here, can not initialize the library…

    Do you know what is the problem?

    Thanks a lot.

Leave a Reply