Hello,
I have wrote a UDP server, and add its codes to the main function of
src/robinhood/rbh_daemon.c in order to receive message from remote node. I have
done some test on it, and the results show it functioning well.
Well, there is a demand that a function is src/fs_scan/fs_scan.c need
to share the messages receives by the UDP server. So,
I defined a global variable in src/robinhood/rbh_daemon.c, say "int Queue_num
= 5".
In src/fs_scan/fs_scan.h declare it, say "extern int Queue_num".
In fs_scan.c, I wrote a test sentence: sprintf("Queue_num is %d\n", Queue_num);
It is not working, there is an an error:
In function `FSScan_Start':
/home/chendq/databackup/robinhood-2.4.0/src/fs_scan/fs_scan_main.c:86:
undefined reference to `Queue_num'
collect2: ld returned 1 exit status
Can anyone give me some help?
Best regards,
Lucas------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
robinhood-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/robinhood-support