On Thu, Sep 04, 2008 at 06:11:51PM +0200, Patrice Dumas wrote:
I have a package that fails to build since gcc 4.3, libnc-dap, and I
am
lost about what could be wrong. It is basically a library and a utility
built on top of the library. When linking the utility, it gets:
../.libs/libnc-dap.so: undefined reference to
`Connections<NCConnect*>::operator[](int)'
The problem is that the function isn't used only in Dnc.cc (where
Connections.cc is included). Probably the easiest fix is to add the
following line somewhere in Dnc.cc and make it visible for other
modules.
template NCConnect* & Connections<NCConnect *>::operator[](int i);
--
Miroslav Lichvar