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. Linking Error

Linking Error

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

    Hello Frriends "MSVCRT.lib(chkstk.obj) : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'" This Linker error really frustrates me and i googling a lot but didnt find any relevant suggestion.Can Anybody suggests me here , how to overcome this error.... i am Trying to compile my project (that works fine for 32 bit) to make it compatible for 64-bit OS. For That I change the Setting as "Build -> Configuration Manager -> x64|Debug". I am using MS Vs2005(VC++) ...Sorry friends if ii make any silly mistake.. is there any other way to make a project 64 bit compatible.....

    M S 2 Replies Last reply
    0
    • A Aabid

      Hello Frriends "MSVCRT.lib(chkstk.obj) : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'" This Linker error really frustrates me and i googling a lot but didnt find any relevant suggestion.Can Anybody suggests me here , how to overcome this error.... i am Trying to compile my project (that works fine for 32 bit) to make it compatible for 64-bit OS. For That I change the Setting as "Build -> Configuration Manager -> x64|Debug". I am using MS Vs2005(VC++) ...Sorry friends if ii make any silly mistake.. is there any other way to make a project 64 bit compatible.....

      M Offline
      M Offline
      Malli_S
      wrote on last edited by
      #2

      Do you have #include<iostream.h> in your code ? If yes, try #include<iostream> instead.

      [Delegates]      [Virtual Desktop]      [Tray Me !]
      -Malli...! :rose:****

      A 1 Reply Last reply
      0
      • A Aabid

        Hello Frriends "MSVCRT.lib(chkstk.obj) : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'" This Linker error really frustrates me and i googling a lot but didnt find any relevant suggestion.Can Anybody suggests me here , how to overcome this error.... i am Trying to compile my project (that works fine for 32 bit) to make it compatible for 64-bit OS. For That I change the Setting as "Build -> Configuration Manager -> x64|Debug". I am using MS Vs2005(VC++) ...Sorry friends if ii make any silly mistake.. is there any other way to make a project 64 bit compatible.....

        S Offline
        S Offline
        Sarath C
        wrote on last edited by
        #3

        Seems you're application is targeted to run under 64-bit environment. Please put $:\Program Files\Microsoft SDK\Lib\IA64 (AMD64) in the top of lib directories. (Tools->Options->VC++ Directories).

        -Sarath. "Great hopes make everything great possible" - Benjamin Franklin

        My blog - Sharing My Thoughts

        A 1 Reply Last reply
        0
        • M Malli_S

          Do you have #include<iostream.h> in your code ? If yes, try #include<iostream> instead.

          [Delegates]      [Virtual Desktop]      [Tray Me !]
          -Malli...! :rose:****

          A Offline
          A Offline
          Aabid
          wrote on last edited by
          #4

          Thankx Malli!! After Adding "iostream.h" i got 42 errors as can u tell me what is it Linking... LINK : warning LNK4076: invalid incremental status file '.\Debug/eSLogOn.ilk'; linking nonincrementally Creating library .\Debug/eSLogOn.lib and object .\Debug/eSLogOn.exp eSLogOn.obj : error LNK2001: unresolved external symbol _RTC_Shutdown GENERAL.obj : error LNK2001: unresolved external symbol _RTC_Shutdown main.obj : error LNK2019: unresolved external symbol _RTC_Shutdown referenced in function "void __cdecl CreateScanLogoWindow(void)" (?CreateScanLogoWindow@@YAXXZ) eSLogOn.obj : error LNK2001: unresolved external symbol _RTC_InitBase GENERAL.obj : error LNK2019: unresolved external symbol _RTC_InitBase referenced in function Probe_GetFileAttributesEx main.obj : error LNK2001: unresolved external symbol _RTC_InitBase GENERAL.obj : error LNK2019: unresolved external symbol _RTC_CheckStackVars referenced in function Emulate_GetDiskFreeSpaceEx main.obj : error LNK2001: unresolved external symbol _RTC_CheckStackVars GENERAL.obj : error LNK2001: unresolved external symbol __GSHandlerCheck main.obj : error LNK2001: unresolved external symbol __GSHandlerCheck GENERAL.obj : error LNK2019: unresolved external symbol __security_cookie referenced in function Emulate_GetLongPathName main.obj : error LNK2001: unresolved external symbol __security_cookie GENERAL.obj : error LNK2019: unresolved external symbol __security_check_cookie referenced in function Emulate_GetLongPathName main.obj : error LNK2001: unresolved external symbol __security_check_cookie GENERAL.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3 main.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3 GENERAL.obj : error LNK2001: unresolved external symbol __GSHandlerCheck_SEH GENERAL.obj : error LNK2019: unresolved external symbol _RTC_UninitUse referenced in function "int __cdecl UrlCompare(char *,char *)" (?UrlCompare@@YAHPEAD0@Z) GENERAL.obj : error LNK2001: unresolved external symbol __GSHandlerCheck_EH main.obj : error LNK2001: unresolved external symbol __GSHandlerCheck_EH main.obj : error LNK2001: unresolved external symbol "public: virtual bool __cdecl CxMemFile::Close(void)" (?Close@CxMemFile@@UEAA_NXZ) main.obj : error LNK2001: unresolved external symbol "public: virtual unsigned __int64 __cdecl CxMemFile::Read(void *,unsigned __int64,unsigned __int64)" (?Read@CxMemFile@@UEAA_KPEAX_K1@Z) main.obj : error LNK2001: unresolved external symbol "public: virtual unsigned __int64 __cdecl CxMem

          M 1 Reply Last reply
          0
          • S Sarath C

            Seems you're application is targeted to run under 64-bit environment. Please put $:\Program Files\Microsoft SDK\Lib\IA64 (AMD64) in the top of lib directories. (Tools->Options->VC++ Directories).

            -Sarath. "Great hopes make everything great possible" - Benjamin Franklin

            My blog - Sharing My Thoughts

            A Offline
            A Offline
            Aabid
            wrote on last edited by
            #5

            Thankx Sarath after Changing the settings as u said i got the following error LINK : warning LNK4076: invalid incremental status file '.\Debug/eSLogOn.ilk'; linking nonincrementally version.lib(VERSION.dll) : fatal error LNK1112: module machine type 'IA64' conflicts with target machine type 'x64'

            S 1 Reply Last reply
            0
            • A Aabid

              Thankx Sarath after Changing the settings as u said i got the following error LINK : warning LNK4076: invalid incremental status file '.\Debug/eSLogOn.ilk'; linking nonincrementally version.lib(VERSION.dll) : fatal error LNK1112: module machine type 'IA64' conflicts with target machine type 'x64'

              S Offline
              S Offline
              Sarath C
              wrote on last edited by
              #6

              Try the other folder amd64. In my understanding x86 actually renamed to AMD64.

              -Sarath. "Great hopes make everything great possible" - Benjamin Franklin

              My blog - Sharing My Thoughts, An Article - Understanding Statepattern

              1 Reply Last reply
              0
              • A Aabid

                Thankx Malli!! After Adding "iostream.h" i got 42 errors as can u tell me what is it Linking... LINK : warning LNK4076: invalid incremental status file '.\Debug/eSLogOn.ilk'; linking nonincrementally Creating library .\Debug/eSLogOn.lib and object .\Debug/eSLogOn.exp eSLogOn.obj : error LNK2001: unresolved external symbol _RTC_Shutdown GENERAL.obj : error LNK2001: unresolved external symbol _RTC_Shutdown main.obj : error LNK2019: unresolved external symbol _RTC_Shutdown referenced in function "void __cdecl CreateScanLogoWindow(void)" (?CreateScanLogoWindow@@YAXXZ) eSLogOn.obj : error LNK2001: unresolved external symbol _RTC_InitBase GENERAL.obj : error LNK2019: unresolved external symbol _RTC_InitBase referenced in function Probe_GetFileAttributesEx main.obj : error LNK2001: unresolved external symbol _RTC_InitBase GENERAL.obj : error LNK2019: unresolved external symbol _RTC_CheckStackVars referenced in function Emulate_GetDiskFreeSpaceEx main.obj : error LNK2001: unresolved external symbol _RTC_CheckStackVars GENERAL.obj : error LNK2001: unresolved external symbol __GSHandlerCheck main.obj : error LNK2001: unresolved external symbol __GSHandlerCheck GENERAL.obj : error LNK2019: unresolved external symbol __security_cookie referenced in function Emulate_GetLongPathName main.obj : error LNK2001: unresolved external symbol __security_cookie GENERAL.obj : error LNK2019: unresolved external symbol __security_check_cookie referenced in function Emulate_GetLongPathName main.obj : error LNK2001: unresolved external symbol __security_check_cookie GENERAL.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3 main.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3 GENERAL.obj : error LNK2001: unresolved external symbol __GSHandlerCheck_SEH GENERAL.obj : error LNK2019: unresolved external symbol _RTC_UninitUse referenced in function "int __cdecl UrlCompare(char *,char *)" (?UrlCompare@@YAHPEAD0@Z) GENERAL.obj : error LNK2001: unresolved external symbol __GSHandlerCheck_EH main.obj : error LNK2001: unresolved external symbol __GSHandlerCheck_EH main.obj : error LNK2001: unresolved external symbol "public: virtual bool __cdecl CxMemFile::Close(void)" (?Close@CxMemFile@@UEAA_NXZ) main.obj : error LNK2001: unresolved external symbol "public: virtual unsigned __int64 __cdecl CxMemFile::Read(void *,unsigned __int64,unsigned __int64)" (?Read@CxMemFile@@UEAA_KPEAX_K1@Z) main.obj : error LNK2001: unresolved external symbol "public: virtual unsigned __int64 __cdecl CxMem

                M Offline
                M Offline
                Malli_S
                wrote on last edited by
                #7

                I had asked to remove iostream.h include, and put <iostream> instead. Try that out. The other possibility is you are not able to link with msvcprtd.lib. Check whether the path for msvcprtd.lib is included into the project settings. Search for the lib, and make sure the paths are there in include directory. Probably \Program Files\Microsoft Visual Studio 8\VC\lib \Program Files\Microsoft Platform SDK\ (SDK Folder) for AMD64.

                [Delegates]      [Virtual Desktop]      [Tray Me !]
                -Malli...! :rose:****

                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