using visual C++ compiler in matlab

hello
i installed two compilers in Matlab : LCC and Visual C++ 2008
i want to load a C++ header file in matlab but when i want to do this matlab uses LCC instead of
Visual C++ and gives me some warnings .
How can i say to Matlab that use visual c++ compiler instead of LCC??

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2012 年 8 月 10 日

1 投票

mex -setup
mbuild -setup

3 件のコメント

Mahnaz
Mahnaz 2012 年 8 月 10 日
i used these but Matlab still uses LCC for loading my C++ header file
>> loadlibrary('DLLing.dll', 'DLLTutorial.h')
Warning: Message from C preprocessor:
lcc preprocessor error: C:\Users\MAHNAZ\Documents\MATLAB\DLLTutorial.h:3 Could not find include file iostream
Walter Roberson
Walter Roberson 2012 年 8 月 10 日
The .h file that you supply must be a C header file, not a C++ header file.
Mahnaz
Mahnaz 2012 年 8 月 11 日
why must be a C header file?
if i want to use c++ what should i do?

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeMATLAB Compiler についてさらに検索

質問済み:

2012 年 8 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by