Support:Tech notes

From COMKAT wiki
Revision as of 20:41, 26 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

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