Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-675

[MSVC] implement autolinking feature

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 4.1.2, 4.1.3, 4.1.4, 4.2.0
    • 4.3.0
    • Configuration
    • None
    • MSVC, ICC/Windows

    • Cosmetic

    Description

      At the moment the users of the library should explicitly specify the used library name in linker command line. Here might be problems if the user's project was compiled with config.h for some configuration (let's say 12d) but linked with library for another configuration (i.e. libstd12s.lib).

      The MSVC and ICC/Windows has the posibility to specify the library using #pragma comment (lib, libname) directive. So #including any header from the library will leads to linking automatically with the proper library file.

      Attachments

        1. autolink.patch
          4 kB
          Farid Zaripov

        Issue Links

          Activity

            People

              Unassigned Unassigned
              farid Farid Zaripov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified