I made a very simple example of C Caller block to see how it works, but I got link error which I can't find out what the reason is.
I created FuncTest() in C code.
in Simulation Target menu of Configuration Parameters dialog,
I added like below
- Header file : #include "AudioDB.h"
- Source files : AudioDB.cpp
I put the .h, cpp files in the same directory with the model file, so I didnt add anything in the include directories item.
then I made parsing custom coded in model successfully, and tried to hook this function up with C Caller block.
but when i start compiling/running the model, I got a link error regarding external interface like below, I have no idea what I should do to solve this error.