User forums > Help

matlab set

<< < (2/2)

andy2008:
i really really thank u so much. i have been at a loss for some days.
Today i successfully gain what i want.
because i have tried to do that in VS, i searched many webs and  finally know one thing the mex files is a dll in nature.
the mex files is a dll several years before , and now the file extension is mexw64/32.
we can use the  C  to write functions under the matlab 's requirement and export mexw64/32 files from IDE or matlab,then in the matlab we can call the mexw64/32 files.
thanks for your notes, but i alos found i can use the .lib files.Thayt makes things simple.
the compiler in my computer is TDD-GCC-mingw64 4.9.2.maybe after installation,the program creat a folder in C:\Program Files\MATLAB\R2016b\extern\lib\win64\mingw64.
i set the above path in  Project->Build options->Select the project target on the left->Search directories->Linker->Add the path.
i also install  the gnumex , but i think it has no use.maybe the new version matlab don't need it.

In the last I highly appreciate your help .  i 'm in china ,and  serarch mamy webs and find something a bit useful. so i seek for help in this forums.
so sorry for bothering you. hope you  a happy day

andy2008:
Hi, i found a reply in the forums which says we don't need to convert the Matlab DLL's into GCC compatible libraries.
I get the screenshot and set it in the attachments.

BlueHazzard:
So you still need help? If so please ask concrete questions or show error logs.


--- Quote ---Hi, i found a reply in the forums which says we don't need to convert the Matlab DLL's into GCC compatible libraries.
--- End quote ---
This probably works only if the exported functions are all C functions. If C++ is involved this won't work for sure, because mingw and msvc use different name mangling....

andy2008:
Hi, a happy day.
I believe i still need some help in the future,while now i need to go deep into the matlab' help.
In most situations, i only use C functions.If C++ is involved, i will do some try.
Thanks for your help.

Navigation

[0] Message Index

[*] Previous page

Go to full version