'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

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
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.
koray
koray 2011년 6월 1일

0 개 추천

what u mean exactly? my generated code with mcc does not include mex i think. so it doesnt iclude both not before after windows.h if u want i can send generated code.
koray
koray 2011년 6월 1일

0 개 추천

if you want i can upload my generated code.

카테고리

도움말 센터File Exchange에서 Call C++ from MATLAB에 대해 자세히 알아보기

질문:

2011년 6월 1일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by