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. LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12

LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
8 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
    KASR1
    wrote on last edited by
    #1

    I have ported a DLL project from VC6 -> VS2010. It gives the following link error. LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12 How to resolve this error?

    C D S 3 Replies Last reply
    0
    • K KASR1

      I have ported a DLL project from VC6 -> VS2010. It gives the following link error. LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12 How to resolve this error?

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      are you linking to the MS C runtime libs? http://msdn.microsoft.com/en-us/library/988ye33t%28v=vs.80%29.aspx[^]

      image processing toolkits | batch image processing

      K 1 Reply Last reply
      0
      • K KASR1

        I have ported a DLL project from VC6 -> VS2010. It gives the following link error. LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12 How to resolve this error?

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        KASR1 wrote:

        How to resolve this error?

        See here. It almost sounds like a Unicode issue. Do you have UNICODE and/or _UNICODE defined?

        "One man's wage rise is another man's price increase." - Harold Wilson

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        "Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous

        K 1 Reply Last reply
        0
        • D David Crow

          KASR1 wrote:

          How to resolve this error?

          See here. It almost sounds like a Unicode issue. Do you have UNICODE and/or _UNICODE defined?

          "One man's wage rise is another man's price increase." - Harold Wilson

          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

          "Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous

          K Offline
          K Offline
          KASR1
          wrote on last edited by
          #4

          i was able to compile the project in vc6, it gives error only in VS2010(after porting). Something related to environment. I couldnot get it

          1 Reply Last reply
          0
          • C Chris Losinger

            are you linking to the MS C runtime libs? http://msdn.microsoft.com/en-us/library/988ye33t%28v=vs.80%29.aspx[^]

            image processing toolkits | batch image processing

            K Offline
            K Offline
            KASR1
            wrote on last edited by
            #5

            it compiles in vc6. Only in vs2010 link error.

            C 1 Reply Last reply
            0
            • K KASR1

              it compiles in vc6. Only in vs2010 link error.

              C Offline
              C Offline
              Chris Losinger
              wrote on last edited by
              #6

              so, check your vs2010 settings. confirm that it's linking with the MS runtimes.

              image processing toolkits | batch image processing

              K 1 Reply Last reply
              0
              • C Chris Losinger

                so, check your vs2010 settings. confirm that it's linking with the MS runtimes.

                image processing toolkits | batch image processing

                K Offline
                K Offline
                KASR1
                wrote on last edited by
                #7

                yes. It seems like some MS library links by default in vc6 but not in vs2010. Will have investigate further. Thanks for your info.

                1 Reply Last reply
                0
                • K KASR1

                  I have ported a DLL project from VC6 -> VS2010. It gives the following link error. LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12 How to resolve this error?

                  S Offline
                  S Offline
                  Stephen Hewitt
                  wrote on last edited by
                  #8

                  It wasn't Unicode, was it? Well I'm betting it is now. Sounds wrong entry point for a Unicode app.

                  Steve

                  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