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. A linker error!

A linker error!

Scheduled Pinned Locked Moved C / C++ / MFC
debugginghelp
5 Posts 5 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.
  • M Offline
    M Offline
    Malini Nair
    wrote on last edited by
    #1

    Hi everybody! i have done a file transfer program and the sender part works well. but i get a linker error in receiver part! My error is: Linking... nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex Debug/aaa.exe : fatal error LNK1120: 2 unresolved externals Error executing link.exe. The thing is I have not used these functions in my program! Any suggestions please! Thanks in advance! regards, Shalini

    H C C S 4 Replies Last reply
    0
    • M Malini Nair

      Hi everybody! i have done a file transfer program and the sender part works well. but i get a linker error in receiver part! My error is: Linking... nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex Debug/aaa.exe : fatal error LNK1120: 2 unresolved externals Error executing link.exe. The thing is I have not used these functions in my program! Any suggestions please! Thanks in advance! regards, Shalini

      H Offline
      H Offline
      hoanglinh9466
      wrote on last edited by
      #2

      You must add the .lib file to your project: Project/Settings/link, write your name of .lib file to Object/library modules:

      1 Reply Last reply
      0
      • M Malini Nair

        Hi everybody! i have done a file transfer program and the sender part works well. but i get a linker error in receiver part! My error is: Linking... nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex Debug/aaa.exe : fatal error LNK1120: 2 unresolved externals Error executing link.exe. The thing is I have not used these functions in my program! Any suggestions please! Thanks in advance! regards, Shalini

        C Offline
        C Offline
        CPallini
        wrote on last edited by
        #3

        the library you're using requires your application to link with multithreaded C run-time libraries. Use the /MT compiler option (for instance, on Visual Studio 6, choose menu Project->Settings, then on the C/C++ tab, add /MT in the Project Options list). hope that helps. :)

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

        1 Reply Last reply
        0
        • M Malini Nair

          Hi everybody! i have done a file transfer program and the sender part works well. but i get a linker error in receiver part! My error is: Linking... nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex Debug/aaa.exe : fatal error LNK1120: 2 unresolved externals Error executing link.exe. The thing is I have not used these functions in my program! Any suggestions please! Thanks in advance! regards, Shalini

          C Offline
          C Offline
          C Mahesh
          wrote on last edited by
          #4

          Add MFC support to your program

          1 Reply Last reply
          0
          • M Malini Nair

            Hi everybody! i have done a file transfer program and the sender part works well. but i get a linker error in receiver part! My error is: Linking... nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex Debug/aaa.exe : fatal error LNK1120: 2 unresolved externals Error executing link.exe. The thing is I have not used these functions in my program! Any suggestions please! Thanks in advance! regards, Shalini

            S Offline
            S Offline
            Sachin R Sangoi
            wrote on last edited by
            #5

            Add MT in ur project settings as rightly suggested which means support for Multithreading in ur project. Happy coding :)

            Get the facts or facts will get you and when you get them, get them right or they will get you wrong. Happy Coding :)

            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