I have just upgraded to Visual Studio 2005 and have loaded in a project
i have been working on, and the code compiles ok but fails to link
correctly, as shown below. Any suggestions about what is wrong would be
much appreciated,
1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > __cdecl std::operator+<char,struct
std::char_traits<char>,class std::allocator<char> >(class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &,class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)"
(??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std @@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$al locator@D@2@@0@ABV10@0@Z)
already defined in OpenMeshCore.lib(omstream.obj)
1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > __cdecl std::operator+<char,struct
std::char_traits<char>,class std::allocator<char> >(class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &,char const *)"
(??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std @@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$al locator@D@2@@0@ABV10@PBD@Z)
already defined in OpenMeshCore.lib(omstream.obj)
1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > __cdecl std::operator+<char,struct
std::char_traits<char>,class std::allocator<char> >(char const *,class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &)"
(??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std @@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$al locator@D@2@@0@PBDABV10@@Z)
already defined in OpenMeshCore.lib(omstream.obj)
1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class
std::basic_ostream<char,struct std::char_traits<char> > & __cdecl
std::operator<<<char,struct std::char_traits<char>,class
std::allocator<char> >(class std::basic_ostream<char,struct
std::char_traits<char> > &,class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)"
(??$?6DU?$char_traits@D@std@@V?$allocator@D@1@@std @@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@A AV10@ABV?$basic_string@DU?$char_traits@D@std@@V?$a llocator@D@2@@0@@Z)
already defined in OpenMeshCore.lib(omstream.obj)
1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class
std::basic_ostream<char,struct std::char_traits<char> > & __cdecl
std::operator<<<struct std::char_traits<char> >(class
std::basic_ostream<char,struct std::char_traits<char> > &,char const *)"
(??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ost ream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z)
already defined in main.obj
1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class
std::basic_ostream<char,struct std::char_traits<char> > & __cdecl
std::operator<<<struct std::char_traits<char> >(class
std::basic_ostream<char,struct std::char_traits<char> > &,unsigned
char)"
(??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ost ream@DU?$char_traits@D@std@@@0@AAV10@E@Z)
already defined in rmfSystem.obj
1>LINK : warning LNK4199: /DELAYLOAD:comdlg32.dll ignored; no imports
found from comdlg32.dll
1>LINK : warning LNK4199: /DELAYLOAD:oleaut32.dll ignored; no imports
found from oleaut32.dll
1>LINK : warning LNK4199: /DELAYLOAD:winmm.dll ignored; no imports found
from winmm.dll
1>LINK : warning LNK4199: /DELAYLOAD:wsock32.dll ignored; no imports
found from wsock32.dll
1>LINK : warning LNK4199: /DELAYLOAD:winspool.dll ignored; no imports
found from winspool.dll
1>OpenMeshCore.lib(BaseReader.obj) : error LNK2019: unresolved external
symbol "__declspec(dllimport) public: class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::iterator __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::end(void)"
(__imp_?end@?$basic_string@DU?$char_traits@D@std@@ V?$allocator@D@2@@std@@QAE?AViterator@12@XZ)
referenced in function "public: virtual bool __thiscall
OpenMesh::IO::BaseReader::can_u_read(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)const "
(?can_u_read@BaseReader@IO@OpenMesh@@UBE_NABV?$bas ic_string@DU?$char_traits@D@std@@V?$allocator@D@2@ @std@@@Z)
1>OpenMeshCore.lib(BaseWriter.obj) : error LNK2001: unresolved external
symbol "__declspec(dllimport) public: class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::iterator __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::end(void)"
(__imp_?end@?$basic_string@DU?$char_traits@D@std@@ V?$allocator@D@2@@std@@QAE?AViterator@12@XZ)
1>OpenMeshCore.lib(BaseReader.obj) : error LNK2019: unresolved external
symbol "__declspec(dllimport) public: class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::iterator __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::begin(void)"
(__imp_?begin@?$basic_string@DU?$char_traits@D@std @@V?$allocator@D@2@@std@@QAE?AViterator@12@XZ)
referenced in function "public: virtual bool __thiscall
OpenMesh::IO::BaseReader::can_u_read(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)const "
(?can_u_read@BaseReader@IO@OpenMesh@@UBE_NABV?$bas ic_string@DU?$char_traits@D@std@@V?$allocator@D@2@ @std@@@Z)
1>OpenMeshCore.lib(BaseWriter.obj) : error LNK2001: unresolved external
symbol "__declspec(dllimport) public: class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::iterator __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::begin(void)"
(__imp_?begin@?$basic_string@DU?$char_traits@D@std @@V?$allocator@D@2@@std@@QAE?AViterator@12@XZ)
1>OpenMeshCore.lib(BaseReader.obj) : error LNK2019: unresolved external
symbol "__declspec(dllimport) public: class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::const_iterator __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::begin(void)const "
(__imp_?begin@?$basic_string@DU?$char_traits@D@std @@V?$allocator@D@2@@std@@QBE?AVconst_iterator@12@X Z)
referenced in function "protected: bool __thiscall
OpenMesh::IO::BaseReader::check_extension(class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &,class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)const "
(?check_extension@BaseReader@IO@OpenMesh@@IBE_NABV ?$basic_string@DU?$char_traits@D@std@@V?$allocator @D@2@@std@@0@Z)
1>OpenMeshCore.lib(BaseReader.obj) : error LNK2019: unresolved external
symbol "__declspec(dllimport) public: class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::const_iterator __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::end(void)const "
(__imp_?end@?$basic_string@DU?$char_traits@D@std@@ V?$allocator@D@2@@std@@QBE?AVconst_iterator@12@XZ)
referenced in function "protected: bool __thiscall
OpenMesh::IO::BaseReader::check_extension(class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &,class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)const "
(?check_extension@BaseReader@IO@OpenMesh@@IBE_NABV ?$basic_string@DU?$char_traits@D@std@@V?$allocator @D@2@@std@@0@Z)
1>Release/multiSelect.exe : fatal error LNK1120: 4 unresolved externals
Adam 2 3580
Adam Hartshorne sade: I have just upgraded to Visual Studio 2005 and have loaded in a project i have been working on, and the code compiles ok but fails to link correctly, as shown below. Any suggestions about what is wrong would be much appreciated,
<error messages snipped>
Adam
Seems to be a linking problem ;)
TB
Adam Hartshorne wrote: I have just upgraded to Visual Studio 2005 and have loaded in a project i have been working on, and the code compiles ok but fails to link correctly, as shown below. Any suggestions about what is wrong would be much appreciated,
1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl std::operator+<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std @@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$al locator@D@2@@0@ABV10@0@Z) already defined in OpenMeshCore.lib(omstream.obj) 1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl std::operator+<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,char const *)" (??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std @@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$al locator@D@2@@0@ABV10@PBD@Z) already defined in OpenMeshCore.lib(omstream.obj) 1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl std::operator+<char,struct std::char_traits<char>,class std::allocator<char> >(char const *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std @@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$al locator@D@2@@0@PBDABV10@@Z) already defined in OpenMeshCore.lib(omstream.obj) 1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_ostream<char,struct std::char_traits<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??$?6DU?$char_traits@D@std@@V?$allocator@D@1@@std @@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@A AV10@ABV?$basic_string@DU?$char_traits@D@std@@V?$a llocator@D@2@@0@@Z) already defined in OpenMeshCore.lib(omstream.obj) 1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<<struct std::char_traits<char> >(class std::basic_ostream<char,struct std::char_traits<char> > &,char const *)" (??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ost ream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z) already defined in main.obj 1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<<struct std::char_traits<char> >(class std::basic_ostream<char,struct std::char_traits<char> > &,unsigned char)" (??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ost ream@DU?$char_traits@D@std@@@0@AAV10@E@Z) already defined in rmfSystem.obj 1>LINK : warning LNK4199: /DELAYLOAD:comdlg32.dll ignored; no imports found from comdlg32.dll 1>LINK : warning LNK4199: /DELAYLOAD:oleaut32.dll ignored; no imports found from oleaut32.dll 1>LINK : warning LNK4199: /DELAYLOAD:winmm.dll ignored; no imports found from winmm.dll 1>LINK : warning LNK4199: /DELAYLOAD:wsock32.dll ignored; no imports found from wsock32.dll 1>LINK : warning LNK4199: /DELAYLOAD:winspool.dll ignored; no imports found from winspool.dll 1>OpenMeshCore.lib(BaseReader.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::iterator __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::end(void)" (__imp_?end@?$basic_string@DU?$char_traits@D@std@@ V?$allocator@D@2@@std@@QAE?AViterator@12@XZ) referenced in function "public: virtual bool __thiscall OpenMesh::IO::BaseReader::can_u_read(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const " (?can_u_read@BaseReader@IO@OpenMesh@@UBE_NABV?$bas ic_string@DU?$char_traits@D@std@@V?$allocator@D@2@ @std@@@Z) 1>OpenMeshCore.lib(BaseWriter.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::iterator __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::end(void)" (__imp_?end@?$basic_string@DU?$char_traits@D@std@@ V?$allocator@D@2@@std@@QAE?AViterator@12@XZ) 1>OpenMeshCore.lib(BaseReader.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::iterator __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::begin(void)" (__imp_?begin@?$basic_string@DU?$char_traits@D@std @@V?$allocator@D@2@@std@@QAE?AViterator@12@XZ) referenced in function "public: virtual bool __thiscall OpenMesh::IO::BaseReader::can_u_read(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const " (?can_u_read@BaseReader@IO@OpenMesh@@UBE_NABV?$bas ic_string@DU?$char_traits@D@std@@V?$allocator@D@2@ @std@@@Z) 1>OpenMeshCore.lib(BaseWriter.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::iterator __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::begin(void)" (__imp_?begin@?$basic_string@DU?$char_traits@D@std @@V?$allocator@D@2@@std@@QAE?AViterator@12@XZ) 1>OpenMeshCore.lib(BaseReader.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::const_iterator __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::begin(void)const " (__imp_?begin@?$basic_string@DU?$char_traits@D@std @@V?$allocator@D@2@@std@@QBE?AVconst_iterator@12@X Z) referenced in function "protected: bool __thiscall OpenMesh::IO::BaseReader::check_extension(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const " (?check_extension@BaseReader@IO@OpenMesh@@IBE_NABV ?$basic_string@DU?$char_traits@D@std@@V?$allocator @D@2@@std@@0@Z) 1>OpenMeshCore.lib(BaseReader.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::const_iterator __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::end(void)const " (__imp_?end@?$basic_string@DU?$char_traits@D@std@@ V?$allocator@D@2@@std@@QBE?AVconst_iterator@12@XZ) referenced in function "protected: bool __thiscall OpenMesh::IO::BaseReader::check_extension(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const " (?check_extension@BaseReader@IO@OpenMesh@@IBE_NABV ?$basic_string@DU?$char_traits@D@std@@V?$allocator @D@2@@std@@0@Z) 1>Release/multiSelect.exe : fatal error LNK1120: 4 unresolved externals Adam
It looks like your C++ standard library must not be included in your
link. Check your project settings. For more specific help, try a
Microsoft newsgroup; see this FAQ for some suggestions: http://www.parashift.com/c++-faq-lit...t.html#faq-5.9
Cheers! --M This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: steve.anon |
last post by:
Hi I'm a Java developer moving to windows only applications. Of course
the first thing I thought was "well at least, without the VM now I can
write desktop applications that run real fast".
So I...
|
by: Ken Dopierala Jr. |
last post by:
Hi,
I'm in the middle of a project cycle using VS.Net 2002. I'd like to
purchase VS.Net 2003 and make the jump to it but first I want to know how
much of a hassle it is loading my VS.Net 2002...
|
by: Rich |
last post by:
(1) Is there a better place to pose the question below?
(2) I am starting to convert my enterprise solution from VS 2003 (.NET
v1.1.4322) to VS 2005 Professional (.NET v2.0.50727).
The entire...
|
by: NH |
last post by:
Hi,
I have a VS 2003 asp.net 1.1 project hosted on a windows 2003 server. I want
to move it to asp.net 2.0 and VS 2005.
Do I need to install VS 2005 on the server first and then on my...
|
by: John Dann |
last post by:
Just getting started with VB2005 and unsure how best to move active
VB2003 projects into the VB2005 environment.
Nornally I've versioned my VB2003 projects at specific development
points by...
| |
by: Chris S |
last post by:
We are moving from ASP.Net 1.1 to ASP.Net 2.0. As we do not have the luxury
of spending weeks trying out different techniques, I'd like to rely on some
tried and true methods, but need some...
|
by: =?Utf-8?B?R1Q=?= |
last post by:
I have a Form which has a great number of events. I thought I would organize
the project by moving some of the code into multiple '.cs' files (since the
Form.cs was getting huge). When I move them,...
|
by: Claire |
last post by:
Im transferring a visual studio 2003 project to Visual Studio 2005.
The solution includes a windows installation project.
With 2003 creating the setup got complicated with the crystal reports part...
|
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,...
|
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...
|
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: 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,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |