Visual Studio 2010 library linking order

前端 未结 4 1233
北海茫月
北海茫月 2020-12-19 16:54

How do you specify, in Visual Studio 2010, the order in which library files should be linked?

I have a project that links against libexpat and against another librar

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-19 17:31

    You could create a DLL with the third party library and link it against the static version of expat that it needs and then link your code against the version of expat you need.

    However, the fact that it worked before might mean that one library has all the functionality of the other plus some extra. I don't know the details of expat. If that is the case, you need to make sure that you only have the version you want to use in your library search path. A different search directory order in the other version of the compiler could explain the change in behaviour.

提交回复
热议问题