开发者

building multiple project in visual studio

开发者 https://www.devze.com 2023-02-06 06:58 出处:网络
I have projects A,B in visual studio under the solution AB. B is a static library with a simple method named \"add\" which is already declared with __declspec(dllexport)

I have projects A,B in visual studio under the solution AB. B is a static library with a simple method named "add" which is already declared with __declspec(dllexport)

and A is an application depending on B.

the build order is configured B -> A

B.lib is getting created properly but i am getting "error LNK2019: unresolved external symb开发者_运维知识库ol _add referenced in function _main"

I also referenced the B.lib's directory in Additional dependencies in A's Project settings page

Please let me know where i am making the mistake....


sry got the solution to my problem...

C:\Documents and Settings\absasdf\My Documents\Visual Studio 2010\Projects\AB\Debug; added to Linker>General>Additional Library Directories

and

B.lib added to Linker>Input>Additional Dependencies

Now its working fine..

0

精彩评论

暂无评论...
验证码 换一张
取 消