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

compilation problem: LIBID already defined in...

I reorganized my VC6 MFC project a bit, and ended up having to rebuild
my precompiled header file. I'm not sure if that is relevant or not. I
can't get past the following error, however:

MISO_i.obj : error LNK2005: _LIBID_MISOLib already defined in MISO.obj

(MISO being the name of the application.)

Any ideas?

Jul 23 '05 #1
4 2487
sh************@gmail.com wrote:
I reorganized my VC6 MFC project a bit, and ended up having to rebuild
my precompiled header file. I'm not sure if that is relevant or not. I
can't get past the following error, however:

MISO_i.obj : error LNK2005: _LIBID_MISOLib already defined in MISO.obj

(MISO being the name of the application.)

Any ideas?


Not really. Precompiled headers, MFC, are off-topic here. It is
possible to speculate that your symbol has multiple definition, and
the cause of it could be that you placed it in a header that is now
included in more than one translation unit. If that's the case, see
if declaring it 'extern' helps. You will also need to define it in
one of the units without 'extern'.

V
Jul 23 '05 #2
I'm very familiar with a LNK2005 error resulting from symbols that *I*
defined more than once, and with using 'extern' to circumvent that
problem.

That's not what's happening here, though. LIBID_MISOLib isn't a symbol
or variable, it's a library that the compiler is creating. Thus, I'm
clueless as to the cause of the linker error.

Jul 23 '05 #3
Oops. :)

You're right. Obviously it was a globally -- and multiply -- defined
numeric value. Fixed.

Jul 23 '05 #4
sh************@gmail.com wrote:
I'm very familiar with a LNK2005 error resulting from symbols that *I*
defined more than once, and with using 'extern' to circumvent that
problem.

That's not what's happening here, though. LIBID_MISOLib isn't a symbol
or variable, it's a library that the compiler is creating. Thus, I'm
clueless as to the cause of the linker error.


If your linker says that something is multiply defined, it _is_ a symbol.
There is nothing except a symbol that can be multiply defined. Period.

Apparently something in your MISO_i.obj is the result of defining that
symbol, as well as in MISO.obj. That's what your linker is telling you.
It's a different story whether you can do anything about it.

If it's not your symbol, it must come from a header you include directly
or indirectly. Check all headers for that symbol. Rebuild all. Blow
away all precompiled headers before doing that...

If that doesn't help, contact the creators of the library you think is
the culprit. Post to microsoft.public.vc.language if you think you need
more explanation about compiler-specific ways dealing with libraries.

V
Jul 23 '05 #5

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

Similar topics

11
by: Michael Gaab | last post by:
Compilation in c generally has four phases 1. Preprocessing 2. Compilation 3. Assembly 4. Linking. If I use a flag that will not link the code, order of compilation is not an issue,...
12
by: wanghz | last post by:
Hi, Could I ask some questions about the conditional compilaion? Suppose I have three simple files: a.c, b.c and c.h /* --------a.c--------- */ #include <stdio.h> #include "c.h" int...
6
by: Joachim | last post by:
I made some project changes (which seems it doesn't help if I undo) which have created compilation error: " Server Error in '/PCSWebApp1' Application....
2
by: James Zhuo | last post by:
Hi all I've been getting the following compilation error. I should explain the background of the project that i am taking over. This is a project that has been developed by someone else a while...
3
by: Dan | last post by:
Hi, I have a problem using an aspx page with a Control on it. I get the following error message Compiler Error Message: CS1595: 'Test.Class2' is defined in multiple places; using definition...
10
by: Dave | last post by:
I'm a C++ programmer of many years, trying to get my feet wet in C#. I have a question about conditional compilation. In C++, I would sometimes define a constant in an include file, and then...
9
by: Prasad | last post by:
HI, I am a beginner in VC++.. I am trying to write a Win32 console application in visual studio.. I am using following header files.. #include <STRING> using namespace std; #include...
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)...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.