Hello All,
I'm getting the following linker warning: (I'm using Borland C++ Builder 6)
[Linker Warning] Public symbol '_STL::basic_os tream<char,
_STL::char_trai ts<char> >& _STL::operator <<
(_STL::basic_os tream<char, _STL::char_trai ts<char> >&, const signed char *)'
defined in both module
C:\ROSIEN\MONTI UM\SIMULATOR\MO NTIUMSIMUTILITY .OBJ and
C:\ROSIEN\HIGH2 \BASICSIMULATOR .OBJ
I don't understand why this is happening. Obviously this is not a symbol I
have defined, it is an STL function.
I know I am including <iostream> and other STL header files in a lot of my
..cpp files but that shouldn't be a
problem I think?
Does anybody know what might be the cause of such a warning and how I could
fix it?
And is it safe to ignore such a warning? The program seems to run fine.
--Michel 3 3899
Michel Rosien wrote in news:ch******** **@ares.cs.utwe nte.nl in
comp.lang.c++: Hello All,
I'm getting the following linker warning: (I'm using Borland C++ Builder 6)
[Linker Warning] Public symbol '_STL::basic_os tream<char, _STL::char_trai ts<char> >& _STL::operator << (_STL::basic_os tream<char, _STL::char_trai ts<char> >&, const signed char *)' defined in both module C:\ROSIEN\MONTI UM\SIMULATOR\MO NTIUMSIMUTILITY .OBJ and C:\ROSIEN\HIGH2 \BASICSIMULATOR .OBJ
I don't understand why this is happening. Obviously this is not a symbol I have defined, it is an STL function. I know I am including <iostream> and other STL header files in a lot of my .cpp files but that shouldn't be a problem I think?
Does anybody know what might be the cause of such a warning and how I could fix it? And is it safe to ignore such a warning? The program seems to run fine.
It should be, you are runing your compiler in a non-standard mode,
not a difficult thing with CBuilder BTW.
It should be *merging* duplicates of this template function, but it
isn't (at least not without issuing the warning).
Check the help pages, and build option's (if your using the IDE),
look for option's related to template's, instantiation and merging,
check out warning related option's too.
To get better advice than this goto a borland newsgroup, they have names
starting with borland.public. *, you may want one of the ones in the
borland.public. cppbuilder.* hierarchy.
HTH.
Rob.
-- http://www.victim-prime.dsl.pipex.com/
Thanks for the help It should be, you are runing your compiler in a non-standard mode, not a difficult thing with CBuilder BTW.
I'm not sure what you mean here. It is running in default mode.
It should be *merging* duplicates of this template function, but it isn't (at least not without issuing the warning).
So you say that the warning is not caused by some error of mine
and it should not issue the warning?
To get better advice than this goto a borland newsgroup, they have names starting with borland.public. *, you may want one of the ones in the borland.public. cppbuilder.* hierarchy.
I'll look there
--Michel
Michel Rosien wrote in news:ch******** **@ares.cs.utwe nte.nl in
comp.lang.c++: Thanks for the help
It should be, you are runing your compiler in a non-standard mode, not a difficult thing with CBuilder BTW.
I'm not sure what you mean here. It is running in default mode.
Indeed, default mode != Standard conforming. It should be *merging* duplicates of this template function, but it isn't (at least not without issuing the warning).
So you say that the warning is not caused by some error of mine and it should not issue the warning?
Yup.
Rob.
-- http://www.victim-prime.dsl.pipex.com/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jim |
last post by:
All,
I'm trying to debug a Python GPF while running a script
that we've written. After fixing up some of the paths for the Python
build and successfully building Python from ActiveState source, I
compiled the Python Extensions, but am getting the following error:
|
by: Eric |
last post by:
Hello
I receive (only in Release build) the following linker warning:
LINK : warning LNK4089: all references to 'WS2_32.dll' discarded by /OPT:REF
If I set WS2_32.lib in project properties under ignore specific library,
then I receive:
ABContainer.obj : error LNK2019: unresolved external symbol
|
by: Old Wolf |
last post by:
I have the following code. One one compiler it compiles OK,
on the other it gives the two warnings shown below, and then
the linker fails because Foo<int>::str is undefined.
Which is correct?
Second question: the compiler won't accept:
static const std::string str = std::string();
Is there any way to achieve that effect with alternative code?
|
by: Chucker |
last post by:
Hi Folks,
I got a Wrapper Dll around a native C++ static library. In .NET 1.1 this
worked fine. When moving to .NET 2.0 I get a couple of unresolved externals /
linker errors:
Error 16 error LNK2028: unresolved token (0A000007) "extern "C" void
__clrcall ___CxxCallUnwindDtor(void (__clrcall*)(void *),void *)"
(?___CxxCallUnwindDtor@@$$J0YMXP6MXPAX@Z0@Z) referenced in function "public:
virtual __thiscall...
|
by: nkrisraj |
last post by:
Hi,
I defined a simple method, getRecsize() inside one of the classes,
Class RateRec as shown below.
class RateRec
{
public:
size_t getRecSize(void) const;
......
| |
by: nkrisraj |
last post by:
Hi,
I defined a simple method, getRecsize() inside one of the classes,
Class RateRec as shown below.
class RateRec
{
public:
size_t getRecSize(void) const;
......
|
by: dasilva109 |
last post by:
Hi guys
I am new to C++ and need urgent help with this part of my code for a
uni coursework I have to submit by Thursday
//ClientData.h
#ifndef CLIENTDATA_H
#define CLIENTDATA_H
#include <string>
|
by: Oneironaut |
last post by:
Hello friends,
I have an issue with a linker warning. It is the warning LNK4089. I am
working in MSVC6.0
I investigated and this warning tells that the import of the library
to which it makes reference is redundant, thus the linker ignores that
library in order to make the code smaller. As it is expected, it only
appears for release versions.
|
by: dewi |
last post by:
Dear All,
I am trying to compile a C code using Visual C++. Can anyone explain how to solve it?
Thank You.
#include <math.h>
#include <string.h>
#include "RV2AJFRONT_NEW.h"
#include "RV2AJFRONT_NEW_private.h"
|
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...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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,...
|
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...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
|
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...
|
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 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...
| |