473,569 Members | 2,813 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

LNK 2019 with std::basic_ostr eam since switch form 2002 to 2003

Hello,

linking external libraries, which linked perfectly under
net 2002 bring up lots of unresolved external symbols for
standard iostream calls: any idea what could cause that or
how to fix that problem?
Greeting Peter
error LNK2019: unresolved external symbol "__declspec
(dllimport) class std::basic_ostr eam<char,struct
std::char_trait s<char> > & __cdecl std::operator<< (class
std::basic_ostr eam<char,struct std::char_trait s<char> >
&,char const *)" (__imp_??6std@@ YAAAV?$basic_os tream@DU?
$char_traits@D@ std@@@0@AAV10@P BD@Z) referenced in ...

error LNK2001: unresolved external symbol "class
std::basic_ostr eam<char,struct std::char_trait s<char> > &
__cdecl std::operator<< (class
std::basic_ostr eam<char,struct std::char_trait s<char> >
&,class std::basic_stri ng<char,struct
std::char_trait s<char>,class std::allocator< char> > const
&)" (??6std@@YAAAV? $basic_ostream@ DU?
$char_traits@D@ std@@@0@AAV10@A BV?$basic_strin g@DU?
$char_traits@D@ std@@V?$allocat or@D@2@@0@@Z...
Nov 16 '05 #1
1 6044
Dynamically linking to mfc solved the problem, although it
does not seem to be the cleanest solution to me.
Any background informations would be nice.

Greetings, Peter
-----Original Message-----
Hello,

linking external libraries, which linked perfectly under
net 2002 bring up lots of unresolved external symbols for
standard iostream calls: any idea what could cause that orhow to fix that problem?
Greeting Peter
error LNK2019: unresolved external symbol "__declspec
(dllimport) class std::basic_ostr eam<char,struct
std::char_trai ts<char> > & __cdecl std::operator<< (class
std::basic_ost ream<char,struc t std::char_trait s<char> >
&,char const *)" (__imp_??6std@@ YAAAV?$basic_os tream@DU?
$char_traits@D @std@@@0@AAV10@ PBD@Z) referenced in ...

error LNK2001: unresolved external symbol "class
std::basic_ost ream<char,struc t std::char_trait s<char> > &
__cdecl std::operator<< (class
std::basic_ost ream<char,struc t std::char_trait s<char> >
&,class std::basic_stri ng<char,struct
std::char_trai ts<char>,class std::allocator< char> > const
&)" (??6std@@YAAAV? $basic_ostream@ DU?
$char_traits@D @std@@@0@AAV10@ ABV?$basic_stri ng@DU?
$char_traits@D @std@@V?$alloca tor@D@2@@0@@Z.. .
.

Nov 16 '05 #2

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

Similar topics

2
3568
by: Ralph | last post by:
I used to have Visual Basic .net std. 2003 installed on WinXP SP1A. But I found it too hard to upgrade WinXP to SP2. Now, I do have WinXP SP2 installed, but I am having problems installing Visual Basic .net standard 2003. Not installing Visual Basic at the WinXP SP1A level - was the only way I found that I could install WinXPSP2. My...
5
8613
by: bob lambert | last post by:
Hi, I have a vb .net std 2002 windows form app and wanted to use keyboard shortcuts (& in text property input) It shows up on the design view, but when I build (in debug mode) and display the form for use, the characters that are ampersanded do not show up underlined and the keyboard shortcut does not work ?
4
7064
by: bob lambert | last post by:
Help I am trying to deploy to another pc a vb.net std 2002 windows form application. I am confused. I created a project - windows form I built form, compiled and debugged. I created a deployment project (myproj installer) I added my windows app to the installer under myproj installer properties, I set bootstrapper
6
10007
by: Geoffrey S. Knauth | last post by:
It's been a while since I programmed in C++, and the language sure has changed. Usually I can figure out why something no longer compiles, but this time I'm stumped. A friend has a problem he hoped I could solve, and I couldn't. Some code he's using, written in 1999, that compiled fine in 1999, no longer does in 2006 with g++ 4. This...
3
2103
by: silverburgh.meryl | last post by:
I have this linker error, and I would need some help in resolving it: I have put "#include <iostream>" in my .cpp. I am not sure why I can't link. It compiles fine. /usr/bin/ld: .../../dist/lib/libjsdombase_s.a(BlockGrouper.o)(.text+0x98): unresolvable relocation against symbol `std::basic_ostream<char, std::char_traits<char> >&...
8
3459
by: jean.daniel.michaud | last post by:
Hi all, Something I don't get. The code is: // snippet on #include <list> #include <iostream> int main()
1
10895
by: taiyang902 | last post by:
i program under linux ,and using kdevelop c/c++. the code follow, #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <iostream> #include <cstdlib> using namespace std;
10
3386
by: Erik Knudsen | last post by:
Hi! In converting applications from ansi to unicode, it is a problem that the std::wcout accepts a const char * without complaining compile time. This compiles and runs: ------------------------------ const char *lookup() { return "Hello world";
3
4233
by: Martin T. | last post by:
Hello. I tried to overload the operator<< for implicit printing of wchar_t string on a char stream. Normally using it on a ostream will succeed as std::operator<<<std::char_traits<char> will be called. However, I am using the boost::format library that internally makes use of a string stream to store the formatted string. There:
0
7703
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7618
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7926
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7679
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6287
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5514
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
1
2117
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 we have to send another system
1
1228
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
946
bsmnconsultancy
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.