473,379 Members | 1,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

iostream????

Ali
Hi,

im using stl in a small testApp which linked against 2 libraries.

compiler: Compaq C++ V6.2-024 for Compaq Tru64 UNIX V5.1A (Rev. 1885)
flags: -g -gall -msg_quiet -using_std -D_ANSI_C_SOURCE....
ThHe problem is:
Whenever i use iostream in a cpp file in one of the librearies
i got this:

Thread received signal SEGV
stopped at [<opaque> __pthread_mutex_lock(...) 0x3ff805686b0]

Information: An <opaque> type was presented during execution of the
previous command. For complete type information on this symbol,
recompilation of the program will be necessary. Consult the compiler
man pages for details on producing full symbol table information using
the '-g' (and '-gall' for cxx) flags.

(ladebug) up
1 0x3ff8013ac30 in __tis_mutex_lock(...) in /shlib/libc.so (ladebug) up2 0x3ff8013b530 in __cma_tis_mutex_lock(...) in /shlib/libc.so
3 0x3ff802e150c in __cxx_mutex_lock(...) in /shlib/libcxx.so
4 0x12003e624 in UnknownProcedure34FromFile273(...) in TestApp (ladebug) up5 0x12003d930 in Init(...) in TestApp
6 0x3ffbffe1858 in __init_sti__cxxl_std_init_cpp_65f45f2a(...) in myLib.so7 0x3ffbfffbbd8 in myLib.so
8 0x3ff800068e0

Any Idea??????????????/

Ali
Jul 19 '05 #1
3 2100

"Ali" <al*********@hotmail.com> wrote in message news:72**************************@posting.google.c om...
Hi,

im using stl in a small testApp which linked against 2 libraries.

compiler: Compaq C++ V6.2-024 for Compaq Tru64 UNIX V5.1A (Rev. 1885)

You're best to ask in one of the alpha or Tru64 (fomerly called Digital Unix, formerly called
OSF/1) groups. This group doesn't address deficiencies of specific implementations.
Jul 19 '05 #2
Ali
di****@ix.netcom.com (David Cattarin) wrote in message news:<30**************************@posting.google. com>...
al*********@hotmail.com (Ali) wrote in message news:<72**************************@posting.google. com>...
Hi,

im using stl in a small testApp which linked against 2 libraries.

compiler: Compaq C++ V6.2-024 for Compaq Tru64 UNIX V5.1A (Rev. 1885)
flags: -g -gall -msg_quiet -using_std -D_ANSI_C_SOURCE....
ThHe problem is:
Whenever i use iostream in a cpp file in one of the librearies
i got this:

[snip]
Any Idea??????????????/

Ali


Hi Ali,

I've had the exact same problem and haven't found a solution to it
yet. There is definitely a problem when using iostream with certain
Tru64 libraries (in my case SS7). During startup, iostreams throws an
exception and then... boom. I've even duplicated this problem with
some simple test programs, but when I've rewritten them not to use
iostreams, then they've worked fine.

The only information I've found on HP's website is the following
information for the 6.5-0.31 version of the C++ compiler, in section
3.27 "Restrictions in Version 6.3":
http://h30097.www3.hp.com/cplus/rnu.htm

"A problem in libexc on Tru64 UNIX before Version 4.0E
generates an error message when an exception is thrown
from a constructor that will be called by a static
initialization, as in the following example. The error
message appears after the example. There is no workaround
for the problem."

I'm using the same version of the compiler as you, but am using an
earlier OS.
Compaq C++ V6.2-024 for Digital UNIX V4.0F (Rev. 1229)

I doubt any of this helps, but good luck just the same.
Dave


problem solved!
i have removed '__USR_STD_IOSTREAM' and it works fine. hmmmm
Jul 19 '05 #3
al*********@hotmail.com (Ali) wrote in message news:<72**************************@posting.google. com>...
[snip]
problem solved!
i have removed '__USR_STD_IOSTREAM' and it works fine. hmmmm


You removed the symbol, or just stopped using iostreams?
Dave
Jul 19 '05 #4

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

Similar topics

10
by: John Tiger | last post by:
Can anybody have idea about the difference between #include <iostream.h> and #include <iostream>. Is later one valid statement on any compiler. I tried compiling on MSVC second statement give...
13
by: ncstate | last post by:
it seems when i try to compile this simple code I get an error message i believe is from g++ not finding the IOSTREAM header file. i found the header file in /usr/include/c++/3.2.2/ so that is why...
19
by: ernst.stiegler | last post by:
Hello, I just want to read a whole line from a console input. What I don't understand is that I always have to press ENTER twice in order to see the line I've entered. Here's my code : ...
1
by: Pradyot Dhulipala | last post by:
Hi, I am using ns2.26 with the Makefile using C++ compiler version c++ (GCC) 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk). When I use iostream.h in a simple program and compile with c++ everything works...
2
by: humble04 | last post by:
Hi, I am compiling a collection of C++ code. Most of them are using the new format #include <iostream>. I think all of them because I failed at finding out which header file uses the old format ...
7
by: S. Nurbe | last post by:
Hi, probably this is a common problem but I couldn't find yet a proper solution (and I hope there is one). I have two relative complex frameworks: one uses only iostream.h the other one only...
1
by: Shane Ragone | last post by:
What happened to iostream.h in VS .NET? Are we now to code: #include <iostream> instead of: #include <iostream.h> All my past code that used iostream.h will no longer
1
by: Bill Sun | last post by:
Hi, I just want to using a console application in the .net enviroment. Before the main(), I using the #include "iostream.h" but the .net tell me:...
1
by: Ly Hoang Hai | last post by:
Hi all, I have just port my C++ 6.0 project into C++ project of Visual Studio.NET. However, .NET tell me that it can not find iostream.h. Some search on the internet tell me that I should change...
2
by: NewToCPP | last post by:
I am having some trouble including "iostream" "fstream" to my code. I tried the following ways and base times it did not work. What is the problem? test.cc: ======= ..... #include...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.