473,387 Members | 3,684 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.

Compile-error with converted VC++ 2005 project

001
I get the following error when compiling under MS VC++:

------ Build started: Project: pract-1, Configuration: Debug Win32
------
Compiling...
pract-1.cpp
Linking...
atlsd.lib(atltrace.obj) : error LNK2005: "unsigned int (__stdcall*
ATL::g_pfnGetThreadACP)(void)" (?g_pfnGetThreadACP@ATL@@3P6GIXZA)
already defined in iorw-vc7.lib(iorw-vc7-dll.obj)
Debug/pract-1.exe : fatal error LNK1169: one or more multiply defined
symbols found
Build log was saved at "file://f:\Interfacing\RS232-
pract-1\TstCom1\Debug\BuildLog.htm"
pract-1 - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========

It compiles under the 2003 version though... (at least I thought that
was the version I used at school). When I opened it at home in the
2005 version I was prompted to convert the project, after that I tried
building and got the error above. I'm quite new to Microsoft's
environment and the .NET-stuff (and I only use it because my
university uses that). I think there is a simple explanantion, but
can't find it myself.

May 14 '07 #1
2 3252
001 wrote:
I get the following error when compiling under MS VC++:

[..link error, multiple definition..]

It compiles under the 2003 version though... (at least I thought that
was the version I used at school). When I opened it at home in the
2005 version I was prompted to convert the project, after that I tried
building and got the error above. I'm quite new to Microsoft's
environment and the .NET-stuff (and I only use it because my
university uses that). I think there is a simple explanantion, but
can't find it myself.
Please ask about this in 'microsoft.public.vc.project-mgt' or in
'microsoft.public.vc.language' (or any other from that NG family).
Your question has no answer in terms of _standard_C++_language_, and
as such is off-topic here.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
May 14 '07 #2
On 14 Maj, 22:40, 001 <snthib...@gmail.comwrote:
I get the following error when compiling under MS VC++:

------ Build started: Project: pract-1, Configuration: Debug Win32
------
Compiling...
pract-1.cpp
Linking...
atlsd.lib(atltrace.obj) : error LNK2005: "unsigned int (__stdcall*
ATL::g_pfnGetThreadACP)(void)" (?g_pfnGetThreadACP@ATL@@3P6GIXZA)
already defined in iorw-vc7.lib(iorw-vc7-dll.obj)
Debug/pract-1.exe : fatal error LNK1169: one or more multiply defined
symbols found
Build log was saved at "file://f:\Interfacing\RS232-
pract-1\TstCom1\Debug\BuildLog.htm"
pract-1 - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========

It compiles under the 2003 version though... (at least I thought that
was the version I used at school). When I opened it at home in the
2005 version I was prompted to convert the project, after that I tried
building and got the error above. I'm quite new to Microsoft's
environment and the .NET-stuff (and I only use it because my
university uses that). I think there is a simple explanantion, but
can't find it myself.
As Victor pointed out, this does not really belong here as it seems to
apply to a particular environment where better newsgroups exist. One
thing is in order though: you should learn to read the error-messages.
Here, it is evident that the file compiles just fine. The linker just
tells you that there is a function you have defined multiple times -
once in atlsd.lib and once in iorw-vc7.lib. Looking at that last name
should tell you that the project seemingly requests to link a 2003-
project (VC7). Most likely, you should remove that lib from your
project.

/Peter

May 14 '07 #3

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

Similar topics

2
by: Hal Vaughan | last post by:
I've noticed that when I'm fine tuning a class, I seem to get a quick compile time. Then, if I have to compile another class with a change, it takes much longer to compile. The next time I...
13
by: JKop | last post by:
The following compiles for me with G++: const unsigned int z(5U); unsigned int y(5 + 6 - 4 / 2 + 3 * 6 - z); inline unsigned int x() { return y * 4 + z - 9 * 3;
17
by: newbiecpp | last post by:
I have hard time to understand run-time environment. Let assume that I have a program that has a simple variable alpha. When this variable is statically allocated, the compiler can use the...
10
by: Jean-David Beyer | last post by:
I have some programs running on Red Hat Linux 7.3 working with IBM DB2 V6.1 (with all the FixPacks) on my old machine. I have just installed IBM DB2 V8.1 on this (new) machine running Red Hat...
0
by: Fuzzyman | last post by:
Hello all, The following is a copy of a blog entry. It's asking a question about future statements and the built in compile function. I'd appreciate any pointers or comments about possible...
4
by: ygao | last post by:
>>compile('U"ÖÐ"','c:/test','single') <code object ? at 00F06B60, file "c:/test", line 1> <code object ? at 00F06BA0, file "c:/test", line 1> u'\xd6\xd0' u'\u4e2d' why is the result different?...
19
by: Rahul | last post by:
Hi, Is there a way to find the offset of a class member at compile time. e.g. class A{ int i; int j; char c; }; Here the offset of c = 8 bytes from the start of an object of A (assuming 4...
16
by: desktop | last post by:
I have read that using templates makes types know at compile time and using inheritance the types are first decided at runtime. The use of pointers and casts also indicates that the types will...
22
by: Tomás Ó hÉilidhe | last post by:
I've been developing a C89 microcontroller application for a while now and I've been testing its compilation using gcc. I've gotten zero errors and zero warnings with gcc, but now that I've moved...
4
by: Billy | last post by:
Hi! I'm using: -Compiler: Borland Command Line C++ Compiler 5.5.1 -Code Editor: SciTE 1.75 Anybody know how we can in Scite with command Tools|Go (F5) compile and run my c or cpp program at...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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
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,...

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.