Comment appeler une dll dans MAtlab

Fermé
julianross - 3 mars 2008 à 16:45
alexis02240 Messages postés 2 Date d'inscription vendredi 25 juillet 2008 Statut Membre Dernière intervention 25 juillet 2008 - 25 juil. 2008 à 18:16
Bonjour,

Voila j'aimerai faire appel à une dll (qui a été faite en Fortran) dans un fichier m file.
J'ai voulu convertir ma dll en fichier max files mais voila le message d'erreur que j'ai :
_________________________________
mex PHASF6_DLL.lib

Select a compiler:
[1] Lcc-win32 C 2.4.1 in C:\PROGRA~1\MATLAB\R2007b\sys\lcc

[0] None

Compiler: 1

Trying to update options file: C:\Users\julius\AppData\Roaming\MathWorks\MATLAB\R2007b\mexopts.bat
From template: C:\PROGRA~1\MATLAB\R2007b\bin\win32\mexopts\lccopts.bat

Done . . .


Warning: Renaming "PHASF6_DLL.dll" to "PHASF6_DLL.dll.old" to avoid name conflicts.

Specified export _mexFunction is not defined
Missing exports. Aborting
***************************************************************************
Warning: The file extension of 32-bit Windows MEX-files was changed
from ".dll" to ".mexw32" in MATLAB 7.1 (R14SP3). The generated
MEX-file will not be found by MATLAB versions prior to 7.1.
Use the -output option with the ".dll" file extension to
generate a MEX-file that can be called in previous versions.
For more information see:
MATLAB 7.1 Release Notes, New File Extension for MEX-Files on Windows
***************************************************************************


C:\PROGRA~1\MATLAB\R2007B\BIN\MEX.PL: Error: Link of 'PHASF6_DLL.mexw32' failed.

??? Error using ==> mex at 208
Unable to complete successfully.

??? Invalid MEX-file 'C:\Users\julius\Desktop\ARCELOR\ROT_dll_0206\APPEL\PHASF6_DLL.mexw32':
C:\Users\julius\Desktop\ARCELOR\ROT_dll_0206\APPEL\PHASF6_DLL.mexw32 n'est pas une application
Win32 valide.
______________________________

Merci de m'aider
A voir également:

2 réponses

Bonjour,

J'ai le même problème en appelant un fichier *.c sous windows XP professionnel et la même version de Matlab (R2007b)

Je n'ai pas encore trouvé de solution !!!!!!

merci de nous aider
2
alexis02240 Messages postés 2 Date d'inscription vendredi 25 juillet 2008 Statut Membre Dernière intervention 25 juillet 2008
25 juil. 2008 à 18:16
j est installer correctemen ivalice et wow et qan je lance wow a partire du migdar launcher sa me met le launcher officiel
-2