---
name: "mkoctfile-2.0.17"
section: "1"
platform: "linux"
package: "octave2.0-headers"
version: "2.0.17-9"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/mkoctfile-2.0.17"
---

# mkoctfile-2.0.17(1)

Compile dynamic-load modules for GNU Octave

## NAME

mkoctfile - Compile dynamic-load modules for GNU Octave

## SYNOPSIS

**mkoctfile** \[-IDIR\] \[-DDEF\] \[-lLIB\] \[-LDIR\] \[-M\|--depend\]  \[-c\] \[-o FILE\|--output FILE\] \[-p VAR\|--print VAR\] \[-s\|--strip\]  \[-v\|--verbose\] \[-h\|-?\|--help\] *file* ...

## DESCRIPTION

*mkoctfile* is used to compile source C, C++ or Fortran source code in dynamically loadble  file for  [**octave**(1)](/octave/1.md).

## OPTIONS

*mkoctfile* accepts the following options:

- **-IDIR**

  Add include directory DIR to compile commands.

- **-DDEF**

  Add definition DEF to compiler call.

- **-lLIB**

  Add library LIB to link command.

- **-LDIR**

  Add library directory DIR to link command.

- **-M\|--depend**

  Generate dependency files (.d) for C and C++ source files.

- **-c**

  Compile but do not link.

- **-o FILE\|--output FILE**

  Output file name; default extension is .oct.

- **-p VAR\|--print VAR**

  Print configuration variable VAR.  Recognized variables are:

      CPPFLAGS    CPICFLAG\
       INCFLAGS    CXX\
       F2C         CXXFLAGS\
       F2CFLAGS    CXXPICFLAG\
       F77         XTRA\_CFLAGS\
       FFLAGS      XTRA\_CXXFLAGS\
       FPICFLAG    SHLEXT\
       CC          SH\_LD\
       CFLAGS      SH\_LDFLAGS

- **-s\|--strip**

  Strip the output file.

- **-v\|--verbose**

  Echo commands as they are executed.

- **file**

  Compile or linke file. Recognised file types are

      .c    C source\
       .cc   C++ source\
       .C    C++ source\
       .cpp  C++ source\
       .f    Fortran source\
       .F    Fortran source\
       .o    object file\
       .SH SEE ALSO\
       .BR octave (1).

## AUTHOR

John W. Eaton \<jwe@bevo.che.wisc.edu\>

This manual page was contributed by Dirk Eddelbuettel \<edd@debian.org\> for the Debian GNU/Linux distribution but  may be used by others.
