[Click] Problem with "inline"

Harald Schiöberg harald at net.t-labs.tu-berlin.de
Mon Feb 15 11:08:20 EST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


>  struct VlanInfo {
>         int port;
>         int prio;
>         inline VlanInfo(int _port,int _prio);
>     };
[..]
> ../include/click/bighashmap.cc:46: error: no se encontró una función coincidente para la llamada a ‘VlanSwitch::AddrInfo::AddrInfo()’

without knowing spanish, I'd say your VlanInfo does not contain a
default constructor (one without arguments), yet something in your code
requires it. Probably the default constructor of HashMap...
	
	Harald

ps: click 1.6.0 is really, really old, you should get a more recent
version....

pps: (from the click docs:)
HashTable is faster than Click's prior HashMap class and has fewer
potential race conditions in multithreaded use. HashMap remains for
backward compatibility but should not be used in new code.

- --
Harald Schiöberg
Technische Universität Berlin | T-Laboratories | FG INET
www: http://www.net.t-labs.tu-berlin.de
Phone: +49-(0)30-8353-58476 | Fax: +49-(0)391 534 783 47
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFLeXFzy8wrZ9OvkU0RAuBsAKDFvn8M6jOTp4ZvL/iEwbt/PpSajACbBfqK
0qm9xYwYfB1MTISB6ynrmPQ=
=b01F
-----END PGP SIGNATURE-----



More information about the click mailing list