help needed for a failed build, libnc-dap C++

Miroslav Lichvar mlichvar at redhat.com
Thu Sep 4 17:30:48 UTC 2008


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




More information about the fedora-devel-list mailing list