LNK2001 error when compiling apps referencing STLport-5.1.4 with VC++ 2008

前端 未结 6 1868
感动是毒
感动是毒 2020-12-18 14:15

I apologize in advance for the long post...

I used to be able to build our VC++ solutions (we\'re on VS 2008) when we listed the STLPort include and library director

6条回答
  •  有刺的猬
    2020-12-18 14:38

    Raymond Chen recently talked about this at The Old New Thing-- one cause of these problems is that the library was compiled with one set of switches, but your app is using a different set. What you have to do is:

    Get the exact symbol that the linker is looking for. It will be a horrible mangled name. Use a hex editor (IIRC, Visual Studio will do this) to look at the .lib file you're linking to. Find the symbol that's almost the thing the linker is looking for, but not quite. Given the differences in the symbols, try to figure out what command line switches will help. Good luck -- for people who aren't used to this sort of problem, the solution can take days to figure out (!)

提交回复
热议问题