Public bug reported:
Binary package hint: gprolog
Package: gprolog
Version: 1.3.0-3
Severity: important
The file /usr/lib/gprolog-iso/include/gprolog.h of gprolog is supposed
to be includable by C++ programs (and in fact, I am doing that routinely
with the official distribution of GNU Prolog). However, this cannot be
done with the Ubuntu package.
$ fgrep -n -C 3 cplus /usr/lib/gprolog-iso/include/gprolog.h
25-/* $Id: headers.h,v 1.10 2007/01/04 10:35:13 diaz Exp $ */
26-#ifndef _GPROLOG_H
27-#define _GPROLOG_H
28:#ifdef __cplusplus
29-extern "C" {
30-#endif
31-#ifndef _GP_CONFIG_H
--
2569-void Full_Max_Cst_Var(Range *z, int a, Range *x);
2570-void Full_Min_Cst_Var(Range *z, int a, Range *x);
2571-#endif /* NO_USE_FD_SOLVER */
2572:#ifdef __cplusplus
2573-}
2574-#endif
2575-#endif
$ cat bug.cc
#include </usr/lib/gprolog-iso/include/gprolog.h>
$ g++ -c bug.cc
/usr/lib/gprolog-iso/include/gprolog.h: In function ‘WamWord*
Call_CP_Destructors(WamWord*)’:
/usr/lib/gprolog-iso/include/gprolog.h:1077: error: too many arguments to
function
$
** Affects: gprolog (Ubuntu)
Importance: Undecided
Status: New
--
Installed gprolog.h cannot be used in C++ programs
https://bugs.launchpad.net/bugs/155078
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs