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. ATL / WTL / STL
  4. STL from visual C++ in Unix???

STL from visual C++ in Unix???

Scheduled Pinned Locked Moved ATL / WTL / STL
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.
  • K Offline
    K Offline
    knapak
    wrote on last edited by
    #1

    Hi I wrote code using MS Visual C++ 6.0 and used different kinds of containers and algorithms from the STL. Can I take my code to be compiled and run in Unix without fuss? Thanks!

    T S M 3 Replies Last reply
    0
    • K knapak

      Hi I wrote code using MS Visual C++ 6.0 and used different kinds of containers and algorithms from the STL. Can I take my code to be compiled and run in Unix without fuss? Thanks!

      T Offline
      T Offline
      ThatsAlok
      wrote on last edited by
      #2

      knapak wrote: Can I take my code to be compiled and run in Unix without fuss? Have A try!


      [Vote One Here, Complete my Survey....] Alok Gupta
      visit me at http://www.thisisalok.tk          "I Think Believe this Will Help"

      1 Reply Last reply
      0
      • K knapak

        Hi I wrote code using MS Visual C++ 6.0 and used different kinds of containers and algorithms from the STL. Can I take my code to be compiled and run in Unix without fuss? Thanks!

        S Offline
        S Offline
        Stuart Dootson
        wrote on last edited by
        #3

        Why not download GCC (which includes STL, IIRC) from here[^] and try it :-) GCC is the most widely used compiler on Linux/Unix, so this Windows version is the easiest to try! You may have some problems - some parts of MSVC6 STL (and MSVC for that matter!) aren't compliant with the C++ standard. There's a few things in std::string that aren't right and all the member template functionss defined in the standard aren't member template functions in MSVC STL. However, there shouldn't be too many Stuart Dootson 'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'

        1 Reply Last reply
        0
        • K knapak

          Hi I wrote code using MS Visual C++ 6.0 and used different kinds of containers and algorithms from the STL. Can I take my code to be compiled and run in Unix without fuss? Thanks!

          M Offline
          M Offline
          markkuk
          wrote on last edited by
          #4

          STL is the Standard Template Library. It's part of the definition of the C++ language, so any correctly written code should work on all compliant implementations of STL.

          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