fatal error LNK1169

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I am getting the following errors in eVC++.

error LNK2005: "class CString __cdecl GetDeviceID(void)"
(?GetDeviceID@@YA?AVCString@@XZ) already defined in GetPDAIDDlg.obj

fatal error LNK1169: one or more multiply defined symbols found

Can anybody help me to sort out this issue?

Hari
(For my friend)
 
I'm confused as to why you are posting this in a .NET newsgroup...

The error means just what it says: you have defined (provided the body of),
that function in two different object files in your project. At a guess,
I'd say that the function is declared *and* defined in a header file and
you've included that header file in multiple C++ files...

Paul T.
 
Back
Top