Subject: Installed gprolog.h cannot be used in C++ programs
Package: gprolog
Version: 1.2.18-17
Severity: important
*** Please type your report below this line ***
[EMAIL PROTECTED]:~/tppl$ fgrep -n -C 3 cplus /usr/lib/gprolog-iso/include/
25-/* $Id: headers.h,v 1.7 2004/01/16 16:01:00 diaz Exp $ */
26-#ifndef _GPROLOG_H
27-#define _GPROLOG_H
28:#ifdef __cplusplus
29-extern "C" {
30-#endif
31-#ifndef _GP_CONFIG_H
--
2556-void Full_Max_Cst_Var(Range *z, int a, Range *x);
2557-void Full_Min_Cst_Var(Range *z, int a, Range *x);
2558-#endif /* NO_USE_FD_SOLVER */
2559:#ifdef __cplusplus
2560-}
2561-#endif
2562-#endif
[EMAIL PROTECTED]:~/tppl$ cat bug.cc
#include </usr/lib/gprolog-iso/include/gprolog.h>
[EMAIL PROTECTED]:~/tppl$ 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:1064: error: too many arguments to
function
[EMAIL PROTECTED]:~/tppl$
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-5-k7
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages gprolog depends on:
ii libc6 2.3.6.ds1-13etch2 GNU C Library: Shared libraries
Versions of packages gprolog recommends:
pn gprolog-doc <none> (no description available)
-- no debconf information