Support:Tech notes

From COMKAT wiki
Revision as of 00:52, 27 February 2008 by Deancool (talk | contribs)
Jump to navigation Jump to search

Mex and compiler setting

How to set up mex compiler on a 64-bit Matlab using Visual Studio 2008 Professional

How to set up mex compiler on a 64-bit Matlab using MinGW

How to set up the C compiler from Visual Studio 2008 on a 64-bit Windows system

  1. Go to control->system->environmental variables. Edit 'path' and add the following dir:
    1. C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools
    2. C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin
    3. C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE
  2. Go to control->system->environmental variables. Edit 'INCLUDE' and add the following dir: C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include
  3. Go to control->system->environmental variables. Edit 'LIB' and add the following dir: C:\Program Files\MATLAB\R2007b\extern\lib\win64\microsoft


How to set up the C compiler from MinGW on a 64-bit Windows system

== How to compile cvOdesGenMod5.c

Windows

1. Enter COMKATROOT\CVODESserial-2.3.0-2005\sundials\cvodes\source. Run:

cl /c /I..\include /I..\..\shared\include *.c
lib /out:cvodes.lib *.obj

Copy cvodes.lib to the COMKATROOT\lib\win64 folder (change win64 according to your system) 2. Enter COMKATROOT\CVODESserial-2.3.0-2005\sundials\shared\source. Run:

cl /c /I..\include  *.c
lib /out:sundials.lib *.obj

Copy sundials.lib to the COMKATROOT\lib\win64 folder (change win64 according to your system) 3. Enter COMKATROOT\CVODESserial-2.3.0-2005\sundials\nvec_ser. Run

cl /c /I..\shared\include  *.c
lib /out:nvec_ser.lib *.obj

Copy nvec_ser.lib to the COMKATROOT\lib\win64 folder (change win64 according to your system) 4.