forte 6.2, urgent help

568 byte By raoul_s2001 at 2007-11-25 23:55:52
hi,why i compile my code using sun compiler 4.1, 32 bit, and nm of object filesfor a given function name looks the same and compilatin does not resultin any error.But, with forte 6.2 i run 32 bit and 64 bit compilation and i get Undefined Symbolerror. the nm of object files for that given ...

Undefined symbol with shared library - namespace or template issue?

2461 byte By rc2rod at 2007-11-25 23:55:53
When using the Sun One Compiler or the Forte Update 1 compiler,the linker is not able to resolve the symbol for the ZNULL listedbelow. There is no compilation errors. I am unable to generate this issue with reduced code, so I willprovide the following code fragments (I am porting other ...

mount file system error on solaris8

1552 byte By cgdong at 2007-11-25 23:55:54
use 'mount' command to show all mount points,it displays as following:/ on /dev/dsk/c1t10d0s0 read/write/setuid/intr/largefiles/onerror=panic/dev=8000c0 on  1 9 22:28:17 2001/usr on /dev/dsk/c1t10d0s5 read/write/setuid/intr/largefiles/onerror=panic/dev=8000c5 on  1 9 22:28:39 2001/proc on ...

can not open device when reboot on solaris8

372 byte By cgdong at 2007-11-25 23:55:55
on solaris when use 'reboot' command to reboot machine,butit stop when rebooting,on screen it displays as:Boot device:/sbus@3,0/SUNW,fas@3,8800000/sd@0,0 File and args:Can't open boot device{0} OKthe machine is SUN E4500.Why and How to resolve it?Any your help are appreciate.Thaks and Best ...

casting question;urgent help please

386 byte By raoul_s2001 at 2007-11-25 23:55:56
in app1.c:typedef f_status (*fptr)(void*);int myfunc(int arg1);//Do stuff heremyfunc(1);in app2.c:f_statsus myfunc(int arg1) {//do stuff herereturn (ret_ok);}when compiling and linking app1.o app2.o with new suncompilers i get "Undef symbol" error (app1.o).any casting solution?.r. ...

SunWS 4.2 C++ compiler

543 byte By martindonaghy at 2007-11-25 23:55:57
Hi,I would like to know if SunWS 4.2 C++ compiler (SunOS 5.6) is compatible with the following Roguewave products:DBTools.h ++ 3.2.0 Money.h ++ 2.1.0 Tools.h ++7.1.0 The reason I ask is because our C++ code using Tools.h ++ 7.0 compiled fine using the SunWS 4.2 C++ compiler. But now with the ...

How to remove wrlock calls ?

2764 byte By paulmcgrath at 2007-11-25 23:55:58
We have analysed the performance of our applications using Quantify and find that a lot of the time is spent in calls to llrw_wrlock/unlock etc.Our application is written in C++ built using SunWS4.2 on Solaris 2.6.The application is single-threaded but sits on top of a thread-safe ...

Link Time error with <queue> STL

940 byte By teeks79 at 2007-11-25 23:55:59
Hi,I am getting a link time error during the building of a program, which uses an object file that uses the <queue> template in STL. I have provided a summary of the error below. I am not able to identify the problem. If somebody could help me in this regard, I would appreciate ...

-compat = 4

244 byte By raoul_s2001 at 2007-11-25 23:56:00
hi,used compat=4 with my CC command (sparc solaris 2.8, forte 6.2), then transferred the binaries to a solaris 2.6 system. Got some kind of "missing lib**.so" error message when tried. any reason?.Raoul

dbx and jdbx-java

953 byte By amorrowcrcg at 2007-11-25 23:56:01
OK, so its really cool that this works:[code]dbx -V HelloWorld.classSun WorkShop 6 update 2 Dbx Debugger 6.2 Patch 111683-06 2002/05/02Debug target is "HelloWorld.class"Will be debugging "HelloWorld"detected a multithreaded program(jdbx-java) stop at 9(3) java stop at ...

Problems and Workarounds from Sun Workshop[tm] 6 update 2 C++ Compiler Read

874 byte By p014556 at 2007-11-25 23:56:02
Hello out here,the Sun Workshop[tm] 6 update 2 C++ Compiler Readme saysin Chapter E. Problems and Workarounds and Topic 4. Reference From Template to Non-Global File-Scope object is Not Supported:A program using templates and static objects causes link-time errors of undefinedsymbols. The ...

system resources APIs

293 byte By aclcas at 2007-11-25 23:56:03
Is there an api (or apis) I can use within my program to determine system wide: .total memory, .total memory available, .total memory used,.total pagesize,.total pagesize available,.total pagesize used.Thanks-Antonio

SUN C++ Version 4.1 - Missing CD - HELP!!

626 byte By tansonggiap at 2007-11-25 23:56:04
Dear All,One of our customer are still using SUN C++ version 4.1 compiler but unfortunately their SUN workstation harddisk crashed and they are desperately looking for the CD Media to reconstruct the development environment to fix some outstanding bugs ( they misplaced the CD during office ...

test pgm compiles w/ gcc293, but fails with v6 update 2

2487 byte By gpopelka at 2007-11-25 23:56:05
I am trying to get this to compile with Suns CC v6 update 2, but there's a const issue somewhere, I've tried several different const declarations to no avail. I've been trying to get our admins to upgrade to 7.0, but they claim the patches needed for this version break purify...#include ...

dbx: Unexpected RTTI

572 byte By amorrowcrcg at 2007-11-25 23:56:07
After attaching to a running process that dlopens implementation libraries, and running:modules -a -qdbx (Forte 6U2, recent but not newest patches) prints hundreds of messages like the following.dbx: warning: unexpected RTTI for type class OutOfMemoryExceptiondbx: warning: unexpected RTTI for ...

Problem creating shared library using RWTools7

414 byte By lydiatts at 2007-11-25 23:56:08
Hi,Can anyone help me please? Are there any special options (other than -G) I need to use when creating a shared library that utilizes RWTools7? Compiling the same code statically works fine.When creating the shared version I do get an output file but when the library is used later on, I get an ...

C++ 5.0 link error with STL

932 byte By RMunroe at 2007-11-25 23:56:09
This seems to be a common problem, but, even using the suggestions regarding patching the compiler, I have not resolved this issue. If I use any component from the library, I get undefined symbol errors from the linker.For example:$ CC -o hello hello.CUndefinedfirst referenced symbolin ...

How to allocate mem. > 4GB for one process.

757 byte By krishnakumar2 at 2007-11-25 23:56:10
Hi,I just want to allocate & of course use memory more than 4GB of RAM or SWAP for one process. I tried to allocate it both ways:using malloc:* few block having size 1GB each. But, can't cross the limit of 4GB. I even tries by allocating several blocks each of size 1MB, but again same ...

Compilation freezing...

617 byte By MAkinde at 2007-11-25 23:56:11
I'm porting some old software from Solaris 2.3 to Solaris 8 with the SUNWS 5.3 Compiler. For the most part, this has been going without problems - except for two files that for some reason freeze the compiler up - i.e., the compiler simply seems to go into an unending loop on these files.The ...

Preprocessor problems.

1370 byte By cgcurrie at 2007-11-25 23:56:12
I am seeing what appears to be a bug in the C++ preprocessor. It is a difficult problem to describe, but easy to demonstrate. Given the following "code:"$ cat test.cc#define FOO(bar) barone two threeFOO(one two three)#define two()one two threeFOO(one two three)The correct output is demonstrated ...

Automatic thread creation?

855 byte By skapu at 2007-11-25 23:56:14
Hi,While linking a 3rd party library I noticed that my single threaded program was being recognized as multi-threaded by workshop & also the executable had 4 threads running. After some investigation, I realized that this was due to the library having a dependency on pthreads. I was able to ...

SUN ONE studio 7 and Visual C++ ?

360 byte By coolmint at 2007-11-25 23:56:16
I've see somting on http://wwws.sun.com/software/sundev/suncc/index.htmlit says that SUN ONE studio 7 "Continued support for de facto (gcc, Visual C++) and de jure standards (C99, OpenMP) ". Does this Visual C++ mean MS Visual C++, and VC++'s code under windows platform can easisy be ...

Patch problem with Forte 6U2?

976 byte By amorrowcrcg at 2007-11-25 23:56:17
I just installed all of the patches currently up at access1 for Forte 6U2 on solaris 8. When I rebuilt, I got the followingError: The destructor name must match the class name.while building the following code fragment:[code]template<typename T>class table{class node {public:explicit ...

Precompiled headers

333 byte By vivekdeshpande at 2007-11-25 23:56:19
Does the Forte 6 U2 supports usage of Precompiled headers ? If yes what are the options.if not what are the tricks to compile the application faster than it does?As i understand CC supports it on both HP and SGI then why not on SUN?Thanks in advance for any fruitful answers. Vivek.Deshpande ...

Patch 105591 not installing -11 ?

1077 byte By philip_andrew at 2007-11-25 23:56:20
Hi -I installed patch 105591 on my Sparc and it doesn't appear to have installed the 11 part which means that bug 4466915 is bothering me. As you can see from the readme that bug is included in 11.(from 105591-11)4423447 improvements in <string> implementation4466915 istream::read() ...

SunWS 4.2 C++ compiler on Solaris 8

519 byte By martindonaghy at 2007-11-25 23:56:21
Hello,I have heard that the SunWS 4.2 C++ compiler works on Solaris 8 but is not supported. Is this accurate? What risks are there using it?Basically, we are currently using SunWS 4.2 C++ compiler on Solaris 6 and were wondering that if we upgrade to Solaris 8, will this mean the SunWS 4.2 C++ ...

Changing the System Time

318 byte By Ayrangel at 2007-11-25 23:56:22
I am using a SunBlade 1000 and C++ with Workshop 6.1. I would like to change the system time via a program written in C++ without having to log in as super-user. Is that possible ? I was thinking about using the settimeofday function, but according to the man information I only can use it as ...

Changing the System Time

318 byte By Ayrangel at 2007-11-25 23:56:23
I am using a SunBlade 1000 and C++ with Workshop 6.1. I would like to change the system time via a program written in C++ without having to log in as super-user. Is that possible ? I was thinking about using the settimeofday function, but according to the man information I only can use it as ...

A typedef name cannot beused inan elaborated type specifier(C++5.0 /sol2.8)

782 byte By prashanth_philip at 2007-11-25 23:56:27
I am developing a C++ application on Solaris platform . I am using the CC 4.2 compiler and able to compile the code on Solaris 2.6 But I am getting the following error when compiling the same code on Solaris 2.8 using CC 5.0 Compiler ...

Solaris 8

90 byte By egon_schaal at 2007-11-25 23:56:28
Can I develop 32bit Applications under Solaris 8 and execute on Solaris 2.6?

SunWS_cache lock fail problem with StudioOne V7

662 byte By riverdog at 2007-11-25 23:56:29
Hi,I am having trouble with the eval version of CC5.4. When I try to compile the sample program below with "CC main.cpp" I get the error message....SunWS_cache: Error: Lock attempt failed for /u/riverdog/template_test/SunWS_cache/CC_state (errno: 45). Aborting....Any ideas/patches etc? I have ...

WorkShop 6.0 FCS 2001/05/16

8994 byte By p014556 at 2007-11-25 23:56:30
Hello everybody!I wanted to compile a Class Template named SettlementInstructionTransferand received the following result:/opt/SUNWspro/bin/CC -g-features=rtti -compat=4 -verbose=template -instances=extern -template=no%wholeclass,extdef -c -I. -I/usr/local/include -I/opt/sybase/ase12/include ...

Problems installing Sun ONE Studio 7

463 byte By jon@jpassoc.co.uk at 2007-11-25 23:56:31
This has got to be a really dumb problem, but I haven't managed to get my head around it yet. Basically, whenever I try to install the Studio 7 stuff, I get a java.lang.NoClassDefFoundError about the java/awt/toolkit. This happens even if I set -nodisplay.I'm on Solaris 8 on a machine that's ...

Default Link Behavior

1238 byte By bhomrich at 2007-11-25 23:56:32
Greetings all,I'm building a shared library that uses some STL code. All objects are built -KPIC, and the link is being done by CC. We're not building compat, and the lib is built to be dlopen'd by an application later. This occurs on Solaris 2.6, as well as 8, and we're using Workshop 6 ...

forte 6 update 2 download question

544 byte By fred574 at 2007-11-25 23:56:33
I have a valid license for forte 6 personal edition C++ visual workshop. I wanted to upgrade to update 2 personal edition, so I downloaded the tar files from the website. My problem is that when I ran the installer I was only prompted for an installation of the enterprise edition which I don't ...

Forte 6U2, problem: std::string reference counting

1655 byte By amorrowcrcg at 2007-11-25 23:56:35
According to this comment in SUNWspro/WS6U2/include/CC/Cstd/string[code]//// Implementation types (see rw/string_ref)//// __string_ref_type is the type of the string reference that holds// the data for a basic_string. Defining _RWSTD_NO_STRING_REF_COUNT// gets you a basic_string that does not ...

Sun ONE Studio 7 and Workshop

287 byte By riverdog at 2007-11-25 23:56:36
Hi,I have installed the 60 day trial of the Sun ONE Studio 7 compiler collection but cannot find Workshop.Is there a version of workshop to go with it? Did I miss the option on the install or do I need to download another package?Thanks,Richard.

RWCString - Problem

943 byte By idofsuresh at 2007-11-25 23:56:37
I use Rogue Wave Library and iostream in my program. Everything used to work finewhen we were using the compiler version 5.2. Now we use "Sun WorkShop 6 update 2 C++ 5.3 2001/05/15" i.e version 5.3. And the RWCString objectsget corrupted *sometimes*. i.e it has a wrong value. When we revert ...

A C++ bug about do {} while(0) ?

678 byte By libin70 at 2007-11-25 23:56:38
Hi,allWe have found a strange thing about Forte C++ 6.0 update 1.(We use solaris 8 2002/2)When we use do {} while(0); with break or continue ,some objects can not be destructed correctly.It is seem that some optimizations about do {} while(0) structure is wrong.here is a sample :#include ...

istrstream broken

2049 byte By zellster at 2007-11-25 23:56:39
The read() and readsome() members of std::istrstream seem to badly broken. Any read request from offset 0 copies the first character twice, and deletes the last.Test code:#include <cstdio>#include <cstring>#include <strstream>using std::istream;using std::istrstream;using ...

Randomly Interspersed Commas In Output

671 byte By jlenthe at 2007-11-25 23:56:40
Hi,I'm using the Forte 6 update 2 C++ compile to output a large amount of data with cout, and it appears that there are randomly interspersed commas in the output.For example, I may cout an int with a value 1145 and the printed result is 1,,,1,4,,5. This is Insanity !!! There is no discerable ...

RW SrcPro2/Forte6/Solaris8 O4 optimization

414 byte By srip02 at 2007-11-25 23:56:41
hello!We are using RW SrcPro 2. We have performanceproblem at client site with SunOS 5.8and Forte6 built C++ apps. Since we can not migrate to SrcPro 4 now. One option we are looking at is the building RW SrcPro 2 Tools modules with O4 (optimization level 4).I was wondering if anybody else has ...

RPC Client problem

4157 byte By tzach98 at 2007-11-25 23:56:42
I have a core dump at the clnt_call() in the rpcgen generated file xxx_clnt.cI have no idea what is going on, so I will be thankful for any idea.Thanks.This is the pstack:-- lwp# 1 / thread# 1 -- 00024c50 eti_trans_1 (ffbed6e8, ffbede58, 0, fef54a64, 15104, fef6a260) + 58 00024ad4 ...

workshop 6 eserve

338 byte By aoconnor78 at 2007-11-25 23:56:43
I would like to integrate Sun Workshop 6 with an editor, similar to the way it is integrated with XEmacs. Workshop appears to use something called "eserve" to communicate with XEmacs. Is there any documentation available on eserve and how it might be used. Any help would be much ...

Multimap Error in Solaris C++ V5.0

1567 byte By ThomasRJ at 2007-11-25 23:56:44
I am experiencing an error with multimap on the CC version 5.0 compiler.The worrying thing is that this error does not occur on gcc$ gcc -vReading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/specsgcc version 2.95.3 20010315 (release)$ gcc -g -I -fPIC -DOS_SOLARIS -D_REENTRANT ...

dbx is going whacky!

974 byte By jrjsyndeo at 2007-11-25 23:56:45
Running a 32-bit app on Solaris 8. I am using Workshop 6.0 update 2.When I attempt to attach to my process, dbx complains as follows:(/opt/sunws6.0u2/SUNWspro/bin/../WS6U2/bin/sparcv9/dbx) contThere might be too many LWP's in this process.See `help dbxenv' under mt_scalable.dbx: Cannot open ...

I AM NEW TO C++ ON SOLARIS

1017 byte By insigniaconsult at 2007-11-25 23:56:46
Having been a developer in Microsoft VC++ I have now seen the light and am enjoying the stability of Solaris - Doing JAVA and C++ development. I have Java 4 EE and notice that I can use this to edit/debug C++ projects.CAN SOMEONE TELL ME :1. WHERE DO I FIND THE XWINDOW CLASS LIBRARY AND ...

C++ Compiler under Solaris 8

172 byte By yanis97 at 2007-11-25 23:56:47
Hello;I search a good free C++ Compiler under Solaris 8 which supported all objects concepts : template, virtual, ...Best Regards;Djamel;

compilation error with sun workshop 6u2

1632 byte By chtourou at 2007-11-25 23:56:50
hi,i try to compile a systemc code with sun work shop 6u2 but the compilation generate this error Beginning generate/compile...Compilation may take a few seconds... please wait.......ucbcc: Warning: Option -YP,:/usr/ucblib:/usr/ensta/pack/SunWorkShop-6u2/SUNWspro/WS6U2/bin/../lib:/usr ...

shared library can't be loaded by dlopen(), -pic vs. -PIC

1415 byte By joyce_chang at 2007-11-25 23:56:52
I am facing a problem:1. We have a shared library that can't be loaded by dlopen() on one customer's machine.But, the previous version of this shared library can be loaded no problem.As I compared their makefile, I found that the ill one is compiled with -PIC but the good compiled with ...