'char16_t' : redefinition; different basic types
显示 更早的评论
Hi there; I generated a c++ code using matlab. but when i link them i get an error.
this is the error: c:\program files\matlab\r2010a\extern\include\matrix.h(330): error C2371: 'char16_t' : redefinition; different basic types
i am using visual studio 2010 and matlab r2010a.
1 个评论
Kaustubha Govind
2011-6-1
Do you mean that you generated a shared library using MATLAB Compiler? If yes, what is the compilation command that you used? Did you try the documentation example: http://www.mathworks.com/help/toolbox/compiler/f2-995712.html#f2-1009231
回答(3 个)
Jan
2011-6-1
1 个投票
Do you include mex.h before or after windows.h and/or wchar.h? Try it the other way around.
类别
在 帮助中心 和 File Exchange 中查找有关 Call C++ from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!