Simple question abot linking lib files..

Hi all...
i have simple question about linking lib files:
Im developing some class that contains this line in the cpp file:

#pragma comment(lib, "winmm.lib")

my question is if the user ALREADY linked this libray will this
line will cause problems or will it consume momre memory??
How can i check if this library is already been linked in some way??


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.

Users don't link, programmers link.

What are you talking about.
This directive will place a library search record in the object file and will cause the linker to search for the specified library just as if you had put it on the command line. It will not cause the library to be linked twice or any such thing.

Experts Exchange Solution brought to you by

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
PinTail> Users don't link, programmers link.

The user of a programming tool or library is another programmer. That's what's he's talking about.

..B ekiM
kishk91Author Commented:
but anyway.. is the a way to check if this lib already been linked???

> is the a way to check if this lib already been linked???

No. Because: there's no need to.

..B ekiM
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.