|
-
July 4th, 2011, 05:34 PM
#8
Re: How would I know which lib is missing during the linkage ?
 Originally Posted by MikeAThon
Note that there is a huge difference between "CreateRelation", which apparently is a function defined by you, and "_CreateRelation" (note the underscore), which is an external function for which the compiler can find a .h header, but for which the linker cannot find a .lib library file.
I only have a vague idea of the OP's scenario, yet I don't think so. CreateRelation() rather seems to be a function with C linkage, to which not the "fancy" C++ name mangling is applied, but instead each C symbol is prefixed with an underscore, and the linker doesn't undecorate these names. The way the linker refers to the main() function is an indication of this:
 Originally Posted by __bairagi
error LNK2019: unresolved external symbol _CreateRelation referenced in function _main
I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.
This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|