• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 267
  • Last Modified:

How to get rid of these link errors?

I am using ADO.NET with VC++.NET and there is something not right here. I am getting 4 link errors.

RXServer error LNK2019: unresolved external symbol __endthreadex referenced in function "void __stdcall AfxEndThread(unsigned int,int)" (?AfxEndThread@@YGXIH@Z)
RXServer error LNK2019: unresolved external symbol __beginthreadex referenced in function "public: int __thiscall CWinThread::CreateThread(unsigned long,unsigned int,struct _SECURITY_ATTRIBUTES *)" (?CreateThread@CWinThread@@QAEHKIPAU_SECURITY_ATTRIBUTES@@@Z)
RXServer error LNK2019: unresolved external symbol "public: __thiscall sSYSTEMINFORMATION::~sSYSTEMINFORMATION(void)" (??1sSYSTEMINFORMATION@@QAE@XZ) referenced in function __unwindfunclet$??0CDataBaseADO@@QAE@PADPAVRXEventLogger@@@Z$0
RXServer error LNK2019: unresolved external symbol "public: __thiscall sSYSTEMINFORMATION::sSYSTEMINFORMATION(void)" (??0sSYSTEMINFORMATION@@QAE@XZ) referenced in function "void __cdecl runUnitTest(void)" (?runUnitTest@@YAXXZ)
RXServer error LNK2005: "void * __cdecl operator new[](unsigned int)" (??_U@YAPAXI@Z) already defined in libcpd.lib(newaop.obj)
RXServer error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in libcpd.lib(newop.obj)

My stdafx.h looks like this.

// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//

#pragma once


#include <iostream.h>
#include <tchar.h>

// TODO: reference additional headers your program requires here


#include <afxwin.h>         // MFC core and standard components
#include <afxext.h>         // MFC extensions
#include <afxdisp.h>        // MFC Automation classes
#include <atlbase.h>

So can someone let me know what I am doing wrong or what do I need to add o this stdafx.h file.
Thanks
0
factfinder
Asked:
factfinder
2 Solutions
 
AlexFMCommented:
Project - Properties - Configuration Properties - C/C++ - Code Generation - Runtime Library. Select multi-threaded library.
0
 
lamarshjCommented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now