A linker error!
-
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
-
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
You must add the .lib file to your project: Project/Settings/link, write your name of .lib file to Object/library modules:
-
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
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 theC/C++
tab, add/MT
in theProject 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.
-
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
-
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
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 :)