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??

Thanks...
kishk91




kishk91Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
captainkirkConnect With a Mentor Commented:
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.
0
 
PinTailCommented:
Users don't link, programmers link.

What are you talking about.
0
 
mikeblasCommented:
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
0
 
kishk91Author Commented:
ok...
thanks...
but anyway.. is the a way to check if this lib already been linked???

thanks
kishk91
0
 
mikeblasCommented:
> is the a way to check if this lib already been linked???

No. Because: there's no need to.

..B ekiM
0
All Courses

From novice to tech pro — start learning today.