how to add a library into a new library project in Visual Studio c\c++

I know how to add a dll or static library into my project but recently i have come to a situation that i need to add a dll library into my new dll/static library project (i have NOT decided yet:)) and i cannot follow the same way i did with "ordinary" prjects like properties->c\c++->general->additional....but i don`t see any LINK category in properties?!. Can you please help me find that "LINK":) or show me how to do that in another way? I am working with c/c++ by the way:)

EDIT: i am including my lib but can`t link it and show which lib i need to use like Link->input .... my.lib
Abdurasul YakubovAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

 
sarabandeCommented:
a static library is nothing but a bunch of object modules from c or c++ sources. that means the linker is not involved but only the compiler. hence, there is no linker input required for such a project and you wouldn't get errors because of unresolved externals beside you would use the library in an application or dll project.

Sara
0

Experts Exchange Solution brought to you by ConnectWise

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
 
phoffricCommented:
To help clarify your problem, could you elaborate a little on the problems you have regarding your remark:
>> cannot follow the same way i did with "ordinary" prjects like properties->c\c++->general->additional
0
 
sarabandeCommented:
could you elaborate a little on the problems you have regarding your remark:
>> cannot follow the same way i did with "ordinary" prjects like properties->c\c++->general->additional

perhaps i can help to clarify this remark. 'ordinary' projects like application projects or dll projects do have a 'linker\input' node in the configuration properties. in the properties page of linker\input there is an option 'Additional Dependencies' where you can define a list of input modules like libraries or object modules which were used to resolve needed external symbols such as functions provided by visual c++ or 3rd-party dll's in the build (link) process.

for a (static) library project the whole linker node is not existing because the functions in a static library are not linked yet and there is no check on unresolved externals as long as the library wasn't used by a project with linker section. even then, only the used functions of a library are checked.

Sara
0
 
sarabandeCommented:
Question was answered.

Sara
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.