From 9bcb35b30b882708d80ec84d52f8ee159df5ea85 Mon Sep 17 00:00:00 2001 From: Peter Ludemann Date: Sat, 21 Sep 2024 14:56:39 -0700 Subject: [PATCH] Xref C++ version of simple example --- man/foreign.doc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/man/foreign.doc b/man/foreign.doc index 4f910fec92..190fe25c45 100644 --- a/man/foreign.doc +++ b/man/foreign.doc @@ -5265,7 +5265,9 @@ C compiler. The following is a very simple example going through all the steps outlined above. It provides an arithmetic expression evaluator. We will -call the application \program{calc} and define it in the files \file{calc.c} +call the application \program{calc} and define it in the files +\file{calc.c}\footnote{A similar C++ program is in +\href{https://www.swi-prolog.org/pldoc/man?section=cpp2}{C++ interface to SWI-Prolog (Version 2)}.} and \file{calc.pl}. The Prolog file is simple: \begin{code}