Pelles C forum

Pelles C => General discussions => Topic started by: Anonymous on May 11, 2005, 07:01:31 PM

Title: #pragma lib and #pragma comment(lib )
Post by: Anonymous 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?
Title: #pragma lib and #pragma comment(lib )
Post by: Pelle 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
Title: #pragma lib and #pragma comment(lib )
Post by: Anonymous 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.