Package: libga-dev
Version: 2.4.7-3
Severity: normal
$ cat test.cc
#include <stdio.h>
#ifdef USE_GA
#include <ga/ga.h>
#endif
class A
{
public:
bool operator==(const A &other)
{
return 0;
}
};
class B : public A
{ };
int main()
{
B x, y;
return x == y;
}
$ g++ test.cc && echo $?
0
$ g++ -DUSE_GA test.cc
/tmp/cchkaUHs.o: In function `main':
test.cc:(.text+0x7b): undefined reference to `int operator==<B>(B const&, B
const&)'
collect2: ld returned 1 exit status
To work around this bug/misfeature I needed to forcibly undefine
GALIB_USE_COMP_OPERATOR_TEMPLATES.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (900, 'unstable'), (500, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.30-1-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libga-dev depends on:
ii libga2 2.4.7-3 C++ Library of Genetic Algorithm C
libga-dev recommends no packages.
libga-dev suggests no packages.
-- no debconf information
--
Jakub Wilk
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]