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

Alan Grimes agrimes at speakeasy.net
Wed Apr 22 23:23:47 UTC 2009


thomas at tgohome.com wrote:
> 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).

Simply use the standard diode and give it whatever reverse breakdown
potential you need. ;)

> 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:

That's strange. What compiler are you using? Your snip seems to suggest
GCC 4.3, I use GCC 4.3.3... When I work on the code, I preferentially
use STL classes (Standard Template Library), because I assume they're
well, standard... So I'd guess you're missing a package on your system
or have something misconfigured. I use Gentoo so my system is strongly
self-checking and even sometimes self-correcting. =P

> /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

-- 
New president: Here we go again...
Chemistry.com: A total rip-off.
Powers are not rights.





More information about the Ktechlab-devel mailing list