[Click] Undefined reference
Eddie Kohler
kohler at cs.ucla.edu
Tue Feb 9 13:35:03 EST 2010
That is a very odd error, especially if you are running current git sources.
Have you tried 'make clean; make'?
You are running a recent version of Click, correct? In versions before
1.7.0rc1 you would have to #include <click/vector.cc>. You should probably be
running the latest git.
Eddie
David Sesmero Sáez wrote:
> I have solved the previus problems in my code, thanks to all of you. (Specially to Cliff and Eddie).
>
> But now I have a new problem:
>
> I have in VlanTables.hh one structure like this:
>
> typedef HashMap<int,int> PORT_VLAN;
>
> struct PortInfo{
> bool active;
> bool trunk;
> PORT_VLAN vlans;
> }
>
> Vector<PortInfo> ports;
>
> And in the VlanTables.cc, in the configure function:
>
> Vector<PortInfo>::iterator it=ports.begin();
>
> for(int iter=0; iter<8; iter++){
> ports.insert(it,PortInfo);
> it++;
> }
>
> All the compilation run ok, except the final part, where I have this error:
>
> Undefined reference to Vector<VlanTables::PortInfo>::~Vector()
>
> Someone knows why I have this error?
>
> Thanks, David.
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
More information about the click
mailing list