Mix PIC code and Non-PIC code

709 byte By jxlu at 2007-11-26 11:11:55
Hi folks,I am trying to mix PIC and non-PIC code into one shared object library since some of the modules have significant amount of PIC overhead (it accesses a lot of global data and invokes a lot of external functions). The library works fine on Solaris 10 x86 platform, but I got the ...

Error: A member cannot be initialized except in a constructor.

797 byte By CamiloGonzalez at 2007-11-26 11:13:00
Hello everybody.I have this compilation error:"include.H", line 5: Error: A member cannot be initialized except in a constructor.in a line that look like this:const char * const LABEL = "Label";and even more, just when the compiler is going to compile the first class declaration, that is a line ...

%REF error

1403 byte By beggio at 2007-11-26 11:13:11
I am not a developer, but rather a system administrator, and I was asked to try and help with this problem. Does someone see anything obvious causing the resulting error, or is more information required? This is Forte Developer 7. Thanks in advance for your time and effort.The user appears to ...

mixed language programming

1843 byte By fireman.sparkey at 2007-11-26 11:14:05
Ok I have just realised that the search forums thing didn;t work for me and there was a post before asking a similar question. I guess that means no compilers come with the package and you have to use the ones with linux. Will the mixed language features work with g95? is that a supported ...

Loki wont compile under Sun Studio

3925 byte By nivenfres at 2007-11-26 11:16:44
http://sourceforge.net/projects/loki-lib/I haven't had a trouble compiling software using the Loki Library in Microsoft Visual Studio 2005 in Windows XP and gcc using cygwin and solaris. I haven't been able to get it to compile using the CC compile from Sun Studio ...

LD_LIBRARY_PATH setting for a typical compiler installation

462 byte By sebor@roguewave.com at 2007-11-26 11:17:01
What is the setting of the LD_LIBRARY_PATH environment variables (all three forms, i.e., including the ones with the _32 and _64 suffix) we can expect on a typical Sun C++ installation on SPARC? Can we expect only LD_LIBRARY_PATH to be set or do thesuffix forms get defined as well (or instead)? ...

Express Studio on Linux

272 byte By shizoomwang at 2007-11-26 11:17:28
I installed Express 200608 on my Linux PC. When I type f90, I gotGLIBC-2.3.4 not found. I checked my /usr/lib/gcc-lib, it is 3.2.2. My kernel is 2.4.20. Could any one please tell me why my Express Studio is not working?Thank you. Shizoom

SUnStudio 11 startup error

5085 byte By Rouletabille at 2007-11-26 11:18:41
Hi,When I start sunstudio 11 , I get an Exception Error popup with various errors (see ide.log file content below) then nothing happens ("sunstudio" command does not exit).>Log Session: Tuesday, November 7, 2006 5:27:59 PM CET>System Info: Product Version= Sun Studio 11 (Build 20050910) ...

Uncaught exception in solaris using sun 5.4 c++ compiler

8726 byte By cursbambno at 2007-11-26 11:19:07
I have built a shared object library that throws an exception. When this shared object is called by one of the companies we work with, the exception is never caught and core is dumped. On our system the exception is caught. On linux and windows, the exception is caught. I am building the shared ...

Sunstudio 11 debugger slow response

518 byte By benniju at 2007-11-26 11:19:37
In attempting to debug code in a shared library containing both .c and .cpp files (.c compiled with cc and .cpp with CC), the dbx response from within the IDE debugger on a single step command is much longer than from within a .cpp file. It can take as long as 10 seconds for the next dbx prompt ...

sunperf library - dgetri

1738 byte By Olda79 at 2007-11-26 11:20:24
Maybe i only use sunperf library bad, but i can't use dgetri without error. Just little example:[code]#include <sunperf.h>int main() {const int n = 3;double A[n][n];A[0][0] = 1; A[0][1] = 2; A[0][2] = 3;A[1][0] = 4; A[1][1] = 9; A[1][2] = 14;A[2][0] = 6; A[2][1] = 14; A[2][2] = 23;int ...

Features of Studio 11

94 byte By hgopu at 2007-11-26 11:20:48
HiWhat are the new features in studio 11 especially regarding memory management.

shell trap builtin in make rules

801 byte By sebor@roguewave.com at 2007-11-26 11:21:05
Given the makefile below I expect the output of the echo command in the trap handlerto be 1. On Solaris with both the default and the POSIX shell the output is actually 0.However, using Bash gives me the expected result. Could someone help meunderstand which behavior conforms to the POSIX ...

Energy Act of 2005 and Daylight Savings Time

497 byte By PaulThompson at 2007-11-26 11:21:22
We currently use Sun Studio compilers. We use the embedded tools.h RogueWave libraries. The Energy Act of 2005 changes the dates for Daylight Savings Time starting in 2007. Will there be any patches from Sun to handle this? We currently use RWZoneSimple which is extensible, but we were hoping ...

Studio 11 compile old code issue

855 byte By icesummit at 2007-11-26 11:26:52
I have an old file which can successfully compile with forte6.2. But when I tried to compile with Studio 11, I encountered the following errors.[exec] /opt/tools/wh/dtd/sparc-SunOS5/sunstudio/11/SUNWspro/bin/CC -Xa -G -I/vobs/project/thirdparty/current_jdk/solaris/include ...

Studio 11 compile old code issue#2

498 byte By icesummit at 2007-11-26 11:27:05
Again, under the forte6.2, the old code can be successfully compiled. But under Studio, a new warning is raised:/vobs/cooperation/thirdparty/lib/APIPublic.hxx", line 337: Warning: declarator required in declaration.1 Warning(s) detected.And line 337 is only a typedef declaration:16#include ...

SIGSEGV within ternary operator when used std::string, Sun C++ 5.8 2005/10/

532 byte By mb78 at 2007-11-26 11:27:12
Hi,I found that this simple program is crashing regularly:[code]//#include <string>using namespace std;typedef string A;A fn() { return (0 ? A()+A() : A()+A()); }int main() { fn(); }//[/code]If I replace string by some other class, e.g. my own that implementsdefault and copy constructor ...

Problems with multithreading

979 byte By artkul at 2007-11-26 11:27:42
Hello everyone,I have to integrate (link) my routines to commercial software which was compiled with Sun One Studio 9. I have a reference version compiled several months ago working just fine. After recent updates on our Sun Fire 15K StarCat (Solaris 9) managed by our administrators I tried to ...

dbx eroor

875 byte By Kanki at 2007-11-26 11:28:03
Hi AllI am getting following error while using dbx on Sun Studio11Reading /usr/lib/sparcv9/ld.so.1Reading /lib/sparcv9/libsocket.so.1Reading /lib/sparcv9/libnsl.so.1Reading /lib/sparcv9/libdl.so.1Reading /lib/sparcv9/libm.so.2Reading /usr/lib/sparcv9/libCstd.so.1Reading ...

new and delete

468 byte By Sara_Kan at 2007-11-26 11:31:11
I have issues with Array Bound Read Error with purifier for string variables. This is happening only after optimization. I would like to override global new and delete... The class level scope overriding will not solve my problem. Is there anyone have any suggestions on how to override global ...

Spurious deallocation run-time errors

941 byte By mark.douglas at 2007-11-26 11:32:34
Hello,I am getting the following error when running my program: ****** FORTRAN RUN-TIME SYSTEM ****** Error 1183: deallocating an unallocated allocatable array Location: the DEALLOCATE statement at line 39 of "vangle.f90"This error occurs after the program has otherwise successfully completed, ...

C++ compiler cannot determine correct template function for arguments

1855 byte By rtarnell at 2007-11-26 11:33:15
I have the following code:[code]#include <cstdio>struct true_type {char type;};struct false_type {int type;};struct has_foo_p {template <typename T, void (T::*) (int) const = &T::foo> struct test {typedef true_type is_true;};};template<typename Pred>struct test_c ...

where to get simple compilers, interpreters coded ic C

111 byte By gprabhu at 2007-11-26 11:33:53
Hi, I want to get some sample compilers, interpreters and optimized compilers coded in C language

operation number count from er_src on x86?

584 byte By bugchucker at 2007-11-26 11:33:54
Hello all,according to several reports and manualsit should be possible to get the number of load, store, calcoperations in, for example, innermost loops fromthe compiler comments. This is done by using er_srcafter compilation with -g -xO4 etc.But all I can usually get using Sun C 5.8 Patch ...

iostream incompatibility

2015 byte By Bala_screen at 2007-11-26 11:34:05
When i run an application built in 2.9 in solaris 2.10, i get the following error. I am suspecting if this could be of any iostream incompatibility or statis order initialization. Does anyone have any clue on what it could bet@1 (l@1) program terminated by signal SEGV (access to address ...

Suprising behaviours of mathematical functions

1425 byte By willoch at 2007-11-26 11:35:17
For the following program:[code]#include <math.h>int main() {float sum=0;for(int i=0; i!=10000000;++i)sum+= log10(i);return sum;}[/code]compiled with -fastRuns on 0.64 seconds.Now you see that we deal with floats, and log10 returns double.So replace log10 with log10f.Now the programs run ...

Compiling Issue on SUNstudio11

1599 byte By Sun.Gnanavel at 2007-11-26 11:36:25
Server : Sunfire x4100O/S : Solaris10[b]Error[/b]: While compiling im getting the following error.$ compileCleaning *.o, *.c, recon*.o: No such file or directoryrecon: No such file or directoryCompiling init.pc to init.cPro*C/C++: Release 10.2.0.2.0 - Production on Mon Nov 20 22:56:43 ...

Compiling Issue on SUNstudio11

3456 byte By Sun.Gnanavel at 2007-11-26 11:37:34
Server : Sunfire x4100O/S : Solaris10[b]Error[/b]: While compiling im getting the following error.$ compileCleaning *.o, *.c, recon*.o: No such file or directoryrecon: No such file or directoryCompiling init.pc to init.cPro*C/C++: Release 10.2.0.2.0 - Production on Mon Nov 20 22:56:43 ...

Runtime memory check causes error in _init()

2356 byte By balnaves at 2007-11-26 11:38:46
When I try to run a program in dbx with runtime memory access checking turned on, I get an error in _init that causes a fault. This seems to be before my code is called. I have installed the latest OS and compiler patches. Has anyone seen something like this?[code](dbx) cd ...

More on hiding functions during inheritance

950 byte By makc at 2007-11-26 11:39:00
This topic has being discussed before but I think there is a new twist to it: on 'CC: Sun C++ 5.8 2005/10/13', the following bit of codeclass A {public:virtual void foo(int) {};virtual void foo(char *) {};};class B : private A {public:virtual void foo (int) {};};int main (){B ...

Compiler Signal 11 when trying to compile against Boost.Iostreams library

3036 byte By driekus1977 at 2007-11-26 11:39:38
We still have problems using Boost C++ Libraries on our Solaris 2.9 system with the newested SunStudio 11 C++(5.8) Compiler. (Also with newest patches installed)The boost iostreams library seems to be build oke, both with and without stlport 4 (-library=stlport4). (Note: Not all boost libraries ...

" Where: Instantiated from non-template code" how to correct this warning?

212 byte By nj_zxw10 at 2007-11-26 11:41:01
Hi all,When I compile a program with SUN C++ compiler 5.8, i got this warning, and it won't appear when using compiler 4.2.So how can I do with my code to correct this warning?Thanks.

sunstudio 11 - dbx crashes on c++ with some special stdio flags

2322 byte By hrequ at 2007-11-26 11:41:45
Hello, when I compile the following C++ code (separate header and implementation file) with "g++ -gdwarf-2" or just "g++ -g":- CClass.h:#ifndef _CClass_H#define _CClass_Hclass CClass{public:CClass(int _i);~CClass();private:int i;};#endif /* _CClass_H */- CClass.cpp:#include ...

libumem.so aborts due to invalid free of basic_string __nullref member

3862 byte By scott@cognos at 2007-11-26 11:42:08
Hi,I'm fairly new to Solaris development and I've been trying to debug a problem for the last few days and I'm at my wits end. I've been trying, unsucessfully, to use libumem to track down a memory corruption issue, however I've had trouble just getting started. I don't know if it's a ...

std::max gives terrible inefficient code

1202 byte By willoch at 2007-11-26 11:42:42
Let the program be:[code]#include <algorithm>using std::max;int f(int a, int b) { return max(a,b); }[/code]Compile it : CC -xO5 -SSee the terrible result with lots of unnecessary loads, stores and branches: [code] __1cBf6Fii_i_:/* 000000 3 */ st%o0,[%sp+68]/* 0x0004*/ cmp%o0,%o1/* ...

dlopen crashes in 64bit mode

759 byte By dj_phil at 2007-11-26 11:42:47
Hi,I have 64bit C++ shared object built using Sun Fore Compiler(CC) on Solaris 9. However, when I try to open this shared object using dlopen on another Solaris 9 system, it crashes. I am compiling my code on following system SunOS 5.9 Generic_118558-30 sun4u sparc SUNW,Sun-Fire-880 and running ...

Urgent..how to connect jmatlink & jdeveloper 10

1063 byte By grace_tsou at 2007-11-26 11:44:10
hi:i am trying to connect jmatlink & jdeveloper 10gmy codes are below:import jmatlink.*;public class test {public static void main(String[] args) {// create instance of engineJMatLink engine = new JMatLink();// open engine and start MATLABengine.engOpen();// test string: create array of ...

Unable to produce 32 Bit objects on 64 Bit Linux with Studio Express 2

2953 byte By Samsar at 2007-11-26 11:44:13
Hi,I want to compile a 32 bit program (I have to link a 32 bit library) on a 64bit Linux sytem.All -xarch compiler flags I tried were replaced by -xarch=amd64. A the moment I have to use a 32 bit system to compile and then run the program on the Opteron.Here is a simple example:cc -xO3 ...

cannot find include file stdio.h

309 byte By redofr at 2007-11-26 11:45:30
Helloi compiled a very simple c source and got this message .I'm using solaris 10 x86 with studio 11 ide cc -V: cc: Sun C 5.8 2005/10/13stdio.h is here /opt/SUNWspro/prod/include/CC/stlport4.should i configure a variable ? Someone have an idea ...

Optimizer bug in C compiler for Linux

4907 byte By phargrov at 2007-11-26 11:45:38
Save the following as bug.c:/*Bug report against Sun C for Linux:$ suncc -Vcc: Sun C 5.9 Linux_i386 Build27_2 2006/08/02usage: cc [ options] files. Use 'cc -flags' for details$ cat /etc/SuSE-releaseSuSE Linux 9.3 (x86-64)VERSION = 9.3$ uname -r2.6.11.4-21.8-smpCompiled w/ -xO2 or lower, this ...

pch slow ...

1628 byte By luoyi82 at 2007-11-26 11:45:52
below is a simple test of sunCC's pch feature:luoyi@wsjavadev:suncc$ cat pch_demo.sh #!/bin/sh# Sun Studio Precompiled Header Demorm -f *.Cpchecho ======before pch======time sunCC -o main main.ccecho ======create pch======time sunCC -c -xpch=collect:cppall cppall.ccecho ======after ...

path problem in linux

702 byte By raviadha at 2007-11-26 11:46:19
hi,i have problem with file path accessing in linux. my java class is accessing a abc.cvs file and and getting all data. it is working fine in windows xp. but i run this same file in linux it does not access the abc.cvs file and does not get any data.my project structureSearch abc.cvs ...

How to install

168 byte By raghavan@synopsys.com at 2007-11-26 11:47:12
I downloaded the StudioExpress-linux-2006-08.tar.bz2. After untarring, what is the procedure to install this software. Can someone point me to install documents.

Studio 11 warning(1): implicit function declaration: memset

616 byte By icesummit at 2007-11-26 11:48:23
I was compiling old code with Studio 11 and got the warning:implicit function declaration: memsetMy code is like this: SyncMate.ccompile options:/opt/tools/sparc-SunOS5/sunstudio/11/SUNWspro/bin/cc -Xa SyncMate.c -o SyncMate#include <stdlib.h>#include <stdio.h>#include ...

Sun Studio 11 Editor Colors

788 byte By The_Fiddler at 2007-11-26 11:48:26
Text colors generally work okay for my Fortran code editor EXCEPT for line comments. The Fonts and Colors dialog box shows green, italicized text, which is what I'm trying for. But the comment lines in the editor simply refuse to be anything but normal code colors, including highlighting ...

Studio 11 warning(2): ld: warning: symbol `clog' has differing types:

482 byte By icesummit at 2007-11-26 11:48:27
Again, I am compiling old code with Studio 11.[exec] ld: warning: symbol `clog' has differing types:[exec](file /nfs/other/prod_solaris/tools/sparc-SunOS5/sunstudio/11/SUNWspro/lib/libiostream.so type=OBJT; file /usr/lib/libm.so ...

Memory allocation problem in Solaris 5.8

3260 byte By ajith_prasad at 2007-11-26 11:48:29
I'm porting an application into solaris, which is running fine in Linux. Its an application coded with c++ having lot of modules.. However , the program is crashing at a particular point giving segmentation fault.. I've tried a bit to debug using dbx ( I'm a newbie ) and I suspect the ...

problem compiling 64-bit application that uses posix threads

1851 byte By theMAGE at 2007-11-26 11:48:33
Hello,I have some code that I compile and build on Linux IA32 and AMD64. It compiles and works with GCC 4.1.1, Intel 9.1. WIth Sun Studio Express 2 I can build it and test it on IA32 but when I try to compile on AMD64 I get this error:suncc -xMMD -xO1 -fast -m64 -xc99=all -xCC -Xc ...

Opposite of -fsingle?

363 byte By phargrov at 2007-11-26 11:48:54
The documentation for -fast says " The -fast option acts like a macro expansion on the command line. Therefore, you can override any of the expanded options by following -fast with the desired option."However, I am unable to find a documented override to turn off the -fsingle option included by ...

Solaris Compiler CC - list linking problem from .c file

1664 byte By bhavikac at 2007-11-26 11:49:50
It is not the clear way to do but we are using STL list and map in C code and compiling with CC(Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-11 2002/10/31). Compilation goes through fine and creates library say libuacore.awe also have C++ code which links the library.But while linking we get ...