On Wed, Dec 05, 2012 at 12:29:51PM +0500, Ahmed Talha Khan wrote:
> I am trying to register one of my own modules for logging purpose but it
> does not seem to work.
> 
> In my source file xyz.c included
> 
> VLOG_DEFINE_THIS_MODULE(xyz);
> 
> and then later in the file i use
> 
> VLOG_INFO("some msg printed here")
> 
> But when I run make, the linker cries:
> 
> undefined reference to `VLM_xyz'.
> 
> What am I missing here. Isnt this suppose to be a simple operation?

Yes, all you should need is the VLOG_DEFINE_THIS_MODULE line.

What kind of system are you using?
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to