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. error LNK2001: unresolved external symbol ___pioinfo

error LNK2001: unresolved external symbol ___pioinfo

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++debugging
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.
  • S Offline
    S Offline
    snprani
    wrote on last edited by
    #1

    Hi My application is vc++ Dialog based one. I am using one library for my application. when i am including that library I am getting so many linker errors like LIBC.lib(crt0dat.obj) : error LNK2005: _exit already defined in msvcrt.lib(MSVCRT.dll) LIBC.lib(crt0dat.obj) : error LNK2005: __exit already defined in msvcrt.lib(MSVCRT.dll) LIBC.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in msvcrt.lib(cinitexe.obj) LIBC.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in msvcrt.lib(cinitexe.obj) LIBC.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in msvcrt.lib(cinitexe.obj) LIBC.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in msvcrt.lib(cinitexe.obj) LIBC.lib(mbctype.obj) : error LNK2005: __setmbcp already defined in msvcrt.lib(MSVCRT.dll) LINK : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library LIBC.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/OIApp.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. For this i have ignored LIBC.lib library then i am getting one linker error called error LNK2001: unresolved external symbol ___pioinfo what should i have to do.Please help me. Thanks in advance

    S J 2 Replies Last reply
    0
    • S snprani

      Hi My application is vc++ Dialog based one. I am using one library for my application. when i am including that library I am getting so many linker errors like LIBC.lib(crt0dat.obj) : error LNK2005: _exit already defined in msvcrt.lib(MSVCRT.dll) LIBC.lib(crt0dat.obj) : error LNK2005: __exit already defined in msvcrt.lib(MSVCRT.dll) LIBC.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in msvcrt.lib(cinitexe.obj) LIBC.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in msvcrt.lib(cinitexe.obj) LIBC.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in msvcrt.lib(cinitexe.obj) LIBC.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in msvcrt.lib(cinitexe.obj) LIBC.lib(mbctype.obj) : error LNK2005: __setmbcp already defined in msvcrt.lib(MSVCRT.dll) LINK : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library LIBC.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/OIApp.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. For this i have ignored LIBC.lib library then i am getting one linker error called error LNK2001: unresolved external symbol ___pioinfo what should i have to do.Please help me. Thanks in advance

      S Offline
      S Offline
      sunit5
      wrote on last edited by
      #2

      declare this _pionifo in the header file of the cpp file in which u have defined it http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/html/lnk2001.asp

      S 1 Reply Last reply
      0
      • S sunit5

        declare this _pionifo in the header file of the cpp file in which u have defined it http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/html/lnk2001.asp

        S Offline
        S Offline
        snprani
        wrote on last edited by
        #3

        Thanks But i am not at all declaring any variable of type _pionifo. What is the purpose of that variable also i dont know. When i am ignoring libc.lib and libci.lib it is showing only one linker error now. but it is different one. It is showing that error in lib file which i am including. error LNK2001: unresolved external symbol "class ostream_withassign cout" (?cout@@3Vostream_withassign@@A) if i am including iostream.h this is giving only one the above error. if i am not including iostream.h it is giving 5 linker errors of similar type of the above one. please help me. Thanks

        1 Reply Last reply
        0
        • S snprani

          Hi My application is vc++ Dialog based one. I am using one library for my application. when i am including that library I am getting so many linker errors like LIBC.lib(crt0dat.obj) : error LNK2005: _exit already defined in msvcrt.lib(MSVCRT.dll) LIBC.lib(crt0dat.obj) : error LNK2005: __exit already defined in msvcrt.lib(MSVCRT.dll) LIBC.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in msvcrt.lib(cinitexe.obj) LIBC.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in msvcrt.lib(cinitexe.obj) LIBC.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in msvcrt.lib(cinitexe.obj) LIBC.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in msvcrt.lib(cinitexe.obj) LIBC.lib(mbctype.obj) : error LNK2005: __setmbcp already defined in msvcrt.lib(MSVCRT.dll) LINK : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library LIBC.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/OIApp.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. For this i have ignored LIBC.lib library then i am getting one linker error called error LNK2001: unresolved external symbol ___pioinfo what should i have to do.Please help me. Thanks in advance

          J Offline
          J Offline
          jhwurmbach
          wrote on last edited by
          #4

          Conflicting runtime libraries (single threaded/multi threaded)? Conflicting use of MFC (static lib/DLL)?


          "We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation." -- Caius Petronius, Roman Consul, 66 A.D. -- modified at 5:26 Tuesday 15th November, 2005

          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