[Issue 2776] pragma(lib, does not work when used in headers

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Apr 10 16:39:18 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=2776


Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com


--- Comment #5 from Walter Bright <bugzilla at digitalmars.com> 2011-04-10 16:35:35 PDT ---
There are a couple problems with this patch.

1. It moves up to the semantic phase a call to set the include lib in an obj
file. This is completely outside how obj files are written, and mucks up the
separation of passes. It shouldn't work at all.

2. Lots of projects have a tendency to import lots of things. Sometimes none of
it is referenced, sometimes only a minor declaration is referenced, sometimes
the import is an unneeded private import of some other module. Demanding then
that the referenced library exist and be linked in can cause its own
frustrations and problems.


I don't know if there is a good solution to these problems. I don't think the
patch is it.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list