NO

Author Topic: #pragma lib and #pragma comment(lib )  (Read 2875 times)

Anonymous

  • Guest
#pragma lib and #pragma comment(lib )
« on: May 11, 2005, 07:01:31 pm »
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?

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2084
    • http://www.smorgasbordet.com
#pragma lib and #pragma comment(lib )
« Reply #1 on: May 11, 2005, 09:24:47 pm »
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

  • Guest
#pragma lib and #pragma comment(lib )
« Reply #2 on: May 11, 2005, 10:45:10 pm »
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.