473,406 Members | 2,259 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Link problem : LNK2005 Symbol already defined in the SAME library !

Hi,

Here are my link errors :

atlsd.lib(ATLComTime.obj) : error LNK2005: "public: __thiscall
ATL::COleDateTime::COleDateTime(struct tagVARIANT const &)"
(??0COleDateTime@ATL@@QAE@ABUtagVARIANT@@@Z) already defined in
atlsd.lib(ATLComTime.obj)
atlsd.lib(ATLComTime.obj) : error LNK2005: "public: void __thiscall
ATL::COleDateTime::SetStatus(enum ATL::COleDateTime::DateTimeStatus)"
(?SetStatus@COleDateTime@ATL@@QAEXW4DateTimeStatus @12@@Z) already
defined in atlsd.lib(ATLComTime.obj)
atlsd.lib(ATLComTime.obj) : error LNK2005: "public: enum
ATL::COleDateTime::DateTimeStatus __thiscall
ATL::COleDateTime::GetStatus(void)const "
(?GetStatus@COleDateTime@ATL@@QBE?AW4DateTimeStatu s@12@XZ) already
defined in atlsd.lib(ATLComTime.obj)
atlsd.lib(ATLComTime.obj) : error LNK2005: "public: class
ATL::COleDateTime & __thiscall ATL::COleDateTime::operator=(struct
tagVARIANT const &)" (??4COleDateTime@ATL@@QAEAAV01@ABUtagVARIANT@@@Z)
already defined in atlsd.lib(ATLComTime.obj)
atlsd.lib(ATLComTime.obj) : error LNK2005: "public: __thiscall
ATL::COleDateTime::operator double(void)const "
(??BCOleDateTime@ATL@@QBENXZ) already defined in
atlsd.lib(ATLComTime.obj)

Can someone explain me this ?

Thanks,

Arkam
Nov 17 '05 #1
1 4001

"arkam" <ar***@caramail.com> wrote

Could you try to change the name? See what happens. May-be there is
something strange happening because the linker does not look at all
characters in the name, and the compiler does.
Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Xiaofeng Zhang | last post by:
when I compile my project setting, there are many LINK errors. But when I compile my project under debug setting, everything is OK. How can I deal with it? The errors is followed. Linking......
3
by: Jon | last post by:
Hi! I have a problem that have followed me for a long time. When linking, sometimes this link error below arises. My solution is always to remove all files in the project, throw away all...
3
by: Charles Nicholson | last post by:
Hello all- I have some static C++ libraries that I wrote in VS2003 but which upgraded fine when i went to VS2005 Pro. In them i overload the global versions of operators new, new, delete, and...
1
by: sethuganesh | last post by:
HI, i have ported vc++ 6.0 code to visual studio 2005. During batch build in debug mode i din't get any error.But if i build the same in release mode i am getting the following error. ...
10
by: k.jayachandran | last post by:
I have a very curious and unique problem here. I'm creating a parser using bison and flex. i did all the development work in a linux environment. the project includes the source files output from...
5
by: Bruce | last post by:
I am getting a lot of link errors when compiling in the debug build but not release. I am compiling a CLR managed code class library. I believe the link errors are actually being caused by a...
6
by: fcvcnet | last post by:
Hi all, I defined a class, as fellows: // Segment.h #pragma once #include "MyPoint.h" enum TLSC {PARALLEL, INTERSECT, COINSIDE,INTERSECTATDIASTOLE} twolinesolutioncases;
9
by: dewi | last post by:
Dear All, I have several problem about VC++. I succeed to convert Simulink MATLAB to C code using Real-Time Workshop. I am trying to compile a C code using Visual C++ and found the error. Can...
1
by: patelcm22 | last post by:
Hi, I am facing following errors while building my application. Error 4 fatal error LNK1169: one or more multiply defined symbols found C:\Documents and...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.