Cannot declare a member of the abstract type

139 byte By kurwalkar at 2007-11-25 23:51:33
Hi,I am getting the above error while compiling under Forte 6.0 on Solaris 2.8.Can anybody help me to sort out

c 4.2 compatibiltiy

82 byte By savvysoft at 2007-11-25 23:51:35
Is the latest c++ compiler compatible with code compiled with c 4.2?

libc internal error: _rmutex_unlock: rmutex not held

365 byte By andyzou at 2007-11-25 23:51:39
I have a C++ shared library (libXML2RTF.so)I made a simple c program to call a function in the libXML2RTF.so. It works fine.When I run another application (Impact Engine) to call the same function in the libXML2RTF.so, I got the error:libc internal error: _rmutex_unlock: rmutex not heldAny ...

purify/quantify break with patch Patch-ID# 109147-14

220 byte By cyprix at 2007-11-25 23:51:40
I am not sure if this is a Sun problem or a Rational problem, in any case does anybody know of a work around? We need the patch for other issues, but now our expensive purify/quantify are completely broken!

Exception not caught soalris 8

986 byte By amolk2000 at 2007-11-25 23:51:41
hi,I am building my executable on following platformSunOS 5.8 Generic sun4u sparc SUNW,Ultra-Enterpriseusing following compilerCC: WorkShop Compilers 5.0 98/12/15 C++ 5.0The problem is when I build the excutable in debug mode i.e by giving -g option the exception which i throw is caught in the ...

"symbol not found"-Error

727 byte By raspl at 2007-11-25 23:51:42
Hi,just wanted to report some kind of success here in case someone else runs into this problem:I built some shared libraries, and 'ldd libfoo.so' didn't show me any unresolved symbols. But when using functions like dlopen(), I received a 'symbol not found' error. I could verify this by ...

Can't open ofstream with ios::ate

510 byte By pjfloyd at 2007-11-25 23:51:43
HiI'm using CC: Sun WorkShop 6 update 1 C++ 5.2 2000/09/11(not the latest afiact, I'm working on getting our sysadmin to install the latest patch).When I do the followingofstream f;f.open(filename, ios::out | ios::ate);writing to f truncates, rather than writing to the end of the file.This ...

Simple list won't compile with -template=wholeclass

1264 byte By skybd1 at 2007-11-25 23:51:44
I have narrowed this down to a simple program:#include <rw/cstring.h>#include <list>void dave(){std::list<RWCString> daveStr;}When I compile with:CC -template=wholeclass -library=rwtools7_std -g -c Dave.ccI get errors:/opt/SUNWspro/WS6U2/include/CC/Cstd/./list.cc, line ...

Command to Convert X Window Dump file to JPEG file

222 byte By me140988 at 2007-11-25 23:51:45
Is there a command in Solaris 2.6 that I can use to convert XWD files to JPEG files? The command should accept two arguments, the name of the file to be converted and the destination file.Thanks a lot!

Xemacs text colors

306 byte By speedring at 2007-11-25 23:51:46
Hi,when I open files that their names end up with C of H, I get nice and different colors for the text (remarks in green etc.).How do I make emacs to paint in the same method other file extentions?I have solaris 8, with workshop 6, xemacs 20.4Thanks,Shachar ...

Relocation errors on Solaris 2.8 using WS 6.2

1856 byte By Spectra at 2007-11-25 23:51:47
I've downloaded the latest patches for both the compiler(111685-05) and the OS(latest cluster patch) The problem I'm getting is with shared objects. I have A.so and B.so If I run an executable that has been linked directly to A.so everything is ok. If I run an executable that uses dlopen to ...

Forte C++ v6r2 debugger problems with "cout <<".

1515 byte By llindstrom at 2007-11-25 23:51:48
My system is a Solaris 8/Intel with the current Forte C++ workshop, personel version. I've applied the recommended patch cluster and maintenance update 7 in the last couple of weeks. The debugger started coring out when I stopped including <stdio.h> and started using the "<<" ...

STL set header

1093 byte By SrkiH at 2007-11-25 23:51:49
Could someone help me with the following declaration found in patch 107312-16 in <set>typedef _TYPENAME__rep_type::const_iterator iterator;typedef _TYPENAME __rep_type::const_iterator const_iterator;Which typedefs set's iterator as a const_iterator. This thing imposes compiler's errors ...

Error from SunWork Shop

778 byte By mshyam at 2007-11-25 23:51:50
Hi,I'm getting the following error using Forte 6SunWS_cache: Information: Database is locked, waiting....SunWS_cache: Information: Database is locked, waiting....SunWS_cache: Information: Database is locked, waiting....SunWS_cache: Information: Database is locked, waiting....SunWS_cache: ...

64 Bits and Motif

766 byte By sgard at 2007-11-25 23:51:51
I compile a Motif application in 64 bit as follows:CC -xtarget=generic64 -g -c fonttest.CCC -xtarget=generic64 -g -o fonttest fonttest.o -lstdc++ -lm -lXm -lXt -lX11 it compiles just fine. But when I run it I get the following errors at runtime:Warning: Cannot convert string ...

Ostringstream bug

667 byte By roelofsm at 2007-11-25 23:51:52
When compiling this program:#include <sstream>#include <iostream>int main(){std::ostringstream s;s << std::string("Hey!");std::cout << s.str() << std::endl;s.str("");std::cout << s.str() << std::endl;}with "CC: Sun WorkShop 6 update 1 C++ 5.2 Patch ...

C++ 5.3 missing include files

4575 byte By SureshJoseph01 at 2007-11-25 23:51:53
I have Forte 6 update 2 C++ compiler , patch 108434-05 on Solaris sparc 5.8. When I try to compile code written for 4.1 compiler, with option -compat=4, I get errs saying that stddef.h and string.h is not found. Can anyone suggest a remedy.The same code, when compiled in standard mode (-compat ...

Classic vs. Standard iostream (Forte 6)

856 byte By mshyam at 2007-11-25 23:51:54
Hi ,We're currently porting our application fromC++4.2 to Forte 6 Update 1 (C++5.2). From themigration guide, we see that classic iostream lib isavailable in compat and standard mode, in additionto a standard iostream lib. However, the guidedoes not recommend which one to use?Is it recommended ...

Alternative to RogueWave Libraries on Forte 6 Update2

372 byte By ashish_tiwari at 2007-11-25 23:51:55
Hi All Is there any alternative to following RogueWave libraries(Standard C++Library, Tools.h++, Threads.h++, DBTools.h++) on Solaris 2.8 and Forte 6 Update 2.If yes pls. also provide the site names, from where i can get the relevant docs.Has anyone done such a migration, can you give some idea ...

compiler locking problem

570 byte By JohnSeers at 2007-11-25 23:51:56
Hello When I compile C++ programs I get the following error:SunWS_cache: Error: Lock attempt failed for /srsuser/seers/srs/bin/solaris8/SunS_cache/CC_state (errno: 45). Aborting....Environment:Sun WorkShop(TM) Release 6 update 1SunOS ****** 5.8 Generic_108528-11 sun4u sparc SUNW,Sun-Fire-280RI ...

Forte 6 update 2: Partial template specialization bug:

2340 byte By amorrowcrcg at 2007-11-25 23:51:57
The following code exposes a bug in WS6U2 partial template specialization handling. The code works fine on gcc 3.0. Compiler patches are all up to date, OS is solaris 8.unix experiments/C++/typelist_spec> cat typelist_spec.cpp/******** typelist_spec.cpp **********/// Derived from ...

dbx problem - skipping debugging info

952 byte By kroger at 2007-11-25 23:51:58
Hi, I am compiling with SUN Workshop 6 update 1 C++ version 5.2 on Solaris 8.When I try and run dbx on my binary I get the following errors:...(many times the following type of error)dbx: warning: cannot demangle '__1c9uX__unnamed_yK0Pv0RtL7AFjIrwStrLen6Fpkw_I_'...dbx: warning: Skipping ...

CC Template repository problem

3473 byte By mteira2 at 2007-11-25 23:51:59
Hello. I have the following problem with Forte C++ 6.0 U1:Say I have a source code using STL templates. Say it's called Source.cc in the $(PDIR) directory.I type the following:CC -I./hdrs -c Source.cc -o obj/Source.o (1)It builds succesfully. Now, if we look in the obj directory, we can ...

-misalign option -- performance/impact?

578 byte By BerenHalfHanded at 2007-11-25 23:52:00
We're trying to assess performance impact and performance penalty for using the misalign compiler option. I'm looking for some detail on what this does exactly, in terms of the instruction pipeline and kinds of instructions emitted, as well as perhaps some sort of round figure on what kind ...

function typeid(object) leaks memory.

496 byte By huijiezhang at 2007-11-25 23:52:01
Run the following code and watch the memory usage grows:#include <typeinfo.h>class CC{ public:CC() { }};int main(int argc, char* argv[]){ CC obj;for(;;){const char* pp = typeid(obj).name();} return 0;}$ CC -VCC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-05 2002/02/03$ uname -aSunOS ...

**Assertion** problem

530 byte By skybd1 at 2007-11-25 23:52:02
Has anybody seen this before, or know what it means?CC -g -mt -library=rwtools7_std -c Dave.cc** Assertion ** : 0 (/set/nozomi/builds.sparc-S2/build15.2/sparc-S2/lang/cafe/resources/cdr/src/c_f ilecache.cc: 277)If I change my compile to:CC -g -mt -library=rwtools7_std -c -o obj/Dave.o ...

indexing with valarray as base class

2673 byte By maciisi at 2007-11-25 23:52:03
Can anybody tell me why the const index operator[] in the valarray class returns a copy of the indexed element instead of a const reference to the element? This is causing a compiler warning when i try to use the valarray as the base class and my index operator() returns the const T& ...

Compiling with compat=4 -library=iostream

4526 byte By mrjenkins at 2007-11-25 23:52:04
Guys,I am trying to compile a C++ corba client with Sun WS 6 2000/04/07 C 5.1. I wish to compile with compat mode = 4 and then use the classic iostream libraries but I continually get errors that <iostream> can not be found and numerious other errors.This despite the fact that the compile ...

Function Overload problem

584 byte By raycray at 2007-11-25 23:52:06
I conducted a problem when upgrading from Solaris7 and workshop5 to Solaris8 and workshop6. It is about function overloading. void SetValue(const string& sStr){printf("const string reference\n");};void SetValue(bool bBool){printf("bool\n");};int main(){SetValue("abc");return 0;}When ...

Forte C++: Recursive template specializations

1422 byte By mdfeather at 2007-11-25 23:52:07
The following code extract from the 'Loki' library [see http://www.awl.com/cseng/titles/0-201-70431-5 or "Modern C++ Design", by Andrei Alexandrescu] does not yield correct results when compiled using Forte C++ 5.3. On the other hand, GNU g++ 2.95.3 has no trouble.It seems that Forte C++ ...

Problem with variadic macros, Forte 6U2

1348 byte By amorrowcrcg at 2007-11-25 23:52:09
The following code demonstrates a problem with namespace qualifiers used in variadic macros. The workaround (if you want to call it that) is to use triple colons as the scope resolution operator inside certain cases of variadic macros. The following piece of very contrived code demonstrates the ...

core dump/hang problem solaris 8

1598 byte By amolk2000 at 2007-11-25 23:52:10
Hello ,I am using the following configuration, to build my applicationSunOS 5.8 Generic_108528-12 sun4u sparcSUNW,Ultra-5_1064 bit machine with CC 5.0 While excuting the program i get core dump/hang in cout , following is the stack looking from dbx[1] _mutex_adaptive_lock(0xffffffff7c322000, ...

"Out of memory" error when compiling loki-like templates w/Typelists

670 byte By mdfeather at 2007-11-25 23:52:11
Using Forte C++ 5.3 with the latest [2002/03/20] patches, attempts to compile a loki-like Functor template [download at www.awl.com/cseng/titles/0-201-70431-5 or see "Modern C++ Design" by A. Alexandrescu] whose family of operator()() functions take up to 15 parameters cause an "Out of memory" ...

Forte 6 C++ Compiler

415 byte By sarojkumar_rout at 2007-11-25 23:52:12
We have a product which uses a lot of 3rd party libraries like GKS libraries and CPS libraries..We are compiling our product on Solaris2.6 and using it on Solaris 8.it works fine.But we are planning to port the product to Solaris 8 using Forte 6 compiler for C++.Will there be any impact on the ...

File Locking on solaris with C++ fstream

846 byte By ramana_here at 2007-11-25 23:52:14
Hi Guys,I have a problem with file locking on Solaris 5.6 with fstream. All of the file locking methods I know act on a file descriptor (flock,lockf, fcntl). In this particular scenario I got to use any C++ streams.I'm particularly concerned with fstream filebuf flags. In Window NT Iam using ...

Solaris 8 binary compatibility -> Solaris 7

811 byte By sunandre at 2007-11-25 23:52:15
Greetings:and TIA.Also apologies if this issue has been covered via some other resource.Note: Hardware Utilized - SparcWe have recently ported our 4.2 Forte C++/C code successfully from Solaris 6 to Solaris 8. As part of that port, we upgraded the compiler resources from 4.2 to 6.0. With these ...

DBX stack_dump

272 byte By ivandn at 2007-11-25 23:52:16
In the stack dump each function that was called is listed.After each function there are some numbers in parenthesis.Does anyone know what these numbers represent.XtSetValues(0x0, 0x92350, 0x1, 0x0, 0xfe88d83c, 0xfdd09308, ) at 0xfe62ca3c

Cg produces wrong code with -O

1430 byte By vicgour at 2007-11-25 23:52:17
We're facing strange problem with Frote 6u1 on sparc. When -O switch is used, compiler performs aggressive optimization and all inline calls are being inlined(and that's good). But seems that under certain circumstances calls are not properly inlined inside exception handler. For ...

how to use line wrapping and line spacing in java?how to use line wrapping

1214 byte By mechmani at 2007-11-25 23:52:21
how to use line wrapping and line spacing in java?how to use line wrapping and line spacing in java?how to use line wrapping and line spacing in java?how to use line wrapping and line spacing in java?how to use line wrapping and line spacing in java?how to use line wrapping and line spacing in ...

Different X behaviour between Solaris 2.6 and 8

863 byte By rhysg at 2007-11-25 23:52:22
Hi,We have recently upgraded a development box to Solaris 8 from 2.6. We have recompiled (same compiler) an application with no changes... and we get different behaviour. There are two problems that we are tracking so far:1. Buttons don't seem to be responding to their callbacks so we never ...

equivalent to tgoto

479 byte By anilga at 2007-11-25 23:52:23
HI,man tgoto gives the prototype for tgoto as char *tgoto(char *cap, int col, int row);But this prototype is not available in any of the include files.The available prototype for tgoto is tgoto(); in term.hCan anybody let me know any more information on this.The system specifications are SunOS ...

Solaris 2.7, 2.8 and vector

3555 byte By anki at 2007-11-25 23:52:25
Hello,using the following code:#include <vector>using namespace std;(...)works just fine for Solaris 2.8 with Forte 6 Update1. When compiled on Solaris 2.8 I get the following dump:/share/WorkShop6/bin/CC -g -xsb -compat=5-o /share/WorkShop6/WS6U1/include/CC/Cstd/vector ...

Using CArray : include "Afxtempl.h" !!!!

409 byte By steelcase at 2007-11-25 23:52:26
Hello,I'm trying (and hope it will success !) to compile under solaris 8 an application that was written with Microsoft Visual C++.This application is using the class CArray which is include in Afxtempl.h. This include isn't bundle with Workshop 6.0.Does someone know where I can't find this ...

Sol2.6 compiler 5.3 -error w/virtual destructor

1078 byte By cnzzz at 2007-11-25 23:52:27
Hi,We're upgrading to the 5.3 compiler and now i'm getting the following error:Function ACORuntimeException:~ACORuntimeException() can throw only the exceptions thrown bythe function std::runtime_error::~runtime_error() it overrides.//Here's how my class is set up in my header file:class ...

Running Solaris 2.6 32 bit application on 64-bit Solaris Application

6733 byte By bhaskar_jana at 2007-11-25 23:52:28
Hello,My 32 bit C++ application works fine on Solaris 2.6 development machine, but when the application is executed on a Solaris 8 production box running in 64-bit environment it produces a segmentation fault.The application is a C++ DCE client application, that is multithreaded. It uses ...

Runtime checks, multithreaded, C++ 5, dbx

541 byte By eweb_wbt at 2007-11-25 23:52:29
I am trying to use the runtime checking in dbx 5.0It is a multi threaded application.When I turn on access checking I get...Enabling Error Checking... dbx: warning: The loadobject `libjava.so' is stripped, RTC may not catch all the errorssignal SEGV (no mapping at the fault address) in ...

C++help

1033 byte By aberov01 at 2007-11-25 23:52:30
hi, guyscould you please help me with my C++ question.I have to do it until April 11.I did it but I'm not sure if it's right.Here is my program question:Write a function that takes a string and tries to turn it into a positive integer value.If the string has any characters that are not digits ...

Print/Dump Stack trace on SIGSEGV

162 byte By AmanHanda at 2007-11-25 23:52:32
1. Is there a portable method to handle the software signals SIGSEGV, SIGBUS, SIGILL and dump the stack trace and abort?Thanks for your help.

forte and the STL

838 byte By mtegtmeyer at 2007-11-25 23:52:33
Hello all,I have a question regarding fortes compliance with the standard regarding the STL. Does it.For example, just trying to compile simple code such as...#include <memory>int main(void){std::allocator<char> a;char *p;a.destroy(p);return 0;}Will not compile (ignore that the code ...

what is __door_return?

912 byte By NavinKamath at 2007-11-25 23:52:34
Hi,Can someone tell me what is __door_return? I have observed this in the stacks of mymultithreaded library (Orbix from IONA Technologies) during debugging or perfomancetuning. Obviously it has got to do something with the scheduling of LWPs but I need a better explanation than that.I made a ...