[Wireshark-dev] Custom function undefined error

2012-02-26 Thread vijay
Hi,

Im writing a in wiretap/pacapng.c file which should be accessible from
dumpcap.c. I have defined it in the pcapng.h header file and
also included the header #include wiretap/pcapng.h inside dumpcap.c. But
still build fails in dumpcap.c with error that the function is undefined.

Is there anything should be done to make my function accessible inside
dumpcap.c??

Thanks
Vijay
___
Sent via:Wireshark-dev mailing list wireshark-dev@wireshark.org
Archives:http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Re: [Wireshark-dev] Custom function undefined error

2012-02-26 Thread Guy Harris

On Feb 26, 2012, at 10:34 PM, vijay wrote:

 Im writing a in wiretap/pacapng.c file which should be accessible from 
 dumpcap.c. I have defined it in the pcapng.h header file and 
 also included the header #include wiretap/pcapng.h inside dumpcap.c. But 
 still build fails in dumpcap.c with error that the function is undefined.
 
 Is there anything should be done to make my function accessible inside 
 dumpcap.c??

Yes.

Put it in pcapio.c, not in wiretap/pcapng.c; dumpcap isn't, and won't be, 
linked with Wiretap.
___
Sent via:Wireshark-dev mailing list wireshark-dev@wireshark.org
Archives:http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe


Re: [Wireshark-dev] Custom function undefined error

2012-02-26 Thread vijay
yeah, it works. thanks a lot

On Mon, Feb 27, 2012 at 12:44 AM, Guy Harris g...@alum.mit.edu wrote:


 On Feb 26, 2012, at 10:34 PM, vijay wrote:

  Im writing a in wiretap/pacapng.c file which should be accessible from
 dumpcap.c. I have defined it in the pcapng.h header file and
  also included the header #include wiretap/pcapng.h inside dumpcap.c.
 But still build fails in dumpcap.c with error that the function is
 undefined.
 
  Is there anything should be done to make my function accessible inside
 dumpcap.c??

 Yes.

 Put it in pcapio.c, not in wiretap/pcapng.c; dumpcap isn't, and won't be,
 linked with Wiretap.
 ___
 Sent via:Wireshark-dev mailing list wireshark-dev@wireshark.org
 Archives:http://www.wireshark.org/lists/wireshark-dev
 Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

___
Sent via:Wireshark-dev mailing list wireshark-dev@wireshark.org
Archives:http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe