Bug in Forte C++ 6.0U1?

1635 byte By tmtikkanen at 2007-11-25 23:43:49
Dear all,I have faced very annoying problem that I now have started to believe is a bug in the compiler mentioned in the Forte 6.0U1. G++ compiles my program OK, but it is not satisfactory to compile it in g++ because I want it to be UIII optimized and to use Sun optimized math library.The ...

STL version of RogueWave

591 byte By MBTanner at 2007-11-25 23:43:50
We have 2 versions (STL and non-STL) of our code. I can't compile the STL version.For example, the C++ User Guide says:Note - If you have the Standard C++ Library, refer to the reference for this class under its new name: RWTPtrHashMap. Although the old name (RWTPtrHashDictionary) is still ...

SUN STL

488 byte By prisca at 2007-11-25 23:43:53
Hi !I am upgrading a multiplatform application that runs on IRIX, Solaris 2.6 and NT. I was previously using SUN's C++ 4.2 compiler with the "standard" STL. Now I use SUN's C++ 5.0 compiler with its (RogueWave) STL but allocating and unallocating STL objects are 3 times slower than on the 4.2 ...

install problems with Forte C++ Enterprise Edition 6 update 1

1336 byte By vrakasi2001 at 2007-11-25 23:43:57
I am trying to install on Solaris 2.7.when I do:# ./installerThe UI comes up but I see the following errors in the shell window:==============================Could not find child archive /opt/forte/.install/./../products/ws_patch_6_1/.install/install.classCould not find child archive ...

Mangling bug in Forte 6.1 Update 1 ?

1360 byte By djhunter1 at 2007-11-25 23:44:00
Hi,I built the following codeFoo.h >>>>>>>>>>>>>>>>>>>> ;class Foo{public:typedef Foo Bar;void mangle( const Foo&, const Bar& );};<<<<<<<<<<<<<<<<<<<< ;<<<Foo.c ...

Source Browsing/Call Graphing non-Forte Project

492 byte By Olav2 at 2007-11-25 23:44:02
Hi all. I have a quick question. Hopefully the answer is just as quick!I have a currently pre-built project that was developed by hand, all Makefiles, source-code etc. It compiles cleanly with Forte but I would like to take advantage of the UI tools such as source browsing and call graphing. Is ...

Error: Different types for "?:" (? and void)

566 byte By winsling at 2007-11-25 23:44:05
This error occures while compiling the followingcode line: straight * stra = new straight( p1, (p2 - p1).uvec3() );the error doesn't appear if the code looks like: unitvec3 uv = (p2-p1).uvec3(); straight * stra = new straight( p1, uv );in a mailing list i found a thread dealing withthis ...

Workshop compilers 3.0 and Solaris 8

192 byte By georgep1 at 2007-11-25 23:44:06
Hi all,I am runing the workshop compilers 3.0 on Solaris 2.6 and I am planing toupgrade to Solaris 8. Is workshop 3.0 supported in Solaris 8?Thanks very much

Compiling STLport 4 with Forte C++ 6 update 1

4190 byte By adnix at 2007-11-25 23:44:07
Hi all,I'm trying to compile STLport 4 on Solaris 8 using Forte C++ 6 update 1, but am getting errors. I'm confused by these as I was able to get this working a few months ago so I must be doing something different this time.What I am doing is going into the src directory and typing:make -f ...

Dynamic linking problem [Readable format]

1761 byte By suriyas at 2007-11-25 23:44:09
<PRE>I created one shared library which contains one function //dynlib.C #include <stdio.h> void print(int k) { printf("This is printed from dynamic library %d", k); } CC -Kpic -G dynlib.C -o libdyn.so Then I tried to make use of this library through two ways a) Making use ...

dmake is very very slow in our builds (HELP please!!!)

464 byte By himakarc at 2007-11-25 23:44:10
We use dmake (with makedepend) in our builds and our build time for the entire system is extremely slow (it takes 17+ hours to do a clean build).Could anybody suggest a solution or remedy to help us reduce the long build times. We use solaris 2.6 with Forte 6.0 C++. Our sources are mounted on a ...

The contents in a shared object file

188 byte By akcheng at 2007-11-25 23:44:11
After compilation of my C++ programs, the makefile generated a shared object file, called libxx.soAny way I could list out a contents of object file (*.o) in libxx.so?

too many symbols require `small' PIC references

1061 byte By cplloyd at 2007-11-25 23:44:12
Error Message: ld: fatal: too many symbols require `small' PIC references: have 6655, maximum 2048 -- recompile some modules -K PIC. *** Error code 1 I am linking perhaps 100 object files to create a shared object. All objects are compiled inthe following manor: /apps/SUNWspro/bin/CC -KPIC -z ...

Warnings from <x>.SUNWCCh during compiles

1112 byte By 253595 at 2007-11-25 23:44:13
Hi,I'm getting warnings when compiling code containing the standard template class headers. I'm working on Solaris 8 wih Forte C++ 6.0.An example:"/export/home0/SUNWspro/WS6/include/CC/Cstd/ios.SUNWCCh", line 148: Warning: std::basic_ios<char, std::char_traits><char>>::copyfmt ...

C++ STL's map template in SC5.0

554 byte By mukeshb1234 at 2007-11-25 23:44:16
I'm using map template as defined under Standard Template Library for C++. Header file included for the same is <map>.Code compiles properly but during the link time it gives a heap of error referring to some undefined symbol and lot other of similar type: ...

compilation problems on upgrade to Forte 6 from 4.2

571 byte By mschockl at 2007-11-25 23:44:17
Old Configuration:Solaris 2.5.2Forte 4.2New Configuration:Solrais 8Forte 6The following line of code, redefining the typedef bool, compiledfine under Forte 4.2. Our program has recently upgrading toForte 6.0 and the modules no longer compile.typedef enum {false = 0,true = 1 }bool;Have similar ...

ambiguous __ctype

1808 byte By little_deek at 2007-11-25 23:44:18
I am on a Ultra using CC: Sun WorkShop 6 update 1 C++ 5.2 Patch 109508-01 2001/01/31Here is my sample program:#ifdef __cplusplususing namespace std;#endif#include <stdio.h>#include <stdlib.h>#include <ctype.h>main( int argc, char **argv ){ long i; i = (long) MB_CUR_MAX; ...

Workshop 6.0 template function within class template compiler bug?

1252 byte By derfla at 2007-11-25 23:44:20
When I try to compile the seemingly correct code listed below on a solaris 5.6 system with a 'Sun WorkShop 6 2000/04/07 C++ 5.1' compiler, I get the following error message:Error: Cannot assign double** to double*While instantiating "MyClass<double*>::setVar<double>(double*)"This ...

Need help with Syslog

576 byte By mhamilton39 at 2007-11-25 23:44:21
I'm rather new to C++ on Unix, and I'm having a problem that I'm hoping somebody can help me with. I have to write an application that will generate "syslog messages" when certain failures (in the app) occur.Does anybody have some example code showing how to make this happen? For example, ...

How to purchase?

429 byte By adnix at 2007-11-25 23:44:22
We are located in the UK and tried to Purchase Forte C++ 6u1 a while back but were having a hard time with Sun sending us in circles. What is the easiest way to purchase? From what I understand, we can't purchase online because we're located in the UK.Related question: Will the executables ...

Compiling 2.6 targets on OS version 7

162 byte By sheilacheng at 2007-11-25 23:44:23
Hello,I'm using Workshop 5.0 on OS version 5.7. Is it possible to compile on 5.7 OS version 2.6 binary targets ? If so, how ?--sheila

Implementing "critical sections" using recursive mutex locks

1621 byte By attermann at 2007-11-25 23:44:25
Greetings. I have chosen pthread mutexes for implementing critical sections in my ported Windows code. As you probably all know, mutexes do not by default support recursive locking and will deadlock if attempted. With Solaris 7 came support for recursive locking through the ...

Raising C++ Exceptions in a Multi-Threaded Program...

591 byte By mcheathe at 2007-11-25 23:44:28
I was told by a Corba Orb Vendor that supports 20 some odd platforms that some platforms do not handle raising C++ exceptions in multi-threaded C++ programs correctly in that the exception would be raised in the wrong thread or not in a particular thread at all. So this Vendor recommended not ...

-xprefetch=auto

178 byte By peccles at 2007-11-25 23:44:29
Does this option only generate prefetch instructions ifI specify -xarch=v8plus, v9plusa, v9, or v9a?ThanksPaul Ecclespeccles@logicon.com

Compiling problem involving included .h files

533 byte By jbsn at 2007-11-25 23:44:31
I am porting and existing product to Solaris 8. I am getting errors for undefined items. The .h file containing the definitions for those items is in a #include line in the code. The work around for this problem is to insert a blank or comment line above the #include line, then the code ...

Please help: How to compile "friend declarations of template functions"?

2198 byte By ozzeng at 2007-11-25 23:44:33
I have been trying without success to use Forte C++ 6 and Update 1 to compile the following sample program from Sun's documentation. When it tries to link the produced object files, it generates an undefined symbolerror for the "operator*" function, even though it is instantiated. I checked ...

Sun C++ 5.2 and tools.h++ config problem

538 byte By cjasmine at 2007-11-25 23:44:35
With a 30-day trial forte 6 update 1, I try to compile a program with RWTPtrMap. I got several errors. One of the message is:#error Cannot include header if RW_NO_STL macro is defined for your compiler.What I understand is classes in tools.h++ requiring the use of the underlying STL. So, I ...

Problem with fstream

587 byte By mbtn at 2007-11-25 23:44:41
hi to all.I have got a very peculiar problem with an fstream object.Iam instantiating the fstream object as fstream *pStreamObject = new fstream("filename",ios::in);When the compiler runs this perticular step my whole application "hangs up " .It seems to be waiting in the function ...

SPARC vs SPARC Ultra

115 byte By adnix at 2007-11-25 23:44:43
Hi all,Will programs compiled using Forte run on SPARC or just SPARC Ultra?Many thanks!

Compiler Problem with double. Need Help

1657 byte By sahmad786 at 2007-11-25 23:44:44
Hello, I am having a problem with WorkShop Compilers 5.0 98/12/15 C++ 5.0. There is a problem with declaring double inside a nested class which is nested 3 times. Below is the code what shows the problem. If you have Workshop 5.0 please cut and paste the program below and do a simple cc ...

Linkage problem of templates ?

250 byte By sius at 2007-11-25 23:44:46
I came across this message very often when I try to link a program.tdb_link : Information: Repository "solaris/Templates.DB" is currently locked by another process. Waiting....What does it mean ?ThanksStanley

Undefined symbol Nvariant in linking C++ code on Sun Solaris

103 byte By HemalSanghvi at 2007-11-25 23:44:48
I am trying to make a library and the linker is giving me a undefined symbol Nvariant 1()

SIGKILL

201 byte By tkvg at 2007-11-25 23:44:49
Hi All,When I kill my application with kill -9 command, is it guaranteed that all the memory resources are reclaimed, including the memory allocated using new().regvg

problem with operator+

897 byte By HerveM at 2007-11-25 23:44:50
After testing some examples, i saw that there is a little problem with opertor+ code generated by CC 5.0:when I write this:Cstring s1,s2,s3;s1 = s2 + s3;all the operators, constructors and destructors are written and works.To execute s1 = s2+s3; a temporary variable is created after execution ...

compile problem (tag redeclared: iovec)

277 byte By mschockl at 2007-11-25 23:44:51
our program is porting software to solaris 8. source code that previously compiled, no loner compiles, and produces the followingerror:"/usr/include/sys/uio.h", line 39: (struct) tag redeclared: iovecanyone ever seen this error before?

Using 4.2 compiler with solaris 8?

251 byte By johnranta at 2007-11-25 23:44:53
Does anyone know if it is possible to get/use the 4.2 compiler with Solaris 2.8? If not, have people found that compat=4 was an adequate workaround? Thanks, John RantaFeel free to copy reply to my email jranta@teneocomp.com

Problem in compiling with -g option

738 byte By sachinmandot at 2007-11-25 23:44:55
I am using forte5.1 compiler. While compiling my whole source code with -g option, for some of the files, the compilation is successfully but for some files I am getting en error as ">> Assertion (../link/dbg_stcomm.cc, line 271) while processing srsCallbacks.C at line 0. Error code 1. ...

Compiling Tools.h++ Programs: Error: ws is not defined

492 byte By wiseb at 2007-11-25 23:44:56
I am trying to compile some of the sample RogueWave (Tools.h++)programs provided with the distribution. For example, compilingthe sortvec.cpp program results in the following errors:all from rw7/rw/vstream.h:- ws is not defined- the name ios is ambiguous, ios and std:ios- ... other errors ...

assertion in linking with Sun C++ 5.0 on Solaris 7

2221 byte By goel_manoj at 2007-11-25 23:44:58
I have a program using a few libraries and object files which i was able to compile and link fine. Then suddenly one day it started giving me and assertion message (as below) and since then i have not been able to link this program again. -I do not get any compile time errors- I am using the ...

code generation bug in C++ 5.0

2866 byte By balk0 at 2007-11-25 23:44:59
The enclosed test program generates incorrect codewith C++ 5.0 when -g is not used.The problem showed up in our production codeand concerns any reference counted smart pointerimplementation.The test program is specifically written to demonstratethe problem and diagnose a reference miscount.With ...

dmake: Warning: Can't find 'make.rules'

403 byte By adnix at 2007-11-25 23:45:00
I all,Just installed latest version of Forte on a new machine and when I try to compile a project (works on another machine), I get: dmake: Warning: Can't find 'make.rules': No such file or directoryand then it gives an error trying to compile the rest because of this. Any ideas what this ...

#pragma pack(1) error

510 byte By libin70 at 2007-11-25 23:45:02
Hi,I use forte c++ 6 in Solaris 2.6, a error occurs when i use #pragma pack(1) with a class having contruction function as following:#pragma pack(1)class AClass{public:AClass(int a);short ashort;intaint;} ;#pragma pack() I get the wrong result : sizeof(AClass) =8 ;But if i only have ...

Larger Binaries since SC4.2

1048 byte By jipm at 2007-11-25 23:45:04
Hi,We have a couple apps that are template heavy. Since we moved from SC4.2 to SC5.0, and Forte6, we haveseen our libraries and binaries triple (or more) in size. Also the build time for them has taken much longer.Our apps are 32-bit, and the large binaries produced couldn't even be debugged, ...

virtual function problem with SC 4.2

1435 byte By pjfloyd at 2007-11-25 23:45:05
HiI'm using SC CC 4.2[CC -VCC: WorkShop Compilers 4.2 18 Sep 1997 C++ 4.2 patch 104631-04]not the latest patch, I realize.The following bit of code:ProcessParameters *ppp = ...

Mysterious symbols in .o files

212 byte By jrjsyndeo at 2007-11-25 23:45:06
I have an object file that I built with Forte C++ 5.0.I would like to find out from what source file (.h or .cpp) a particular referenced name was made. Does nm produce such a listing?

compat=4 and rpcb_getaddr()

182 byte By arneland at 2007-11-25 23:45:07
When calling the function rpcb_getaddr() with a rpc number that already exist i get a segmentation violation if i don't compile whith compat=4. Does anybody know why?

how to install gcc on solaris 7

223 byte By behrads at 2007-11-25 23:45:11
Hi everybodyI downloaded "gcc-2.95.2-sol7-intel-local.gz" from sunfreeware.com site. I unzipped it but i don't know how can i install it on my solaris intel 7. please help me.ThanksBehrad

How to Generating stand-alone executable file

558 byte By behrads at 2007-11-25 23:45:12
Hi everybodyWhen I compile my program at ?usr/local/g++?compiler, it is compiled successful, but during running program, this error occurred."ld.so.1: ./upsconsole: fatal: libstdc++.so.2.10.0: open failed: No such file or directory"When I copy 搇ibstdc++.so.2.10.0?file to /usr/lib directory, it ...

-misalign and mis

893 byte By mdgraybi at 2007-11-25 23:45:16
We have C source being compiled with -misalign on the C compiler (v6) being linked using the C++ compiler/linker with a C++ library that was also built using -misalign.The problem is alignments of various structure members varies. Using the same #pragma pack(?) in both the C and C++ compilation ...

gcmonitor, new[], shared lib

833 byte By MikaN at 2007-11-25 23:45:17
When I put the following: char * leaky = new char[7];in function local scope, compile with libgc_dbg, it does notget detected by the memory monitor. But when I change itinto char * leaky = new char[700];I do get the leak reported in the memory monitor. I amusing Forte C++ version 6. I thought ...