I have one question: I have a matlab wrapper that calls another C file that has some functions that I want to pass data to from Matlab and get results back to Matlab. But not successful!
The complication is: Whenever I compile the first c file (wrapper), it gives an mexw64 file (although I was told it is a dll) and when this happens and I just call this file Matlab cannot load this 2nd file that has the functions claiming that it is empty! Any ideas what am I doing wrong here?
For this second file (that has the functions) I was told to compile it like this:
gcc -c fcnsuite.c -DWINDOWS dllwrap -o fcnsuite.dll fcnsuite.o
Using MingW, but it does not generate any dll and hence I get: dllwrap: no export definition file provided. Creating one, but that may not be what you want dllwrap: CreateProcess: No error
No products are associated with this question.
MEXW64 files are DLLs, although they have a different file extension.
What about compiling the wrapper and the core functions together:
mex -O wrapper.c fcnsuite.c
? Then the code of the fcnsuit is included in the wrapper DLL.