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. LNK4003

LNK4003

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpannouncement
7 Posts 2 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.
  • A Offline
    A Offline
    Allwyn Dsouza
    wrote on last edited by
    #1

    Hi, When I use the APPWIZARD (EXE) to create a basic MFC application and if I select the "REGULAR MFC" option in the end, the program runs fine....But if I select the "MFC IN STATIC LIBRARY"..it shows LNK4003 error... I am using the Enterprise Version of VC++ 6 Please help,,,, Allwyn Ds

    D 1 Reply Last reply
    0
    • A Allwyn Dsouza

      Hi, When I use the APPWIZARD (EXE) to create a basic MFC application and if I select the "REGULAR MFC" option in the end, the program runs fine....But if I select the "MFC IN STATIC LIBRARY"..it shows LNK4003 error... I am using the Enterprise Version of VC++ 6 Please help,,,, Allwyn Ds

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

      Allwyn D`souza wrote: ...it shows LNK4003 error... Which library is the linker complaining about?


      "One must learn from the bite of the fire to leave it alone." - Native American Proverb

      A 1 Reply Last reply
      0
      • D David Crow

        Allwyn D`souza wrote: ...it shows LNK4003 error... Which library is the linker complaining about?


        "One must learn from the bite of the fire to leave it alone." - Native American Proverb

        A Offline
        A Offline
        Allwyn Dsouza
        wrote on last edited by
        #3

        it says: C:\Program Files\Microsoft Visual Studio\VC98\LIB\libcmtd.lib : warning LNK4003: invalid library format; library ignored C:\Program Files\Microsoft Visual Studio\VC98\LIB\libcmtd.lib : warning LNK4003: invalid library format; library ignored nafxcwd.lib(winfrm2.obj) : error LNK2001: unresolved external symbol ___CxxFrameHandler .... and the list goes on... Kindly help !!!

        D 1 Reply Last reply
        0
        • A Allwyn Dsouza

          it says: C:\Program Files\Microsoft Visual Studio\VC98\LIB\libcmtd.lib : warning LNK4003: invalid library format; library ignored C:\Program Files\Microsoft Visual Studio\VC98\LIB\libcmtd.lib : warning LNK4003: invalid library format; library ignored nafxcwd.lib(winfrm2.obj) : error LNK2001: unresolved external symbol ___CxxFrameHandler .... and the list goes on... Kindly help !!!

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

          It sounds like your linker options are askew. I don't know if you need to add Nafxcwd.lib and Libcmtd.lib to the list of libraries to ignore, or change the order in which the linker processes them.


          "One must learn from the bite of the fire to leave it alone." - Native American Proverb

          A 1 Reply Last reply
          0
          • D David Crow

            It sounds like your linker options are askew. I don't know if you need to add Nafxcwd.lib and Libcmtd.lib to the list of libraries to ignore, or change the order in which the linker processes them.


            "One must learn from the bite of the fire to leave it alone." - Native American Proverb

            A Offline
            A Offline
            Allwyn Dsouza
            wrote on last edited by
            #5

            I will try what you suggested and get back to you... Actually, I just selected the "WIN32 Release" in the 'etting for' option.... and the code compiled and ran completely....

            A 1 Reply Last reply
            0
            • A Allwyn Dsouza

              I will try what you suggested and get back to you... Actually, I just selected the "WIN32 Release" in the 'etting for' option.... and the code compiled and ran completely....

              A Offline
              A Offline
              Allwyn Dsouza
              wrote on last edited by
              #6

              I just selected the "WIN32 Release" in the 'Setting for' option.in Project/Settings... and the code compiled and ran completely....

              A 1 Reply Last reply
              0
              • A Allwyn Dsouza

                I just selected the "WIN32 Release" in the 'Setting for' option.in Project/Settings... and the code compiled and ran completely....

                A Offline
                A Offline
                Allwyn Dsouza
                wrote on last edited by
                #7

                I am sorry I told you before that the code linked properly...actually the option just got resetted to "REGULAR share DLL" and the code ran fine.... Now I am back at the same point... When I ignore the default libraries the options look like this: /nologo /subsystem:windows /incremental:yes /pdb:"Debug/netmet1.pdb" /debug /machine:I386 /nodefaultlib /out:"Debug/netmet1.exe" /pdbtype:sept and when I disable the ignore default libs..the options look like this.... /nologo /subsystem:windows /incremental:yes /pdb:"Debug/netmet1.pdb" /debug /machine:I386 /out:"Debug/netmet1.exe" /pdbtype:sept What changes do i need to make to the above options...???

                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