Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changes between Version 5 and Version 6 of TopicAdvancedConfiguration

sean (IP:
04/30/08 16:59:17 (12 years ago)

Modified library names to reflect the current state of Tango.


  • TopicAdvancedConfiguration

    v5 v6  
    1414Here is a partial list of compilers and platforms, and the libraries they will link by default: 
    16  * DMD Win32: phobos.lib 
    17  * DMD Linux: libphobos.a 
     16 * DMD Win32: tango-base-dmd.lib 
     17 * DMD Linux: libtango-base-dmd.a 
    1818 * GDC: libgphobos.a 
    2020[wiki:TopicBuildingTango Manually building Tango] should produce one of the composite libraries mentioned above, plus its three component sub-libraries.  Then, rather than publishing the composite library, rename the appropriate compiler runtime library to match the name of the composite library and publish that instead, accompanied by the Tango sub-library and an appropriate garbage collector sub-library.  The compiler runtime library should then be linked by default, leaving the other two to be specified manually.  To avoid specifying these libraries for every build, the library names may be added to the `DFLAGS` line for DMD or patched into the 'gdmd' script for GDC. 
    22 For example, assuming a DMD Win32 target, rename lib\compiler\dmd.lib to phobos.lib and copy it over any existing phobos.lib in the library path.  Then copy lib\tango.lib and lib\gc\basic.lib to the same location.  And optionally edit sc.ini to add tango.lib and basic.lib to the DFLAGS line.  If basic.lib is not unique, rename it to something meaningful and change DFLAGS as appropriate. 
     22For example, assuming a DMD Win32 target, copy lib\compiler\tango-rt-dmd.lib to your library directory and set it as the default library instead of tango-base-dmd.lib.  Then copy lib\gc\tango-gc-basic.lib and lib\common\tango-cc-tango.lib to the same location.  Finally, optionally edit sc.ini to add tango-gc-basic.lib and tango-cc-tango.lib to the DFLAGS line. 
    2424While this process incurs additional maintenace issues over the default install, it offers one notable advantage: the garbage collector used by an application may be specified at link time.  Also, on systems with multiple D compilers, a common Tango and garbage collector may be used, with only multiple compiler runtime libraries in place.