#pragma lib and #pragma comment(lib )

Started by Anonymous, May 11, 2005, 07:01:31 PM

Previous topic - Next topic

Anonymous

Hi Pelle,
Can you give a brief description of what happens with the #pragma lib preprocessor directives?  

Specifically where are the library names stored and how does the linker get hold of them?

Pelle

They are stored as linker options in an object file section called ".drectve" - something like "-defaultlib:mylib". (Use PODUMP on an object file).

Pelle
/Pelle

Anonymous

Quote from: "Pelle"They are stored as linker options in an object file section called ".drectve" - something like "-defaultlib:mylib". (Use PODUMP on an object file).
Pelle

Thanks.  That's what I expected, but wasn't sure.