STL and VC++
-
-
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 -
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]_
-
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 -
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
-
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]_
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?