title: Unresolved External Symbol
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/12573816/what-is-an-undefined-reference-unresolved-external-symbol-error-and-how-do-i-fix">What is an undefined reference/unresolved external symbol error and how do I fix it?</a></p>
  </blockquote>
  
  <p>I am working on wrapping a large number of .h and .lib files from native C++ to Managed C++ for eventual use as a referenced .dll in C#.</p>
  
  <p>I have the .lib files linked in and everything has been going smoothly so far.  Upon wrapping the latest .h file, I hit a snag when 2 functions came back with the link error:</p>
  
  <pre><code>error LNK2019: unresolved external symbol __imp__htonl@4 referenced in function
  "public: void __thiscall Field::setCharacter(unsigned char,int)"
  (?setCharacter@Field@@QAEXEH@Z) myutils.lib 
  </code></pre>
  
  <p>I have referenced <code>myutils.lib</code> in the linker options, so that shouldn't be the issue. </p>
  
  <p>What's strange is that I have about 20 functions in this particular .h file and all of the rest are linking just fine except for 3 functions. </p>
  
  <p>Any ideas?</p>