Bonjour,

J'essaie de retranscrire un code Matlab en Cpp à l'aide du Matlab Coder. Lorsque j'effectue mon build j'ai cette erreur qui s'affiche:

coder -build test_transcription.prj??? The specified code generation target is configured to generate C++, but the C-only compiler, LCC, is the default compiler. 
To allow code generation, you can deselect the 'Generate makefile' option.
Or, to specify a C++ compiler, enter 'mex -setup' at the command prompt. To generate C code, set the target language to C in the configuration object.
Je suis sous windows seven, MATLAB 2014b 32bits (même erreur en 64bits de toute manière). Lorsque j'effectue ce qui est demandé dans ma command windows voici ce que j'obtiens:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
>> mex -setup
MEX configured to use 'Microsoft Windows SDK 7.1 (C)' for C language compilation.
Warning: The MATLAB C and Fortran API has changed to support MATLAB
	 variables with more than 2^32-1 elements. In the near future
	 you will be required to update your code to utilize the
	 new API. You can find more information about this at:
	 http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.

To choose a different C compiler, select one from the following:
lcc-win32  mex -setup:'C:\Program Files (x86)\MATLAB\R2014b_32bits\bin\win32\mexopts\lcc-win32.xml' C
Microsoft Windows SDK 7.1 (C)  mex -setup:C:\Users\Robin\AppData\Roaming\MathWorks\MATLAB\R2014b\mex_C_win32.xml C

To choose a different language, select one from the following:
 mex -setup C++  %% je clic sur cette commande
 mex -setup FORTRAN
MEX configured to use 'Microsoft Windows SDK 7.1 (C++)' for C++ language compilation.
Warning: The MATLAB C and Fortran API has changed to support MATLAB
	 variables with more than 2^32-1 elements. In the near future
	 you will be required to update your code to utilize the
	 new API. You can find more information about this at:
	 http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.
>> mex -setup
MEX configured to use 'Microsoft Windows SDK 7.1 (C)' for C language compilation.
Warning: The MATLAB C and Fortran API has changed to support MATLAB
	 variables with more than 2^32-1 elements. In the near future
	 you will be required to update your code to utilize the
	 new API. You can find more information about this at:
	 http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.

To choose a different C compiler, select one from the following:
lcc-win32  mex -setup:'C:\Program Files (x86)\MATLAB\R2014b_32bits\bin\win32\mexopts\lcc-win32.xml' C
Microsoft Windows SDK 7.1 (C)  mex -setup:C:\Users\Robin\AppData\Roaming\MathWorks\MATLAB\R2014b\mex_C_win32.xml C

To choose a different language, select one from the following:
 mex -setup C++ 
 mex -setup FORTRAN
Autrement dit, il est écrit que j'ai bien changé mes paramètres pour que la compilation du langage se fasse en C++ et pourtant à la ligne d'en dessous quand je lui demande quel est le langage de compilation il est écrit que c'est encore du C. J'ai un peu la même problématique avec mbuild d'ailleurs.

Avez vous un avis?

En vous remerciant!