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. Using STL in ATL

Using STL in ATL

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpdebuggingquestionannouncement
4 Posts 3 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.
  • T Offline
    T Offline
    Tony Li
    wrote on last edited by
    #1

    In my ATL DLL projects, I used one of the containers in STL. I also tured on the "Exception Handling" compiler option (-Gx) to suppress the warnings. It's just fine with my DEBUG built. But there is a link error "error LNK2001: unresolved external symbol _main" from my RELEASE build. Could anyone tell me what I should do to solve the problem? Thanks, Tony

    T 1 Reply Last reply
    0
    • T Tony Li

      In my ATL DLL projects, I used one of the containers in STL. I also tured on the "Exception Handling" compiler option (-Gx) to suppress the warnings. It's just fine with my DEBUG built. But there is a link error "error LNK2001: unresolved external symbol _main" from my RELEASE build. Could anyone tell me what I should do to solve the problem? Thanks, Tony

      T Offline
      T Offline
      Tim Deveaux
      wrote on last edited by
      #2

      Remove the preprocessor option ATL_MIN_CRT from the release build settings.

      T 1 Reply Last reply
      0
      • T Tim Deveaux

        Remove the preprocessor option ATL_MIN_CRT from the release build settings.

        T Offline
        T Offline
        Tony Li
        wrote on last edited by
        #3

        It does work with my "Release MinDependency" build! But it couldn't solve the problem within my "Release MinSize" build. What should I do? Thanks, Tony

        A 1 Reply Last reply
        0
        • T Tony Li

          It does work with my "Release MinDependency" build! But it couldn't solve the problem within my "Release MinSize" build. What should I do? Thanks, Tony

          A Offline
          A Offline
          Alex Gorev
          wrote on last edited by
          #4

          Hi, You MUST remove the preprocessor option ATL_MIN_CRT from ALL release builds, not only from "Release MinDependency". Regards, Alex Gorev, Dundas Software.

          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