1368 byte By
Lars_V at 2007-11-26 10:44:05
HiI tried SunStudio Express 2 on RedHat Fedora 5 and got the followingtest.cpp#include <iostream>using namespace std;int main(){ cout << "Hello" << endl; return 0;}CC test.cpp"/usr/include/string.h", line 272: Error: End of file encountered in macro arguments for ...
1056 byte By
Anything at 2007-11-26 10:44:54
Hi,Running Sun Studio 11 and can only get file links in the output window when I run a make command that uses CC -g (debug option). We have integrated other tools into our make system (flexlint, cppUnit..) and even though we make sure that the syntax is exactly the same as the compiler output ...
510 byte By
Lars_V at 2007-11-26 10:45:40
HiCC -VCC: Sun C++ 5.9 Linux_i386 Build27_2 2006/08/02CC -g -c test.cpp >> Assertion: DBGGEN ERROR: FILE="../src/dbg_dwarf2.c", LINE=%7605, DW_DLE_DEBUGINFO_ERROR [DBG_GEN 5.1.18] (../lnk/dbg_dbggen.cc, line 4336)while processing test.cpp at line 0.I can not paste test.cpp here though, ...
2117 byte By
jeffli at 2007-11-26 10:45:49
The raw data gets from the device in endian neutral format. I want to build a common subroutine to convert it in little endain before to copy data out in a structure (don't care how the structure is defined). For example, a 16-byte of data from the device Byte_0 _1 _2 _3 _4 _5 _6 _7 _8 _9 _A ...
679 byte By
Kanki at 2007-11-26 10:46:02
Hi Allwe have been facing problem in Sun ONE Studio 8 installed on solaris 10.problem is as followspath: /opt5/SUNWspro/bin/analyzerI am trying to use analyzer in the following way.1. "/opt5/SUNWspro/bin/collect /dvobs/fp/rhythm/rhythm_server -dir . -custom_dir . -port 3434 -timer -progress ...
764 byte By
Nergal at 2007-11-26 10:46:06
If I compile my libraries into shared objects, how is the Solaris system handling them...If I first compile one version of the library and calling it lib.so1, then after a while I've changed a lot and compile into a new shared object that I call lib.so2. What happends if the system that runs ...
I am using [b]Sun WorkShop 6 update 2 C++ 5.3 2001/05/15[/b] compiler to configure STLport 5.0.2 on Solaris 8. I am getting following errors. [b]"../../stlport/stl/_cmath.h", line 229: Error: fabs is not a member of file level. [/b]Any clues? Just to cross check that after ignoring this error ...
1806 byte By
Sara_Kan at 2007-11-26 10:47:22
Hey all, here is the small deque program...When this program was run for upto 529 entires it works fine. When tried for 530 entries it dumps core.By the way instead of push_front if we use push_back, it works fine. However, we are facing this problem with Sun ONE Studio 11 after our successful ...
289 byte By
kooka at 2007-11-26 10:47:56
HiI develop applications on Linux with C & Fortran (gcc and g77) mixed. I am looking at Sun Studio 11 for a visual environment for project building/debugging. Can Sun Studio handle mixed languages? Will the debugger work for both gcc and g77?Thanks for helping me.
672 byte By
quisam at 2007-11-26 10:48:14
Hi,I get the following error message:CC -c -I../../include -I../../build/debug/include -DBM_CORE_API_EXPORTS -I.. -mt +p -library=stlport4 -features=extensions -features=tmplife -features=tmplrefstatic -Qoption ccfe -complextmplexp -xldscope=hidden +w -erroff=hidef -g -xarch=amd64 -KPIC ...
HiI have build xerces_2_7 source (64-bit mode)on Solaris sparc(5.8) using SunStudio 8compiler version (CC: Sun C++ 5.5 Patch 113817-14 2005/07/19).I am getting problem in xerces library here is the stack tracesignal BUS (invalid address alignment) in realfree at ...
We have forte 6.2u2 version of C++ compilers in our Solaris 5.9 development & production machines(SPARC) . All of the production codes were compiled with this version.If we want to use the latest version of Sun Studio compiler:1. Can the older version exist together with the new one?2. Do ...
2458 byte By
moh_muj at 2007-11-26 10:50:35
Hi, I have a core dump which does not seem to be a problem with my code. Can you please explain is this a problem with the programming and what is the probable cause for these kind of core dumps ?Its on solaris 8. CC: Sun WorkShop 6 update 1 C++ 5.2 Patch 109508-03 ...
666 byte By
rskelton at 2007-11-26 10:51:04
Hi,I have installed Studio 11 onto my Sun V490 running Solaris 9 9/05 with Patch cluster from Sep/14/06I can't use the debugger as it stops while reading libc_psr.so.1:-Reading ld.so.1Reading libc.so.1Reading libdl.so.1Reading libc_psr.so.1I have loaded the latest Studio 11 patches ...
863 byte By
Zparkle at 2007-11-26 10:52:17
I need to continue to support Solaris 7 through Solaris 10 for some of our C-based programs. Up until recently, I have been using Sun Workshup 6 Update 2 for which I only have the license for the C compiler (not the C++ compiler).I have started using Sun Studio 11 and the new C/C++ compiler ...
528 byte By
kumar110 at 2007-11-26 10:52:51
Hi,We are using sun studio 9 on Solaris 9. If an exception is thrown in the application, even though there is a try/catch block, the application is dropping core.Any one has any idea on this kind of problem. If I write a simple application everything is working fine. But in the actual ...
391 byte By
Joakim at 2007-11-26 10:52:54
I have an application with a mutex dead lock. This program is compiled with CC and the flag 杇.With pstack(pid) I get a proper stack dump with symbol names and hex addresses.Is there any way to resolve those hex addresses to line numbers from the source file?GNU got a tool named addr2line which ...
1953 byte By
Adina at 2007-11-26 10:53:12
Hello,I'm wondering if Unstudied has an equivalent option to gcc Code Generation Optionscalled -finstrument-functions ?Following is the definition of this option :-finstrument-functionsGenerate instrumentation calls for entry and exit to functions. Just after function entry and just before ...
317 byte By
Chanak at 2007-11-26 10:53:52
Hi all..........I am trying to send message from IBM MQ to a MDB via Service integration bus. I tried to create a link between MQ and Service integartion bus but it is not working will any one of you help me in that.The job is Sending a message to a MDB from IBM MQ via an Service Integration ...
Hi,Does the nmatrix class in the Sun Interval Library have provision for matrix inversion?Thanx,Balaji.
384 byte By
Red1One at 2007-11-26 10:54:45
Hi, I need some help!I downloaded and installed Java runtime 1.5.0_06 from official Sun website.I downloaded Football manager 2007 but, when i tried to install it, I get this message:Error in instructions. Invalid jvm file name specified in LAUNCH.Invalid variable specification. Line number ...
1957 byte By
huoq at 2007-11-26 10:54:59
Hi,Is the following valid C++ code?$ cat smember.htemplate<typename T>class TC{public:static const unsigned sSize;static const char* sName;};$ cat smember.cc#include "smember.h"namespace { int unused; }$ cat smain.cc#include <iostream>#include "smember.h"class X {};template<> ...
Good Afternoon,I was wondering if it's possible to apply a patch to Sun Studio Express. If so, how would I go about it?A patch was recently released for the Studio compiler back end which may address a bug I've been experiencing and I wanted to give it a try.The patch is 120759-08.Thanks in ...
706 byte By
dj-joek at 2007-11-26 10:55:20
Hi All, I have a SunBlade 1500 running Solaris 9 and I need to work with several versions of the Sun Studio C++ compiler. I am linking to "/usr/lib/ libCstd.so.1". The install directory /opt/SUNWspro DOES NOT HAVE the file "libCstd.so", it only has symbolic links as /opt/SUNWspro/lib/libCstd.so ...
hello all,i'm in search of something equivalent to printstack for C progrs.On intel compiler, it exists tracebackqq()Thanks in advance,gerard
767 byte By
huoq at 2007-11-26 10:56:31
Hi,I think the following is valid C++ code. The default parameter of template (member) function should not be instantiated until it is actually required. Is it a bug of CC?$ cat enumid.cctemplate<class T>class TClass{public:void f(int i = T::EnumID);};class Unknown;class ...
Can SunStudio 11 be installed on a server and then run from other workstations via NFS? Thus it would not be necessary to install it on all development systems - just the server.Thank You
227 byte By
dyroro at 2007-11-26 10:58:07
When I compile program with CC -g -mt -I../ZLib -c XScenar.cppFailure in /opt/SUNWspro/prod/bin/fbe, status = 0x7f00Fatal Error exec'int /opt/SUNWspro/prod/bin/fbegmake: *** XScenar.o Error 1
48 byte By
dyroro at 2007-11-26 10:58:44
I can not find this.thxbest
291 byte By
dyroro at 2007-11-26 10:59:56
code:#include <map>int main(){std::multimap<int, float> coll;coll.insert(std::make_pair(2, 22.3f));return 0;}compile with CC command . get some errorcompile with g++ command. OKwhy?BestD.Y
Hi guys, I m actually trying to install SunStudio on a Gentoo x86 platform.I previously emerged app-arch/rpm and made a link as suggested here: http://forum.sun.com/jive/thread.jspa?threadID=72345More precisely, i did this:#ln -s /usr/bin/rpm /bin/rpmThen I ran the installer, selected the EN ...
Hi,I am moving my C++ program library code etc to new version of Compiler Sun Studio 9 from Sun Forte Developer 7 complier.When I am trying tomake my string class library I am geting following errors [b]with or without[/b] compat=5 flag.Please help me to compile my library code using new ...
375 byte By
dyroro at 2007-11-26 11:02:17
Solaris10 X86, SunStudio 11Memory 1G, Hard disk 80G, capacity 20%Swap 3G. and added two 2G files to swap ,so the swap is 7Glink status:swap:6806708k Time:20:16 startswap:5898408k Time:20:17swap:5704824k Time:20:21swap:5568060k Time:20:28errorlink error:/dev/zero: mmap anon failed: Not enough ...
We are in the process of upgrading from Forte 6update2 to Studio 11. Some of our code that compiled previously will no longer compile. Is there a workaround? Below is a simple example that illustrates our problem:#include <iostream>using namespace std;template <class T>class prits : ...
we are trying to discover the cause of a memory leak that we have on our application. the application is Java application (WebLogic instance) which load some native libraries.i installed the sun studio 11 on Solaris 5.8 sun4u sparc. i installed the patches: 120761-02, 121023-01, 121023-02, ...
683 byte By
huoq at 2007-11-26 11:04:00
The following code passes g++, but fails on Sun CC 5.8class C {public:void fv();void fc() const;};typedef void (C::*C_FUNC)();typedef void (C::*C_CONST_FUNC)() const;int main(){C_FUNC f1 = &C::fv;C_CONST_FUNC f2 = &C::fc;C_CONST_FUNC f3 = ...
We have a C++ application that we migrated from Studio 8 compiler to Studio 11 compiler. We use the same compiler options. The application is running about 40% slower. We have applied all the latest patches required by the S11 compiler. It is running on Solaris 8 on Sparc. The compile line ...
Hi,I have upgraded my C++ compiler to Sun Studio 9 Sun C++ 5.6 from my earlier Sun Forte Developer 7 Compiler.After initial errors while compiling my string class library, I got it compiled using -library=iostream I am still having problms using my C++ program.My program getfile.c in C++ ...
922 byte By
yongsun at 2007-11-26 11:05:18
I am porting some gnu and opensource project to solaris, and may want to integrate them to solaris distribution as part of JDS (gnome). I am using sunstudio 11, but it does not support VLA in C++ code. BTW, I also met a strange problem, void test (Foo* &obj) {}//void test (Foo* const ...
342 byte By
Sara_Kan at 2007-11-26 11:06:11
We are turning on optimization. It takes a while to compile. I was thinking of suggesting to move the compilation to AMD-Solaris boxes. Is there any issue with compiling with xtarget=ultra3 in AMD-Solaris boxes.Is there is any drawbacks using AMD-Solaris combination? Is there is any white paper ...
our application is suffers from a severe memory leak. the application runs on Weblogic that uses the severe container and access Oracle DB.the JAVA heap was monitored for several weeks (using the verbose gc flag) and no leak was discovered. we monitored the native heap (by using the pmap ...
592 byte By
luoyi82 at 2007-11-26 11:07:30
I have used ANSI C to implemented a two-trie data-structure. and tried to instert 240K+ string into it. below is my bench result with suncc & intel c & gcc:(GCC) 3.4.6 real1m5.648suser1m5.652ssys0m0.004siccreal1m3.656suser1m3.652ssys0m0.012ssunccreal1m14.841suser1m14.809ssys0m0.012swe ...
I have Mot_OMCR_R19_Children.cxx file. The file a quite large. Forte 6.2 compiler takes about 9 minutes to compile it, whileStudio 11 compiler is not able to compile this file. After a long work, it builds totally corrupted object file without any additional diagnostics. Then this file could ...
I have 10 cxx files, which I compile with Forte 6.2 and Studio 11. What was surprise for me, that Forte 6.2 requires 24 minutes to compile the files, while Studio 11 - 35 min. The machine is Sun v440 server with 4 CPUs and 8 Gb RAM.Can you help me some ideas, what caused the compilation time of ...
409 byte By
hdbaddog at 2007-11-26 11:08:49
Greetings,I changed the directories to install to from /usr to /opt/sunj2re and it still triesto put files in /usr/local.At our location /usr/local/ is automounted and we don't have write permissions tothat file system (Yeah. I know local should equal local).Is there anyway to install sun ...
75 byte By
DicE at 2007-11-26 11:08:59
maybe some tutorals or a beginner program would be helpful! ThankYou
Hi,I want to create a patch for my own application(binary executable) written in c++ for solaris10. I have tried with the diff and patch commands, but it is applicable only for source codes.please help me...Thanks.
1217 byte By
Maleze at 2007-11-26 11:09:44
Hello,When using template template argument on template methods, it looks like CC 5.8 (patch 121017-05) has troubles when explicitly qualifying this argument as illustrated by this test-case :class Object{};template <class T>class LinkVstr{};class Tst{ public:template ...
Hi,Does anyone know if boost::is_array<T> works with any particular versions of the Sun CC compiler?I am using version 5.6(2004/06/02) and boost::is_array never seems to return true, even when passed an array type. For example: -#include <boost/mpl/identity.hpp>#include ...
387 byte By
gregByrd at 2007-11-26 11:10:31
I'm trying to compile C++ code with OpenMP directives. I'm using a university-installed Studio 10 (C++ 5.7).The compiler says that it can't find <omp.h>. Could this have somehow been installed without OpenMP support? Where should this header file be?This is how I'm invoking the ...