Bonjour,
Je cherche à utiliser les fonctions de la Control Toolbox dans un programme C++.
J'aimerais donc savoir s'il y a moyen de creer une librairie C++ à partir de la toolbox?
J'ai testé ceci (c'est la premiere fois que j'essais):
mcc -W lib:library_one -T link:lib control
et j'obtiens cette erreur:
1 2 3 4
|
Depfun error: 'Unable to locate control as a function on the MATLAB path'
??? Error using ==> mcc
Error executing mcc, return status = 1 (0x1). |
par la suite:
mcc -W lib:library_one -T link:lib ss
et j'obtiens:
1 2 3 4 5 6 7 8 9 10
| Could not find the compiler "cl" on the DOS path.
Use mbuild -setup to configure your environment properly.
C:\PROGRA~1\MATLAB\R2009A\BIN\MEX.PL: Error: Unable to locate compiler.
Error: An error occurred while shelling out to mbuild (error code = 2).
Unable to build executable (specify the -v option for more information).
??? Error using ==> mcc
Error executing mcc, return status = 1 (0x1). |
j'ai donc essayé de configurer le builder, mais je n'arrives pas à localiser le compilateur alors qu'il est present dans le panneau de config:
1 2
| Microsoft visual c++ 2005 redistribuable
Microsoft visual c++ 2005 redistribuable |
qqun pourrais t il m'indiquer comment faire pour configurer correctement le compilateur dans un premier lieux et ensuite coment compiler la control toolbox?
merci
Partager