[Click] Undefined reference
Eddie Kohler
kohler at cs.ucla.edu
Tue Feb 9 14:30:30 EST 2010
Your version of 1.6.0 is two and a half years old.
David Sesmero Sáez wrote:
> Hi Eddie,
>
> Yes, I tried doing make clean before doing make, I have one script for
> these things. My version of click is 1.6.0 may be a little bit old.. I
> included <click/vector.cc> and the problem is solved.
>
> Thanks for your response!
> David.
>
>
> --------------------------------------------------
> From: "Eddie Kohler" <kohler at cs.ucla.edu>
> Sent: Tuesday, February 09, 2010 3:35 PM
> To: "David Sesmero Sáez" <Deivid_Sesme at hotmail.com>
> Cc: <click at amsterdam.lcs.mit.edu>
> Subject: Re: [Click] Undefined reference
>
>> 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