Filter löschen
Filter löschen

mcc compiler unicode flag

2 Ansichten (letzte 30 Tage)
Kaushik
Kaushik am 16 Okt. 2012
hi,
i want to use the mcc to compile a .m file to a c++ library.
is there a way to specify compiler option so that the .m file gets compiled as unicode.
thanks in advance
  2 Kommentare
Kaustubha Govind
Kaustubha Govind am 16 Okt. 2012
I'm confused. AFAIK, Unicode is a character encoding standard - what does it have to do with binary code?
Kaushik
Kaushik am 16 Okt. 2012
hi Kaustubha, when i use the mcc on a matlab file (say mfile.m) it is creating for me a header file mfile.h a cpp file mfile.cpp and a .lib file and a .dll. now my rest of the c++ code is unicode enabled. i am including mfile.h and mfile.cpp to my library and declarations like static char path_to_dll[_MAX_CHAR] is causing compilation error.
best

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Kaustubha Govind
Kaustubha Govind am 18 Okt. 2012
Ah! So you meant a MATLAB Compiler (mcc) option, not a C compiler option - sorry about misunderstanding your question. I don't believe there is such an option at this point, but I encourage you to submit an enhancement request to MathWorks Tech Support, so that the MATLAB Compiler development team can consider this for a future release.

Kategorien

Mehr zu C Shared Library Integration finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by