www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11523] New: pragma(lib "x") doesn't have any effect in a static library


           Summary: pragma(lib "x") doesn't have any effect in a static
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: flamaros.xavier gmail.com

--- Comment #0 from Xavier Bigand <flamaros.xavier gmail.com> 2013-11-15
15:30:15 PST ---
A pragma(lib, "x") putted in a module that isn't not directly use by the client
application doesn't make the dependency linked into the generated static

The work around is to report the pragma(lib, "x") declaration in the main.d

PS: I also think that the documentation on pragma(lib, "x") miss to explain the
format that "x" must have on each platform. I am always confuse on the
necessity to have the extension or not, and the "lib" prefix on linux.

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