Possible duplicate:
What is an undefined link / unresolved external symbol error and how to fix it?
I am working on porting a large number of .h and .lib files from C ++ to managed C ++ for possible use as a reference .dll in C #.
I have .lib files and everything is going smoothly so far. After wrapping the last .h file, I fell into the trap when 2 functions returned with a link:
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 refer to myutils.libin the linker options, so this should not be a problem.
Which is strange that I have about 20 functions in this particular .h file, and all the rest are just fine, with the exception of three functions.
Any ideas?