How can I add one more function to TraCIDemo11p.cc?

17 views
Skip to first unread message

Pedro

unread,
Feb 20, 2017, 12:57:24 AM2/20/17
to OMNeT++ Users
I would like to add a function to TraCIDemo11p.cc that when my vehicle enters in a specific area
It sends information such as speed, location and vehicle's id to the LSU every 0.5 second.

Using veins example I could understand the basic concept of veins, but I get an error.

My function is an empty one, such as:

void TraCIDemo11p::new_function(){
}

and in  TraCIDemo11p.h I specified like:

virtual void new_function();

What is wrong with this simple code?
Why can't I make a new function to the TraCIDemo11p?

Some of the error messages were expected statement, make:*** [all] Error 2, no matching function for call to 'strcmp' and so on

Reply all
Reply to author
Forward
0 new messages