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

[MSVC] implement autolinking feature

Add voteWatch issue
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 4.1.2, 4.1.3, 4.1.4, 4.2.0
    • Fix Version/s: 4.3.0
    • Component/s: Configuration
    • Labels:
      None
    • Environment:

      MSVC, ICC/Windows

    • Severity:
      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

              • Assignee:
                Unassigned
                Reporter:
                farid Farid Zaripov

                Dates

                • Created:
                  Updated:

                  Time Tracking

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

                    Issue deployment