Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. STL and VC++

STL and VC++

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    xicoloko
    wrote on last edited by
    #1

    Since I started to use STL in my application it depends on the MSVCP60 library. I thought that since STL is a set of template classes it would be static linked, but unfortunately it isn't. Is there some way to avoid this dependency? Cheers, - xico -

    N M 2 Replies Last reply
    0
    • X xicoloko

      Since I started to use STL in my application it depends on the MSVCP60 library. I thought that since STL is a set of template classes it would be static linked, but unfortunately it isn't. Is there some way to avoid this dependency? Cheers, - xico -

      N Offline
      N Offline
      Nish Nishant
      wrote on last edited by
      #2

      STL need not be linked in. Its a source code thing totally or that's what CG has got me to believe Nish_


      One little CD gone, Then two CDs gone, Then 5 more gone, For a total 7 gones, If I was a CD R, I'd wanna cry, Cause I'd be just a goner, For a nasty CD burner. [funny how frustration wakes up the poet in me]_

      T 1 Reply Last reply
      0
      • X xicoloko

        Since I started to use STL in my application it depends on the MSVCP60 library. I thought that since STL is a set of template classes it would be static linked, but unfortunately it isn't. Is there some way to avoid this dependency? Cheers, - xico -

        M Offline
        M Offline
        Mike Nordell
        wrote on last edited by
        #3

        Link with it statically (i.e. libc instead of msvcrt). Project/Settings: Tab "C/C++". Select "Code Generation" from the drop-list. Select anything suitable that does not contain "DLL" in the drop-list for "Use run-time library:". /Mike

        1 Reply Last reply
        0
        • N Nish Nishant

          STL need not be linked in. Its a source code thing totally or that's what CG has got me to believe Nish_


          One little CD gone, Then two CDs gone, Then 5 more gone, For a total 7 gones, If I was a CD R, I'd wanna cry, Cause I'd be just a goner, For a nasty CD burner. [funny how frustration wakes up the poet in me]_

          T Offline
          T Offline
          Tim Smith
          wrote on last edited by
          #4

          Nope, STL just like anything else can be compiled into a DLL with the methods exported. You will find that the string class does this a lot. Tim Smith I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups