Here's an example:<br><br>CWPA.obj : error LNK2001: unresolved external symbol &quot;void __cdecl wpa_cli_cleanup(void)&quot; (?wpa_cli_cleanup@@YAXXZ).<br><br>this comes from putting a call to wpa_cli_cleanup() in the destructor of the class I'm trying to make.&nbsp; It is not a call to winpcap's dlls but to wpa_cli code C code (actually to its .objs).
<br><br>george<br><br><div><span class="gmail_quote">On 8/6/06, <b class="gmail_sendername">Gianluca Varenni</b> &lt;<a href="mailto:gianluca.varenni@cacetech.com">gianluca.varenni@cacetech.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>





<div bgcolor="#ffffff">
<div><font size="2">WinPcap can be used within a C++ application without any 
problem, you don't need extern &quot;C&quot; or similar stuff. </font></div>
<div><font size="2"></font>&nbsp;</div>
<div><font size="2">What is the exact linking error you are 
encountering?</font></div>
<div><font size="2"></font>&nbsp;</div>
<div><font size="2">Have a nice day</font></div></div><div><span class="sg">
<div><font size="2">GV</font></div></span></div><div><span class="e" id="q_10ce5b02b2186131_2">
<blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
  <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">----- Original Message ----- </div>
  <div style="background: rgb(228, 228, 228) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>From:</b> 
  <a title="gslockwood@gmail.com" href="mailto:gslockwood@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">George S. 
  Lockwood</a> </div>
  <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b> <a title="Tom@redtile.com" href="mailto:Tom@redtile.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Tom@redtile.com</a> ; <a title="winpcap-users@winpcap.org" href="mailto:winpcap-users@winpcap.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">winpcap-users@winpcap.org</a> </div>
  <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b> Saturday, August 05, 2006 11:28 
  AM</div>
  <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b> Re: [Winpcap-users] Entry Point 
  in a DLL</div>
  <div><font size="2"></font><br></div>
  <div>Hello Thomas,<br><br>I think I'm trying to do something similar but with 
  a standard library I (think) am statically linking.&nbsp; I'm getting link 
  errors about unresolved externals.&nbsp; I am try to build the wpa_cli into a 
  class. <br><br>I think my problem is about a class (cpp) file not 
  understanding a lib build from straight &quot;C&quot; and thereby not finding a c style 
  functions.<br><br>Either I'm getting forgetful (very possible), or involved 
  with .net too much too recently to remember (also possible) that I'm forgeting 
  the way to link C-style functions into a cpp module and call those external 
  functions. <br><br>What am I forgetting?? Or am I forgetting that it is 
  impossible.&nbsp; I thought I needed to declare the externals with something 
  like __decl or with &quot;C&quot;&nbsp;&nbsp;&nbsp; inside the cpp file???????<br></div>
  <div><font size="2"></font>&nbsp;</div><font size="2"></font></blockquote>
</span></div><div><blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;"></blockquote></div><div><span class="e" id="q_10ce5b02b2186131_4">
  <div><br><br>thanks for any of your ideas, <br><br>george<br><br></div>
  <div><span class="gmail_quote">On 8/3/06, <b class="gmail_sendername">Thomas 
  O'Hare</b> &lt;<a href="mailto:Tom@redtile.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Tom@redtile.com</a>&gt; 
  wrote:</span>
  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello 
    All!<br><br>I am using Dev-C++ in C++ mode to try and create an entry point 
    into my<br>own DLL's based on the WinPCap Libraries.&nbsp;&nbsp;I need to 
    export several of<br>my own functions to languages that do not inherently 
    support C typed <br>structures.<br><br>I am looking for the cleanest, fasted 
    way to create an entry point for<br>my functions so I can use the DLL as a 
    true library for the programming<br>languages lacking native structure 
    support.<br><br>I can open DLL's in these languages and call functions, but 
    especially<br>&quot;chained&quot; (Next) structures are very very tricky to work with 
    in any<br>language that does not have native support for C typed structures. 
    <br><br>Any docs, resources, suggestions, etc, are 
    welcome.<br>--<br><br>Thanks,<br>~ Thomas O'Hare ~<br>President, RedTile, 
    Inc. - DBA: RedTile Software<br>Web, Wireless, Network, Database &amp; 
    Systems Software<br>+1.407.295.9148 ; +49.8651.717950 ; <a href="http://www.RedTile.Com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.RedTile.Com/</a><br>Operations 
    Manager; Virtual FoxPro User Group<br><a href="mailto:Tom@VFUG.Org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Tom@VFUG.Org</a> ; <a href="http://www.VFUG.Org/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.VFUG.Org/</a><br>_______________________________________________<br>Winpcap-users 
    mailing list<br><a href="mailto:Winpcap-users@winpcap.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Winpcap-users@winpcap.org</a><br><a href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br></blockquote></div><br>
  </span></div><div><p>
  </p><hr></div><div><span class="q">

  <p></p>_______________________________________________<br>Winpcap-users 
  mailing 
  list<br><a href="mailto:Winpcap-users@winpcap.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Winpcap-users@winpcap.org</a><br><a href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br></span></div><div><p></p></div>

</div><br>_______________________________________________<br>Winpcap-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Winpcap-users@winpcap.org">Winpcap-users@winpcap.org</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank">https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br><br><br></blockquote></div>
<br>