473,785 Members | 2,714 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Linker errors on Compaq comiling C++ application using STL

Hi,
I am trying to use the STL for C++ on Compaq. From what I read in
the man pages and several online documentation, it is recommended that
in order to use the STL on COMPAQ , I need to use the following flag -
__USE_STD_IOSTR EAM. The compilation goes through fine, but at the
linking time, I get the following errors -
Unresolved:
std::basic_istr eam<char, std::char_trait s<char> >::getline(char *,
long, char)
std::basic_ifst ream<char, std::char_trait s<char>
::basic_ifstre am(const char*, int, long)
std::basic_ifst ream<char, std::char_trait s<char>::~basic_ifstr eam(void)

std::basic_istr eam<char, std::char_trait s<char> >::putback(char )
std::basic_istr eam<char, std::char_trait s<char> >::peek(void)
std::operator >>(std::basic_i stream<char, std::char_trait s<char> >&,
char*)
std::ws(std::ba sic_istream<cha r, std::char_trait s<char> >&)
std::basic_ostr ingstream<char, std::char_trait s<char>,
std::allocator< char> >::b
asic_ostringstr eam(int)
std::basic_ostr eam<char, std::char_trait s<char> >::operator
<<(std::ios_bas e& (*
)(std::ios_base &))
std::basic_istr eam<char, std::char_trait s<char> >::get(char*, long,
char)
std::basic_istr eam<char, std::char_trait s<char> >::operator
(std::ios_bas e& (*

)(std::ios_base &))
*** Exit 1
Any idea why this is happening.
I am using the cxx compiler version
Compaq C++ V6.3-002 for Compaq Tru64 UNIX V5.1 (Rev. 732)
Compiler Driver V6.3-002 (cxx) cxx Driver

I have also tried to explicitly link with the libcxxstd.a file, but
that also does not seem to resolve this issue. Any guesses what is
happening here, and what options do I have. Am I missing a patch of
somekind, in order to have the STL support?

Any help would be very much appreciated.

Thanks and Regards,
Abhi
Jul 22 '05 #1
3 1523
Abhishek wrote:
Hi,
I am trying to use the STL for C++ on Compaq. From what I read in
the man pages and several online documentation, it is recommended that
in order to use the STL on COMPAQ , I need to use the following flag -
__USE_STD_IOSTR EAM. The compilation goes through fine, but at the
linking time, I get the following errors -
Unresolved:
std::basic_istr eam<char, std::char_trait s<char> >::getline(char *,
long, char)
std::basic_ifst ream<char, std::char_trait s<char>
::basic_ifstr eam(const char*,


int, long)
std::basic_ifst ream<char, std::char_trait s<char>
::~basic_ifst ream(void)


std::basic_istr eam<char, std::char_trait s<char> >::putback(char )
std::basic_istr eam<char, std::char_trait s<char> >::peek(void)
std::operator >>(std::basic_i stream<char, std::char_trait s<char> >&,
char*)
std::ws(std::ba sic_istream<cha r, std::char_trait s<char> >&)
std::basic_ostr ingstream<char, std::char_trait s<char>,
std::allocator< char> >::b
asic_ostringstr eam(int)
std::basic_ostr eam<char, std::char_trait s<char> >::operator
<<(std::ios_bas e& (*
)(std::ios_base &))
std::basic_istr eam<char, std::char_trait s<char> >::get(char*, long,
char)
std::basic_istr eam<char, std::char_trait s<char> >::operator
(std::ios_ba se& (*


)(std::ios_base &))
*** Exit 1
Any idea why this is happening.
I am using the cxx compiler version
Compaq C++ V6.3-002 for Compaq Tru64 UNIX V5.1 (Rev. 732)
Compiler Driver V6.3-002 (cxx) cxx Driver

I have also tried to explicitly link with the libcxxstd.a file, but
that also does not seem to resolve this issue. Any guesses what is
happening here, and what options do I have. Am I missing a patch of
somekind, in order to have the STL support?

Any help would be very much appreciated.

Thanks and Regards,
Abhi


Please contact your vendor regarding this.
We discuss the core language here and you have not presented any C++
code anyway.

--
Karthik.
Jul 22 '05 #2
"Abhishek" <ab******@gmail .com> wrote...
Hi,
I am trying to use the STL for C++ on Compaq. From what I read in
the man pages and several online documentation, it is recommended that
in order to use the STL on COMPAQ , I need to use the following flag -
__USE_STD_IOSTR EAM. The compilation goes through fine, but at the
linking time, I get the following errors -
Unresolved:
std::basic_istr eam<char, std::char_trait s<char> >::getline(char *,
long, char) [...] *** Exit 1
Any idea why this is happening.
I am using the cxx compiler version
Compaq C++ V6.3-002 for Compaq Tru64 UNIX V5.1 (Rev. 732)
Compiler Driver V6.3-002 (cxx) cxx Driver

I have also tried to explicitly link with the libcxxstd.a file, but
that also does not seem to resolve this issue. Any guesses what is
happening here, and what options do I have. Am I missing a patch of
somekind, in order to have the STL support?


Apparently, the standard _stream_ library is separate from run-time
one and needs to be linked explicitly. Look in your compiler docs
for guidance on how to add the C++ streams to the libraries to be
linked. Also, have you tried searching on the web for a possible
solution?

V
Jul 22 '05 #3
ab******@gmail. com (Abhishek) wrote in message news:<3c******* *************** ****@posting.go ogle.com>...
Hi,
I am trying to use the STL for C++ on Compaq. From what I read in
the man pages and several online documentation, it is recommended that
in order to use the STL on COMPAQ , I need to use the following flag -
__USE_STD_IOSTR EAM. The compilation goes through fine, but at the
linking time, I get the following errors -
Unresolved:
std::basic_istr eam<char, std::char_trait s<char> >::getline(char *,
long, char) [snip]

*** Exit 1
Any idea why this is happening.
I am using the cxx compiler version
Compaq C++ V6.3-002 for Compaq Tru64 UNIX V5.1 (Rev. 732)
Compiler Driver V6.3-002 (cxx) cxx Driver
The Compaq compiler issues template instantiations into the
directory cxx_repository.

You must link against all object files in this directory
or add all these files to the archive.
Below is a snipet from our (GNU) makefiles:

In the platform specific makefile config.mk.tru64 :

CXX_REPOSITORY = cxx_repository

In the application makefile (config.mk is a symbolic link
to the platform specific makefile):

include $(top_srcdir)/config.mk

$(ARCHIVE): $(ARCHIVE)($(OB J))
@if test -n "$(CXX_REPOSITO RY)"; then \
find $(CXX_REPOSITOR Y) -name "*.o" -type f | \
xargs $(AR) $(ARFLAGS) $@; \
fi
$(RANLIB) $@

Unless you need I won't explain the details ...

I have also tried to explicitly link with the libcxxstd.a file, but
that also does not seem to resolve this issue. Any guesses what is
happening here, and what options do I have. Am I missing a patch of
somekind, in order to have the STL support?

Any help would be very much appreciated.

Thanks and Regards,
Abhi


regards,
Stephan Brönnimann
br****@osb-systems.com
Open source rating and billing engine for communication networks.
Jul 22 '05 #4

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

Similar topics

0
2228
by: Tom McDermott | last post by:
I am having linker errors : error LNK2022: metadata operation failed (80131188) : Inconsistent field declarations in duplicated types This code linked sucessfully in C++.NET 2002, but does not link (causes several of these metadata errors) in C++.NET 2003.
3
8117
by: ac2806 | last post by:
Hi I want to use the static MFC within a dll, but I get the following errors when linking: nafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argv nafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argc nafxcwd.lib(apphelp.obj) : error LNK2001: unresolved external symbol __mbctype
3
3301
by: ralphsieminsky | last post by:
A project compiles fine under VS 2005 RC without the /clr option. However, when /clr is turned on several errors appear: - A symbol exported from a DLL is not found by another DLL referencing it. The name of the symbol present in the DLL, as shown by depends.exe is ?Apply@ScreenContext@@SGPAV1@PAUHWND__@@@Z But the name of the symbol the linker looks for when
3
8087
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...
0
1756
by: VivekR | last post by:
I have a MFC application developed using VC++ 5. Recently I ported that to VC++ 7.1 and now I am trying to compile the MFC application with /CLR under VC++ 7.1. And I get linker errors referring to one of the libraries that the project uses. Without the /CLR, the project compiles and runs well. There is some library by name task.lib and the code refers to that lib, in the linker step i get the following linker errors:- Task.lib :...
1
3293
by: developer | last post by:
Hi All I have made a .NET project. the files included are borland c++ files that i am migrate to VC++ .NET I am using Microsoft Visual C++ .NET 2003. the compilation goes through properly, but throws a load of linker errors
1
1956
by: ImamicPH | last post by:
Hi, My first post. How do you resolve linker errors? I have a simple header file that contains one function declaration. This function is used in another file (.cpp) in the definition of a macro. There is another separate .cpp file that actually defines the function. I assumed that if I had these three separate source files saved in the same directory (C:\) that my compilier would find the header file along with the other .cpp file and...
2
2785
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.
2
2430
by: Markus Dehmann | last post by:
What to do if an external library is header-files-only (but you have to use it), and you get lots of linker errors? You will necessarily get linker errors "multiple definition of ..." if you try to separate interface from implementation in your own code. The external-library symbols will first be defined in one .o file and then again in the next one that includes the same implementation-heavy header. Is there any way to avoid the...
0
9480
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10319
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...
0
10147
jinu1996
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...
0
8971
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...
1
7496
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6737
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
5380
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...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4046
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

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.