[ovs-discuss] Problem with VLOG module init

Ben Pfaff blp at nicira.com
Wed Dec 5 15:35:28 UTC 2012


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?



More information about the discuss mailing list