[Ktechlab-devel] Can't compile ktechlab: "error: no matching function for call... "

thomas at tgohome.com thomas at tgohome.com
Wed Apr 22 23:44:25 UTC 2009


I'm a user of Ubuntu (GNOME at the moment), and I've been with it for
about 1-2 years now. However, I have yet to really compile much - packages
providing what I mostly want.

I would like to compile KTechLab as it has worked well for me past with
the precompiled packages and I know a bit of C/C++ and looking at the code
it seems it wouldn't be too difficult to add some extra features I'd
like... mostly, Zener diodes (couldn't find them).

Anyway... I use Ubuntu 9.04 on my laptop. It's a beta release, but it
works well. When I try make'ing after doing configure, it gives me this:

/usr/include/c++/4.3/bits/stl_vector.h:932: error: no matching function
for call to 'std::vector<std::vector<unsigned int, std::allocator<unsigned
int> >, std::allocator<std::vector<unsigned int, std::allocator<unsigned
int> > > >::_M_fill_initialize(size_t, unsigned int&)'
/usr/include/c++/4.3/bits/stl_vector.h:974: note: candidates are: void
std::vector<_Tp, _Alloc>::_M_fill_initialize(size_t, const _Tp&) [with _Tp
= std::vector<unsigned int, std::allocator<unsigned int> >, _Alloc =
std::allocator<std::vector<unsigned int, std::allocator<unsigned int> > >]
make[4]: *** [matrix.lo] Error 1
make[4]: Leaving directory
`/home/thomas/ktechlab-0.3/src/electronics/simulation'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/thomas/ktechlab-0.3/src/electronics'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/thomas/ktechlab-0.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/thomas/ktechlab-0.3'
make: *** [all] Error 2

I think this might have to do with me having g++-4.3, and some feature
being missing in that version, compared to g++-4.2 or g++-4.1. Is there
any way to fix this or work around this?

Thanks, all help appreciated. Keep up the good work.





More information about the Ktechlab-devel mailing list