Unresolved External Symbol
Posted
by TomO
on Stack Overflow
See other posts from Stack Overflow
or by TomO
Published on 2009-07-20T14:21:21Z
Indexed on
2010/05/20
15:00 UTC
Read the original article
Hit count: 187
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#.
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:
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
I have referenced "myutils.lib" in the linker options, so that shouldn't be the issue.
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.
Any ideas?
© Stack Overflow or respective owner