473,396 Members | 2,147 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,396 software developers and data experts.

linker errors: LNK2005

I have a non-MFC project which generated some linker errors
"uuid.lib(ieguids.obj) : error LNK2005: _IID_Ixxx already defined in
xxx.obj.
_IID_Ixxx is an user-defined ID and xxx.obj is a user obj. I tried to
add uuid.lib in setting/link/input/ignored libraries, but it didn't
work. Any suggestion would be appreciated!
Jul 22 '05 #1
1 1821
On Wed, 14 Jan 2004 21:54:31 -0800, dullboy wrote:
I have a non-MFC project which generated some linker errors
"uuid.lib(ieguids.obj) : error LNK2005: _IID_Ixxx already defined in
xxx.obj.
_IID_Ixxx is an user-defined ID and xxx.obj is a user obj. I tried to
add uuid.lib in setting/link/input/ignored libraries, but it didn't
work. Any suggestion would be appreciated!


Most of the time, this means you defined something in a header that should
go into one translation unit only (one source file). For instance:

---- someheader.h

void f()
{
}

This defines f in every source file that includes the header. Either make
it inline, or move it to a source file and replace the above with a
function declaration (``void f();'').

However, uuid.lib, iirc, has something to do with COM, so you'ld probably
best ask in a Windows/MFC/COM/.net oriented group.

HTH,
M4

Jul 22 '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......
2
by: AMT2K5 | last post by:
Hello. When I compile my program I recieve lots and lots of the following message which I am trying to decipher. "xxx was declared deprecated". What exactly does that mean?
3
by: rich | last post by:
Hi there, I've been working with dynamic libraries for a quite big software and now and then I may get some weird linking errors, like following MSVCRTD.lib(MSVCR71D.dll) : error LNK2005:...
3
by: ralphsieminsky | last post by:
A project compiles fine under VS 2005 RC without the /clr option. However, when /clr is turned on several errors appear: - A symbol exported from a DLL is not found by another DLL referencing...
2
by: kpks | last post by:
Hi, I am trying to set up a cardiac simulator using CVODE package. I have a integrator.cpp file where I set up all the parameters to call the CVODe package. The file compiles just fine, but...
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...
4
sangeetha jagannathan
by: sangeetha jagannathan | last post by:
hi i am converting a project from vc++ 6.0 to vc++ 7.1(visual c++ .NET 2003), while compiling i bet a lot of linking errors, can u help me fix it the errors that i encountered are Linking......
2
by: curious2007 | last post by:
During the linking I get the following: 1>Linking... 1>main.obj : error LNK2005: "double __cdecl sigma(class curious2007::pair<double,double> const &)" (?sigma@@YANABV?$pair@NN@curious2007@@@Z)...
1
by: IanWright | last post by:
I thought I read that there was a separate place to ask questions about DLLs but couldn't find it, so I thought I'd ask it here as its C/C++... I think I might have my concept of how a DLL (regarding...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.