|
ThomasW. |
Gast
|
 |
Beiträge: ---
|
 |
|
 |
Anmeldedatum: ---
|
 |
|
 |
Wohnort: ---
|
 |
|
 |
Version: ---
|
 |
|
|
 |
|
Verfasst am: 29.06.2011, 21:08
Titel: Mex-File kompilieren
|
 |
|
 |
|
Hallo!
Ich fange gerade damit an mich mit mex-files zu beschäftigen, und wollte mal wie hier http://www.mathworks.com/support/te.....es/1600/1605.html#testing yprime.c testen.
Folgendes kriege ich als Ausgabe:
____________________________________
>> mex -setup
Please choose your compiler for building external interface (MEX) files:
Would you like mex to locate installed compilers [y]/n? y
Select a compiler:
[1] Lcc-win32 C 2.4.1 in C:\PROGRA~1\MATLAB\R2010b\sys\lcc
[0] None
Compiler: 1
Please verify your choices:
Compiler: Lcc-win32 C 2.4.1
Location: C:\PROGRA~1\MATLAB\R2010b\sys\lcc
Are these correct [y]/n? y
Trying to update options file: C:\Users\Jasper\AppData\Roaming\MathWorks\MATLAB\R2010b\mexopts.bat
From template: C:\PROGRA~1\MATLAB\R2010b\bin\win32\mexopts\lccopts.bat
Done . . .
**************************************************************************
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/support/so.....5C27B9/?solution=1-5C27B9
Building with the -largeArrayDims option enables the new API.
**************************************************************************
>> mex yprime.c
C:\Program Files\MATLAB\R2010b\extern\examples\mex\yprime.exp konnte nicht gefunden werden
C:\Program Files\MATLAB\R2010b\extern\examples\mex\yprime.lib konnte nicht gefunden werden
_______________________
Jemand eine Idee, woran das liegen könnte?
Danke!
Thomas
|
|
|
|
|
Jan S |

Moderator
|
 |
Beiträge: 11.057
|
 |
|
 |
Anmeldedatum: 08.07.10
|
 |
|
 |
Wohnort: Heidelberg
|
 |
|
 |
Version: 2009a, 2016b
|
 |
|
|
 |
|
Verfasst am: 29.06.2011, 22:50
Titel: Re: Mex-File kompilieren
|
 |
Hallo ThomasW,
Kopiere yprime.c in einen Ordner, in dem Du Schreibrechte hast. Dann nutze CD um in diesen Ordner zu wechseln. Nun sollte "mex yprime.c" laufen.
Gruß, Jan
|
|
|
ThomasW. |
Gast
|
 |
Beiträge: ---
|
 |
|
 |
Anmeldedatum: ---
|
 |
|
 |
Wohnort: ---
|
 |
|
 |
Version: ---
|
 |
|
|
 |
|
Verfasst am: 01.07.2011, 14:03
Titel:
|
 |
Hi!
Danke, nach dem Umkopieren hat es geklappt. Bedeutet dass, dass man in C:\Program Files\MATLAB\R2010b\extern\examples keine Schreibrechte hat? Was meinst du damit? Hat nur MATLAB dann dort keine Schreibrechte?
|
|
|
Jan S |

Moderator
|
 |
Beiträge: 11.057
|
 |
|
 |
Anmeldedatum: 08.07.10
|
 |
|
 |
Wohnort: Heidelberg
|
 |
|
 |
Version: 2009a, 2016b
|
 |
|
|
 |
|
Verfasst am: 03.07.2011, 23:49
Titel:
|
 |
Hallo ThomasW,
Die Schreibrechte in Ordnern regelt das Betriebssystem. Der Installationsordner von Matlab sollte schreibgeschützt sein, damit man nicht aus Versehen die Toolbox-Funktionen überschreibt. Eine Ausnahme ist dabei der Ordner local, der speziell für lokale Änderungen vorgesehen ist.
Die Schreibrechte betreffen nicht ein Programm, sondern den gerade angemeldeten Benutzer.
Gruß, Jan
|
|
|
|
|
Einstellungen und Berechtigungen
|
|
Du kannst Beiträge in dieses Forum schreiben. Du kannst auf Beiträge in diesem Forum antworten. Du kannst deine Beiträge in diesem Forum nicht bearbeiten. Du kannst deine Beiträge in diesem Forum nicht löschen. Du kannst an Umfragen in diesem Forum nicht mitmachen. Du kannst Dateien in diesem Forum posten Du kannst Dateien in diesem Forum herunterladen
|
|
Impressum
| Nutzungsbedingungen
| Datenschutz
| FAQ
| RSS
Hosted by:
Copyright © 2007 - 2025
goMatlab.de | Dies ist keine offizielle Website der Firma The Mathworks
MATLAB, Simulink, Stateflow, Handle Graphics, Real-Time Workshop, SimBiology, SimHydraulics, SimEvents, and xPC TargetBox are registered trademarks and The MathWorks, the L-shaped membrane logo, and Embedded MATLAB are trademarks of The MathWorks, Inc.
|
|