473,699 Members | 2,734 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 6057
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
3597
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 computer was purchased with WinXP SP1 Professional. I also have Norton Internet Security and Norton...
5
8624
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
7076
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
10032
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 little bit of code: SimS::SimS (ostream &s) {
3
2109
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> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)@@GLIBCXX_3.4'
8
3465
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
10911
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
3403
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
4265
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
8685
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9171
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8905
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8880
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7743
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5869
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4373
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3053
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
3
2008
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.