[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wireshark-dev
Subject:    Re: [Wireshark-dev] Custom function undefined error
From:       vijay <vijay.prasanth () gmail ! com>
Date:       2012-02-27 7:57:38
Message-ID: CA+bvjGhPhSLwpA=UP82Opokzwstkd8JaN77yhhV3W2kW8wPRVg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


yeah, it works. thanks a lot

On Mon, Feb 27, 2012 at 12:44 AM, Guy Harris <guy@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-request@wireshark.org?subject=unsubscribe
>

[Attachment #5 (text/html)]

yeah, it works. thanks a lot<br><br><div class="gmail_quote">On Mon, Feb 27, 2012 at \
12:44 AM, Guy Harris <span dir="ltr">&lt;<a \
href="mailto:guy@alum.mit.edu">guy@alum.mit.edu</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <div><div></div><div class="h5"><br>
On Feb 26, 2012, at 10:34 PM, vijay wrote:<br>
<br>
&gt; 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<br> &gt; also included \
the header #include &quot;wiretap/pcapng.h&quot; inside dumpcap.c. But still build \
fails in dumpcap.c with error that the function is undefined.<br> &gt;<br>
&gt; Is there anything should be done to make my function accessible inside \
dumpcap.c??<br> <br>
</div></div>Yes.<br>
<br>
Put it in pcapio.c, not in wiretap/pcapng.c; dumpcap isn&#39;t, and won&#39;t be, \
linked with Wiretap.<br> \
___________________________________________________________________________<br> Sent \
via:    Wireshark-dev mailing list &lt;<a \
                href="mailto:wireshark-dev@wireshark.org">wireshark-dev@wireshark.org</a>&gt;<br>
                
Archives:    <a href="http://www.wireshark.org/lists/wireshark-dev" \
                target="_blank">http://www.wireshark.org/lists/wireshark-dev</a><br>
Unsubscribe: <a href="https://wireshark.org/mailman/options/wireshark-dev" \
                target="_blank">https://wireshark.org/mailman/options/wireshark-dev</a><br>
                
             mailto:<a \
href="mailto:wireshark-dev-request@wireshark.org">wireshark-dev-request@wireshark.org</a>?subject=unsubscribe<br>
 </blockquote></div><br>



___________________________________________________________________________
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-request@wireshark.org?subject=unsubscribe

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic