mex -I



I am trying to compile several c files with a script. I need to
include a header file with these c files. I can get it to compile if
I use the following:
mex -ID:\MATLAB\work\ filename.c

The problem is that I don't want the include path to be fixed. I
want it to be a variable. I have tried assigning 'pwd' to a variable
and put the variable name after the -I, but this doesn't work.
.



Relevant Pages

  • Re: question about compiling Expect script with freewrap: invalid command spawn
    ... > I want to compile my scripts for distribution. ... and then compiled one of my little script. ... does freewrap only support TCL ... when I run the file with error parameters, ...
    (comp.lang.tcl)
  • Re: asp.net doesnt respond immediately when code updated
    ... are you sure the script is in the .aspx.cs file? ... If so it probably is in the code behind, hence you need to compile it before ... Prev by Date: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: long double in C89?
    ... >> compile time for conforming to any standard (no equivalent of ... Oh, I do (I use GNU autoconf which generates a 'configure' script, ... environment (or at least a Bourne shell equivalent and several standard ...
    (comp.lang.c)
  • Re: Massive Memory Structures
    ... (Solaris on sparc, Solaris on x86_64) ... script, I get an out of memory error and the script dies. ... what options do I need to compile in to make this happen. ... It will create a 5g test file, ...
    (comp.lang.perl.misc)
  • Creating the RT git tree
    ... rt-master and preempt-rt branches. ... This script will update the linus branch if necessary (but it will also ... to be able to compile and boot too. ... may not include all changed files if the full convert-locks is run again. ...
    (Linux-Kernel)