In Jsp...

61 byte By gvmani at 2007-11-26 11:49:51
In Jsp hw to use a protected method of a single class?

dbx and prettyprint of several values

478 byte By willoch at 2007-11-26 11:52:19
if I do in dbx a :[code](dbx) print -p rr =1.414214[/code]it calls my db_pretty_print routine and prints it nicly.But if I do[code](dbx) print -p r,a2r = {x = 6521908889953566720U}a2 = {x = 1152921504606846976U}[/code]it prints it without prettyprint.All the other modifiers to print works ...

tool to check memory leak

251 byte By willwangling at 2007-11-26 11:54:14
One of tmy applications has memory leak sometimes, not always. I find most tools to check the memory leak needs to reproduce the leak, but now I can not reproduce this issue, is there any tool to analyze the source code to find the memory leak?

compiling issue with sun studio 11

5711 byte By jeevan.kr at 2007-11-26 11:54:47
I am am trying to compile an application on Solaris 11 x86 using sun studio 11 compiler suite. I get the following errors when I compile a file called Terminal.cpp.<snip>"../libs/libFreeMat/Types.hpp", line 56: Warning: Identifier expected instead of "}"."/usr/include/curses.h", line 141: ...

Remove reference to register_exit_code

597 byte By FredStock at 2007-11-26 11:54:55
I'm trying to compile a kernel module for Solaris 9 which contains C++ code. I'm compiling with the Sun Studio 11 compiler. One file declares some global variables that are C++ class types. It appears that within the constructors for some of these classes the compiler generates a reference to ...

C++ application cores Studio11 dbx

1095 byte By Zootle at 2007-11-26 11:55:17
I'm attempting to debug a client's C++ application, but dbx dumps core either loading or running the application.The stack trace from the dbx core is:main(0x2, 0x8046ecc, 0x8046ed8)0x80f6dd3(0x837e5c0, 0x8469e88, 0x8046e54)targ_ppi_init(0x837e5c0, 0x8046e54)0x81ffc88(0x837e5c0, ...

pmap question

916 byte By yakovyu at 2007-11-26 11:56:31
000100007968K r-x-- /export/home/home0/corems_V0.2.2.0/TEST/DMNG/ElementManager_cm100Hi,I would like to understand the information returned by the pmap tool, and more precisely how can I get more details about the source of such heap (65Mb). Is there any way to understand what library is ...

Speed comparison (AMD64) between sunf95, ifort, gfortran and NAG f95

1105 byte By TobiasB at 2007-11-26 11:56:32
Hello,I compared the current GCC Fortran Compiler (gfortran; 4.3.0-trunk) with the Sunstudio Fortran Compiler (sunf95), the Intel Fortran Compiler (ifort) and the NAG f95 compiler using the Polyhedron Fortran Benchmark suite. http://physik.fu-berlin.de/~tburnus/gcc-trunk/benchmark/sunf95 is ...

bizarre extra header file inclusion

1488 byte By herteg at 2007-11-26 11:59:33
I've got a program foo/foo.cc, that includes the following code, stripped down for clarity:#include "../bar/bar.h"func (){update_status = update_jobs_table <SequenceIndex, Job_list_by_Sequence::const_iterator>(jobs_table_update_statement, Normally_Changed_Job_list, ...

mail box program

1343 byte By night_rider at 2007-11-26 11:59:34
Hi all,This is my first thread in this forum. I have been given this c program assignment to be impelemented but i don't know how to do it! i write korn shell only. Any help is appreciated.This assignment is to be written in the C programming language. You will implement a mailbox abstraction ...

labs and llabs not inlined

186 byte By willoch at 2007-11-26 12:00:11
With latest (and assume all) studio compilers labs and llabs are not inlined.Is this just something somebody has forgotten, or is it some deep C standardexplanation?

Using performance counters on the Niagra

762 byte By John_C at 2007-11-26 12:00:14
I need to profile some applications running on Niagra. In particular, I'd like to be able to monitor cache misses.I found this post, which has me somewhat concerned: http://forum.sun.com/jive/thread.jspa?forumID=309&threadID=94383The post seems to suggest that profiling on Niagra is ...

mail box program

1343 byte By night_rider at 2007-11-26 12:02:31
Hi all,This is my first thread in this forum. I have been given this c program assignment to be impelemented but i don't know how to do it! i write korn shell only. Any help is appreciated.This assignment is to be written in the C programming language. You will implement a mailbox abstraction ...

unable to install studio11

1060 byte By stevenyanzhi at 2007-11-26 12:04:42
i tried to install the studio11 in my linux machine, i typed ./installer as said in the installguide, but it show an error like this:InvocationTargetException in ArchiveReader constructornulljava.lang.reflect.InvocationTargetExceptionat ...

Can I inform to the aplicacion form Runnable?

553 byte By davilinra at 2007-11-26 12:23:52
I have an application that runs a Runnable like this. The runnable calls some method each 5 seconds perfectly, but i want that the general aplication (the main thread that runs the application) was noticed. Because the execution of runnable continues without problems but the application is not ...

Can I inform to the applicacion from Runnable?

550 byte By davilinra at 2007-11-26 12:23:58
I have a application that runs a Runnable like this. The runnable call some method each 5 seconds perfectly, but i want that the general aplication (the main thread that runs the aplication) was notified. Because the execution of runnable continues without problems but the aplication is not ...

Help !!Can't compile C++ in netbeans

324 byte By LechgiFa at 2007-11-26 12:33:16
My os is solairs 10 x86use netbeans to compile C++ project,but it doesn't workoutput is Running "" -f Makefile CONF=Debug"" in /mnt/win/JAVA/Args1/opt/netbeans-5.5/cnd1/bin/stdouterr.sh: -f Makefile CONF=Debug: Can't findBuild failed. Exit value 1.who can help me with ...

source line mapping in .s

502 byte By _s_r_s_a at 2007-11-26 12:34:07
Hi,I use CC compiler on Solaris. -S option to earlier version of CC used to provide a mapping between the C/C++ source line number and the equivalent assembly code. But the version of CC available with me doesn't provide source line number in .s anymore. I need this mapping to be able to ...

Need help linking (Sun Workshop 6 CC)

959 byte By securehella at 2007-11-26 12:39:58
Hi list,I am experiencing a problem with exporting functions in a shared library that I am building with Sun Workshop. I am compiling my C code using the following format:/opt/SUNWspro/WS6U2/bin/cc -c -mt -xO4 -Kpic -s -misalign -xCC -xchar -xipo -D_REENTRANT -I./INCLUDE -I./PLATFORM/INCLUDE -o ...

next release of sun studio

51 byte By chandona at 2007-11-26 12:52:17
When is the estimated release of sun studio?

Debugging

392 byte By chandona at 2007-11-26 12:52:18
Hi,I am working on a program in C++ on solaris 10, i was able to compile the source codes in netbeans and did debugging using gdb 6.5. Later i moved in to sun studio 11 and tried using dbx to do debugging but the dbx debugger crashed out.stating dbx: internal error: signal SIGSEGV (no mapping ...

How to do inline assembly with cc

241 byte By mpfeifer01a at 2007-11-26 12:55:16
Hi,i was looking for information on how to exactly formulate inline-assembly statements with the c compiler. However there were no usefull information available. Can you please point me to some locations, please.matthias

Express-2 issues

1938 byte By juborka at 2007-11-26 13:01:48
Hi,After installing Express 2 on my Gentoo distros (amd64 and x86),I noticed the following problems :1. prod/bin/ipo (possibly other executables too) have /usr/bin/bzip2hardcoded. On Gentoo however bzip2 is usually in /bin/bzip2,so the best bet would be to put in executables only ...

Sun Studio Express Program December 2006 Build available

153 byte By SunCProjectLeada at 2007-11-26 13:05:36
Sun Studio Express Program December 2006 Build availablego get it now ... http://developers.sun.com/prodtech/cc/downloads/express.jsp

Sun Studio Express Program December 2006 Build available

153 byte By SunCProjectLeada at 2007-11-26 13:05:37
Sun Studio Express Program December 2006 Build availablego get it now ... http://developers.sun.com/prodtech/cc/downloads/express.jsp

Sun Studio Express Program December 2006 Build available

153 byte By SunCProjectLeada at 2007-11-26 13:05:38
Sun Studio Express Program December 2006 Build availablego get it now ... http://developers.sun.com/prodtech/cc/downloads/express.jsp

Sun Studio Express Program December 2006 Build available

153 byte By SunCProjectLeada at 2007-11-26 13:05:39
Sun Studio Express Program December 2006 Build availablego get it now ... http://developers.sun.com/prodtech/cc/downloads/express.jsp

Sun Studio Express Program December 2006 Build available

153 byte By SunCProjectLeada at 2007-11-26 13:05:40
Sun Studio Express Program December 2006 Build availablego get it now ... http://developers.sun.com/prodtech/cc/downloads/express.jsp

sunCC doesn't support -xMD

788 byte By luoyi82a at 2007-11-26 13:06:42
luoyi@slack$ sunCC -VsunCC: Sun C++ 5.9 Linux_i386 Build35_2 2006/12/04luoyi@slack$ sunCC -fast -xMD main.ccsunCC: Warning: Option -xMD passed to ld, if ld is invoked, ignored otherwise/usr/bin/ld: unrecognized option '-xMD'/usr/bin/ld: use the --help option for usage informationsame things ...

studio11-sol-sparc.tar.bz2 can't decompress

69 byte By teamsun1a at 2007-11-26 13:10:53
studio11-sol-sparc.tar.bz2 can't decompressCRC failure

invalid -xinstrument=datarace compile parameter

1034 byte By lishena at 2007-11-26 13:14:55
Dear allI am doing some research on the data race issue and trying to use DRDT (Data Race Detection Tool). I just follow the instructions in the Sun's website, But the process break at the first step:When I used the following command tp Instrument the source code:[b] CC -xinstrument=datarace ...

Unexpect Exception when creating new files

275 byte By LePoissona at 2007-11-26 13:17:44
I've just installed Sun Studio 11. It didn't recognize jdk1.6, so I switched to jdk1.5.0_10.But when I wanted to created C files, I received an unexpected exception, and sometimes the file was created, sometimes not.What's the possible reason? Thanks.

macros with named variadic argument

311 byte By Marc_Glissea at 2007-11-26 13:19:12
sunCC supports variadic macros. suncc also supports the gcc extension that allows to give a name to the '...' argument (other than __VA_ARGS__). Could this be added to sunCC as well? It is used everywhere in the linux kernel, and one often has to include (indirectly) linux headers in C++ code ...

ir2hf: Assert has been violated

527 byte By jancheza at 2007-11-26 13:19:23
Kind of an odd one.I compile a program like this:struct test {volatile int member : 15;};void f (void){ struct test temp; temp.member = 1;}with cc -fast -xarch=amd64 test.c -c -o /dev/nulland get this error:ir2hf: error: Assert has been violated at ...

Help C++ and C library

999 byte By zyren98@yahoo.com.sga at 2007-11-26 13:20:25
I got the source of one program,and compiled it,I noticed that different library (C++ and C)linked to this program,any one may help to understand why?In fact,I want to keep C library only because it exists on all workstation but C++ has to be installedOld file information-# ldd ...

IDE with gcc

125 byte By neerajrathi2a at 2007-11-26 13:31:45
Hey I am looking for an IDE with inbuilt gcc compiler which could be run from SOLARIS Machine. Somebody please help me

How to check udp buffer overflow in solaris10

906 byte By saravananma at 2007-11-26 13:35:06
Hello All,We have developped a C++ application which uses connection based udp socket for transfering the data between two solaris10 machines. The data transfer takesplace for every 20 min and continues for about 1 min. The total no of udp sockets i am using is more than 1200. During the time ...

Porting issue in Solaris.

1370 byte By ajith_prasada at 2007-11-26 13:36:13
I've a code which is compiled in a solaris 32 bit system and compiled with the option CCGNUFLAGS=-xarch=v8 -xcache=16/32/1:1024/64/1 -xchip=ultra +d -instances=static ( which i guess means , it'll run as a 32 bit application ) .. These object files are unzipped and linked on a sun OS 5.8 ...

map issue using the old/default std

1022 byte By stephen_ba at 2007-11-26 13:36:31
Please, help with the following simple compilation***********************************// print_routines.cpp#include <map>#include <string>int main(){std::map<const std::string, bool> fred;return 0;}********************************-bash-3.00$ CC ...

map issue using the old/default std

1024 byte By stephen_ba at 2007-11-26 13:36:35
Please, help with the following simple compilation***********************************// print_routines.cpp#include <map>#include <string>int main(){std::map<const std::string, bool> fred;return 0;}********************************-bash-3.00$ CC ...

Error Parser does not work, even in SSX3

932 byte By PAPa at 2007-11-26 13:37:34
SunSudio Express (December 2006 release) introduces some interesting new features, but there are still problems. For the first time, I was able to debug Fortran 90 applications in Linux, but debugging is still very limited. Furthermore, the Fortran error parser does not work, even when ...

Sun Studio workshop launch error..

179 byte By AGADGILa at 2007-11-26 13:40:19
When trying to lauch sunstudio I get the following error,Error: Cannot find NetBeans 3.5R releaseAny idea how I can resove this?Regards,Abhijeet

Getting java.lang.NoClassDefFoundError installing Studio 11

2300 byte By Bruce.Junttia at 2007-11-26 13:42:23
Hi all,I'm hoping somebody can assist me getting Studio 11 (latest version for SPARC) installed on my Sunblade (a 150). I'm installing it as myself.I'm running the JDK version 1.6.0 as shown below. CLASSPATH isn't set but it wasn't set on my other machine (an Ultra 2) and it apparently ...

Support for "likely" and "unlikely" condition branch annotations

491 byte By theMAGEa at 2007-11-26 13:48:58
Hello,Does SunCC support "likely" and "unlikely" condition branch annotations? GCC has a construct "__builtin_expect" that can be used to define these two macros:# define likely(x)__builtin_expect (!!(x), 1)# define unlikely(x) __builtin_expect (!!(x), 0)and these macros, when used in a ...

-xlang=c99 support under Linux?

717 byte By hertega at 2007-11-26 13:50:43
Trying to keep some code portable between Solaris and Linux, I decided to try theDecember build of Studio Express on Linux. Now I'm getting a strange error, herestripped down to bare essentials:% uname -aLinux ferrari 2.6.9-42.EL #1 Wed Jul 12 23:15:20 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux% ...

Studio Express under Linux can't handle <string> header

3736 byte By hertega at 2007-11-26 13:50:44
I'm seeing a problem with the December build of Studio Express under Linux.Stripped down to bare essentials, it looks like this:% uname -aLinux ferrari 2.6.9-42.EL #1 Wed Jul 12 23:15:20 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux% cat foo.cc#include <string>int foo (){return 0;}% CC ...

Dec 2006 Studio Express is missing -lrdthooks

573 byte By hertega at 2007-11-26 13:52:30
Evidently, the user API for the Data Race Detection Tool has been modifiedin the Dec 2006 release of Studio Express. As a result, the -lrdthooks libraryis no longer available, and the available routines have changed (see Section 7of the Thread Analyzer Tutorial at ...

mktime problem

934 byte By 13Scorpioa at 2007-11-26 13:54:22
I am using mktime function to convert time from UTC to local time. All is going well until the year changes. Apparently mktime convert the year to the system current year and not year passed in the time_t struct.For example if i input the year of 2008 it will return the year 2007.I am using the ...

crash on dlopen a dldumped library

968 byte By jxlua at 2007-11-26 13:57:03
Hi folks,I am trying to find a way to achieve faster startup and better runtime performance for a library. I built a non PIC version of a library and I found the runtime performance is much better than the PIC version. However, it comes with a cost for startup, the huge relocation overhead. ...

template instantiation and constants

655 byte By Malezea at 2007-11-26 14:00:47
When trying to instantiate member templates, CC 5.8 Patch 121017-07 apparently generates twice symbol names it has already seen. Hereunder is a test case.CC -I. -c bugTmplInst.cc results in :Error : Multiple declaration for MYCONSTIs this behaviour normal ?Regards,PHbugTmplInst.hclass Exmpl{ ...