
• some other c-files, h-files a.s.o
Notes:
• You can use the .c and .h files for compiling a library with another compiler.
• For executing an application it is necessary to have all *.dll files in the actual folder
or within your local path-variable. For executing the *.exe it is necessary to extract
MatLab Runtime DLLs Win32.zip to the current directory or have them within in
your local path.
3.3 Compiling an Stand-Alone Application using the Shared Li-
brary in Visual Studio
3.3.1 Necessary Includes for C/C++ Code Generation
Name: ”matrix.h”
Path: C:\Programme\MATLAB\extern\lib\win32\microsoft\msvc60
3.3.2 Necessary Libraries for Linking
Name: libeng.lib libfixedpoint.lib libmat.lib libmatlb.lib libmatlbmx.lib libmex.lib lib-
mmfile.lib libmwarpack.lib libmwlapack.lib libmwmcl.lib libmwrefblas.lib libmwser-
vices.lib libmwsglm.lib libmx.lib libut.lib sgl.lib b
Path: C:\Programme\MatLab\extern\lib\win32\microsoft\msvc60
3.4 Compiling a MATLAB-Project with Visual Studio
Use the Project-Wizard integrated to Visual Studio during MATLAB installation.
3.5 Compiling using gcc for Windows
Since gcc is the standard compiler for Linux it would be desirable, e.g. for reasons of
portability, to use it for compiling under Windows as well. For any reason, gcc is not
officially supported my Mathworks Inc., so no suitable libraries
1
are distributed with
MATLAB. Thus, you need to create import libraries for the dependent DLLs. Therefore
go to the directory matlab dir\extern\include, where you will find the definition files
*.def, and run the following command:
dlltool –def libname.def –dllname libname.dll –output-lib libname.a
1
The original Libraries (*.dll Files) are located in matlab dir\bin\win32.
7
Comentarios a estos manuales