Package: minpack-dev Version: 19961126-15 Severity: normal The minpack.h header file lacks the usual guards to tell C++ compilers that we want C style symbol naming. This results in (non-obvious due to pretty printing...) linker errors when minpack.h is included and used from C++ source files.
test.cc.o: In function `main': test.cc:(.text+0x116): undefined reference to `dpmpar_(int*)' test.cc:(.text+0x1a7): undefined reference to `lmdif1_(void (*)(int*, int*, double*, double*, int*), int*, int*, double*, double*, double*, int*, int*, double*, int*)' test.cc:(.text+0x1bc): undefined reference to `enorm_(int*, double*)' collect2: ld returned 1 exit status Could you perhaps add something along the lines of this to the top #ifdef __cplusplus extern "C" { #endif and this to the bottom of minpack.h? #ifdef __cplusplus } #endif Cheers, Rene -- System Information: Debian Release: 5.0.1 APT prefers stable APT policy: (1000, 'stable'), (800, 'unstable'), (500, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages minpack-dev depends on: ii libc6-dev 2.7-18 GNU C Library: Development Librari ii libminpack1 19961126-15 nonlinear equations and nonlinear minpack-dev recommends no packages. minpack-dev suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org