# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1298987024 21600 # Node ID ac3bdc27734ec27f5ebb589bf73e08e7fa16d98b # Parent bea828c03969d40c3f87a673774e429a2288e019 Clarify in manual that the mkoctfile examples are in C++ diff -r bea828c03969 -r ac3bdc27734e doc/ChangeLog --- a/doc/ChangeLog Mon Feb 28 22:35:41 2011 -0800 +++ b/doc/ChangeLog Tue Mar 01 07:43:44 2011 -0600 @@ -1,3 +1,9 @@ +2011-03-01 Jordi GutiƩrrez Hermoso + + * interpreter/dynamic.txi: Make it clear that is + a C++ source file and refer to the section where other languages + are discussed. + 2010-02-28 Rik * interpreter/numbers.txi: Add isrow, iscolumn functions to manual. diff -r bea828c03969 -r ac3bdc27734e doc/interpreter/dynamic.txi --- a/doc/interpreter/dynamic.txi Mon Feb 28 22:35:41 2011 -0800 +++ b/doc/interpreter/dynamic.txi Tue Mar 01 07:43:44 2011 -0600 @@ -99,7 +99,7 @@ @DOCSTRING(mkoctfile) -Consider the short example: +Consider the short C++ example: @example @group @@ -108,10 +108,13 @@ @end example This example although short introduces the basics of writing a C++ -function that can be dynamically linked to Octave. The easiest way to -make available most of the definitions that might be necessary for an -oct-file in Octave is to use the @code{#include } -header. +function that can be dynamically linked to Octave. The easiest way to +make available most of the definitions that might be necessary for a C++ +oct-file in Octave is to use the @code{#include } header. +Note that @file{octave/oct.h} is a C++ header and cannot be directly +@code{#include}'ed in a C source file, nor any other language. What +follows is mostly C++, with a discussion of other languages in section +@ref{Calling External Code from Oct-Files}. The macro that defines the entry point into the dynamically loaded function is @w{@code{DEFUN_DLD}}. This macro takes four arguments, these being