[Lemon-user] Installing Lemon into Eclipe (Omnet Environment)

Jens Buysse jens.buysse at intec.ugent.be
Mon Jun 20 10:27:21 CEST 2011


Hello Alpar,

the small bit of code I'm using is :

void PCE_CHILD::sendTopologyInformationToParentPCE(){
     //Create a full mesh graph

     ListGraph* g = new ListGraph();
     ListGraph::NodeMap<int> * nodeMap = new ListGraph::NodeMap<int>(*g);
     ListGraph::EdgeMap<int> * edgeMap = new ListGraph::EdgeMap<int>(*g);

     for(map<int,int>::iterator ii = nextToDCMapping.begin(); ii!= 
nextToDCMapping.end(); ++ii){
         ListGraph::Node DC = g->addNode();
         ListGraph::Node OXC = g->addNode();
         //Add the address as label to the vertex (node)
         (*nodeMap)[DC] = (*ii).first;
         (*nodeMap)[OXC] =(*ii).second;
         ListGraph::Edge connEdge = g->addEdge(DC,OXC);
         (*edgeMap)[connEdge] = 1;
         for(ListGraph::NodeIt n(*g); n!= INVALID; ++n){
             ListGraph::Edge edge = g->addEdge(OXC,n);
             (*edgeMap)[edge]=1;
         }
     }

     cMessage* PCNtfMsg = new cMessage("PCNt");
     PCNtfMsg->setKind(PCNtf);
     PCNtfMsg->addPar("graph")= (ListGraph*) g;
     PCNtfMsg->addPar("nodeMap") = (ListGraph::NodeMap<int>*) nodeMap;
     PCNtfMsg->addPar("edgeMap")= (ListGraph::EdgeMap<int>*) edgeMap;
     cGate* outGate = gate("toParentPCE$o");
     send(PCNtfMsg,outGate);

}

Op 16/06/2011 17:46, Alpár Jüttner schreef:
> Hi,
>
>  From the error log you sent, it is difficult to say what the problem is.
>
> I have the feeling that in fact nothing is wrong with your Eclipe
> configuration, but instead there is some syntax error in your code using
> LEMON.
>
> Unfortunately, GNU C++ sometimes gives very cryptic error messages.
>
> For further evaluation, please send part of the you code triggering this
> error. It would be even better if you were able to send a short single
> self containing .cc file producing this error.
>
> Regards,
> Alpar
>
> On Thu, 2011-06-16 at 17:22 +0200, Jens Buysse wrote:
>> Dear all,
>>
>> I'm trying to use the lemon system into a simulator I'm developing.
>> For this I'm using Omnetpp which is accompanied in a Eclipse IDE.
>>
>> Does anybody have any experience in incorporating this into the
>> IDE? The /usr/local/include dir is already added to the include paths
>> and the /usr/local/lib (where I found the lemon lib) is also added.
>>
>> When I compile I get the following exception:
>>
>>
>> n file included from /usr/local/include/lemon/list_graph.h:28:0,
>> from src/Network/PCE_CHILD.h:31,
>> from src/Network/PCE_CHILD.cc:16:
>> /usr/local/include/lemon/bits/graph_extender.h: In member function
>> ‘lemon::GraphExtender<Base>::Edge
>> lemon::GraphExtender<Base>::addEdge(lemon::GraphExtender<Base>::Node&,
>> lemon::GraphExtender<Base>::Node&) [with Base = lemon::ListGraphBase,
>> lemon::GraphExtender<Base>::Edge = lemon::ListGraphBase::Edge,
>> lemon::GraphExtender<Base>::Node = lemon::ListGraphBase::Node]’:
>> /usr/local/include/lemon/list_graph.h:1227:22: instantiated from here
>> /usr/local/include/lemon/bits/graph_extender.h:688:7: error: no matching
>> function for call to
>> ‘lemon::AlterationNotifier<lemon::GraphExtender<lemon::ListGraphBase>,
>> lemon::ListGraphBase::Arc>::add(cEnvir&)’
>> /usr/local/include/lemon/bits/alteration_notifier.h:352:10: note:
>> candidates are: void lemon::AlterationNotifier<_Container,
>> _Item>::add(const Item&) [with _Container =
>> lemon::GraphExtender<lemon::ListGraphBase>, _Item =
>> lemon::ListGraphBase::Arc, Item = lemon::ListGraphBase::Arc]
>> /usr/local/include/lemon/bits/alteration_notifier.h:372:10: note: void
>> lemon::AlterationNotifier<_Container, _Item>::add(const
>> std::vector<_Item>&) [with _Container =
>> lemon::GraphExtender<lemon::ListGraphBase>, _Item =
>> lemon::ListGraphBase::Arc]
>>
>> Can somebody help me?
>>
>> Kind regards
>>
>> Jens
>> _______________________________________________
>> Lemon-user mailing list
>> Lemon-user at lemon.cs.elte.hu
>> http://lemon.cs.elte.hu/mailman/listinfo/lemon-user
>>
>


-- 
Jens Buysse
Research Group Broadband Communication Networks (IBCN)
Department of Information Technology (INTEC), Ghent University/ IBBT
Gaston Crommenlaan 8 bus 201, B-9050 Gent, Belgium

tel		: +32 9 33 14 942
fax		: +32 9 33 14 899
mobile	: +32 479 32 21 72
e-mail	: jens.buysse at intec.ugent.be
skype	: jens.buysse

web		: http://ibcn.intec.ugent.be/
web		: www.myspace.com/aratf

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lemon.cs.elte.hu/pipermail/lemon-user/attachments/20110620/7e5168d4/attachment.html>


More information about the Lemon-user mailing list