1692 byte By
mikejdc2 at 2007-11-25 23:48:42
Sorry if this is the wrong forum for product feedback, but here goes...I am using Forte with Nedit as the editor.- How come when I open a project in Forte, then go to open a source file, the file browser is not in my current project directory. That is annoying.- Is there code completion in this ...
834 byte By
j_hang at 2007-11-25 23:48:43
Hi, everyone,I've the following .C and .h to compile to linktest.a://linktest.hclass linktest{public:virtual void printinfo();};//linktest.C#include <stdio.h>#include "linktest.h"void linktest::printinfo() {printf("this is a test\r\n");return ;}and, there is a test ...
563 byte By
cShelly at 2007-11-25 23:48:44
my platform:forte C++ 6 update 2stlport 4.5OS: solaris 8when I do the stl/test/regression test I got error.remove1.cpp", line 19: Error: Formal argument 1 of type const char* in call to std::remove(const char*) is being passed int*.And when I compile my own program , I got error like ...
2127 byte By
psouriss at 2007-11-25 23:48:46
Hi,Runtime loader core dumps before it reaches mainThis Pb is with solaris 8 and CC 5.3. and not on 2.6. it seems this pbis like BugID 4313564The work around is: set LD_PRELOAD=libCrun.so.1 and runbut i run, i have prayed, but the "black eagle" is always here ...If somebody has an idea or a ...
1446 byte By
dennisbk at 2007-11-25 23:48:48
It seems like forte 6 does not handle typename keyword properly. I've attached a test case which shows the problem.First compile it with command line:CC -c testcase.cppand it will give you warnings:"testcase.cpp", line 13: Warning (Anachronism): Type names qualified by template parameters ...
177 byte By
gengwy at 2007-11-25 23:48:50
I want to get some on-line information about c++ functions, such as 'cout(...)', 'printf(...)' . So where are the help files? and how to use them?Thanks
486 byte By
wlwl127 at 2007-11-25 23:48:51
hi.in my driver , i write ddi_io_putl(b->w750s_handle, b>IOBaseC+NIC_InterruptStatus,(ulong_t)CISR_RBU);when I compile it show :Warning:improper pointer/integer combination #2 is incompatible with the prototype.prototype: pointer to unsigned "/usr/include/sys/sunddi.h"the code compiles ...
my os is: solaris 8my compiler is: forte C++ 6U2command: CC -o shm1 shm1.cpp -lrtthe error is: line 10: Error The function "shm_open" must have a prototype.warning is: line 11: Warning: The variable ret has not yet been assigned a valuemy codes are given as below.#include ...
my platform:ultra 5solaris 2.7forte C++ 5.3In my programm,I use "list" ,"sting" and so on.My Usage such as:$CC -c 1.cpp$CC -c 2.cpp -I./ (In 2.cpp, used stand templet "list")$ar r lib2.a 2.o$CC 1.o -L./ -l2it can't link successful.erro info such as:Undefined first referencedsymbol in ...
1490 byte By
mhines54 at 2007-11-25 23:48:57
I would like your help to answer a question about an error from a make.My question is why is this message is displayed. 'ld: warning: file Griev.o: attempted multiple inclusion of file'I'm looking for simple answer to remove the error.Thanks for your helpMichael Hines, USPS.The submit line ...
176 byte By
sdenning at 2007-11-25 23:49:00
WS6U2While doing rtc on my Forte C++ 5.3 application, I get this message (many, many times) to standard out. Appears to have started after applying patches
964 byte By
sbarvian at 2007-11-25 23:49:03
One of our customers reports that "some" of their Sol2.7 machines cannot run our 64-bit software (compiled with -xarch=v9).% a.outld.so.1: a.out: fatal: relocation error: file a.out: symbol __1cDstdJbad_allocG__vtbl_: referenced symbol not foundKilled%On the machines where our stuff doesn't ...
We have an issue with CC compilation in our module implementation.We are using Sun Solaris CC compiler.(Version 5.0).Our code contains Vectors and namespace.While compiling with CC 5.0,it creates the exe with many warnings such as "Warning: String literal converted to char* in formal argument ...
Hello everyone: In HPUX aCC, __FUNCTION__ is defined in each functions. Is it also defined in SunOS CC compiler? If so, can anyone tell me how to enable it?thank youtcs
494 byte By
sarathk2 at 2007-11-25 23:49:12
hi alli am porting my application from 32 bit to 64 bit in solaris 2.8 .In some places for integer variable it is trying to read 8 bytes of data where as it has to read 4 bytes and the error Message is "access to address exceeded protections".Can anyone give me some link of info about the type ...
My development group had been having problems with WS6U2, including compiler assertions, iropt exploding, dbx not understanding exceptions etc. After looking at the bug fixes they offered, some of which were relevant, I went and grabbed the most recent patches from access1.sun.com/forte. To ...
Below example program tried out with pretty print option enabled in debugger. I can't get it to work with or without extern "C"Any suggestions ?Thanks.#include <iostream>#include <cstdio>using namespace std;class A{public:A() : x(7) { }void method() { cout << "hello" << ...
2015 byte By
paloe at 2007-11-25 23:49:16
Patch 111685 for WS6U2 fixes a lot of problems but introduces a massive memory leak in operator+= for std::string. Sun has already acknowledged that it's a serious bug (bug id 4520126) although they are taking forever to fix it:This is the test case that we submitted to Sun:$ uname -aSunOS ...
1441 byte By
pandian_a at 2007-11-25 23:49:17
Hello,I am facing a serious problem with Sun Workshop C++ 5.0 compiler on solaris 8.file - weeks.C#########################################include <iostream.h>#include <stdlib.h>#include <math.h>#include <Time.h>#include <time.h>#include <Objection.h>#include ...
887 byte By
vinu_s at 2007-11-25 23:49:19
I am facing a problem with the rouge wave libraries, while trying to compile an application which was earlier compiled in Sun Forte Workshop Update 2 for C++ in compatibility mode. I am now trying to compile without the compatibility mode. The problem I am facing is that I have set ...
Hi,I am delighted to discover this forum and this is my first posting here. Is there any FAQ for this forum. I want to know some "fundamentals" of how to be up-to-date with compiler patches, how to report problems, etc.Thanks (and more will follow :)Chandra
399 byte By
vazuss at 2007-11-25 23:49:23
Hi,I have access to a Sun OS and need to develop a c++ application. I have a problem locating the compiler in the Sun OS. If I use the option cc, I get an error message saying compiler not installed properly or something like that. Does a c++ compiler come standard ? or does one need to ...
I am having this link error when I compile the program in "-compat=4" mood using Forte6.0 U1 compiler: Undefinedfirst referenced symbolin file_START_/install_dir/Forte6.0/SUNWspro/WS6U1/lib/CCrti.o_END_/install_dir/util/Forte6.0/SUNWspro/WS6U1/lib/CCrti.oI am compiling on a pretty old ( I think ...
Hi,I'm testing the forte CC compiler (CC: Sun WorkShop 6 update 1 C++ 5.2 2000/09/11) on a SUNOS 5.6 Ultra 60 bi CPU w/ 1Go RAM.We are currently running a CC 4.2 (CC: WorkShop Compilers 4.2 30 Oct 1996 C++ 4.2).Average compilation time is a 2.6 factor slower on v6.(user time only, sys time ...
1354 byte By
vinu_s at 2007-11-25 23:49:31
I am facing a problem when trying to migrate an application compiled in SPW6_4 (ie. in compatibility mode) to SPW6. In my files, I have used rouge wave library classes and it compiled fine with SPW6_4. But when I am trying with SPW6, it is showing errors in the defs.h and stringid.h which are ...
1493 byte By
LFrancis at 2007-11-25 23:49:32
Hi,I'm using the forte CC compiler (CC: Sun WorkShop 6 update 1 C++ 5.2 2000/09/11) on a SUNOS 5.6 Ultra 250).Iam trying to use the #pragma pack option and am not able to get desired results.Here is a small test ...
641 byte By
vinu_s at 2007-11-25 23:49:34
I had written a small program which includes rougewave files. It is building fine with Sunworkshop 6Update2 in compatibility mode with C++ compiler 4.2. But when I give it in Default mode, it is showing errors in the roguewave directory. I had compiled using the project wizard. Is there any ...
903 byte By
lies at 2007-11-25 23:49:35
hi,I got the similiar problem as mentioned in "Alarm Clock" message.Can anyone be so kind tell me how it comes and how to deal with it?Thanks,char> i m writing a program using kstat library for> monitoring purpose.> when i run the program it runs perfectly but after> some time it ...
HiI'm getting an annoying 'problem' using the sunperflibrary with complex types:if I copy word for word the example you find at theend of 'man complex', it compiles fine. If I just add#include <sunperf.h> it doesn't. Clearly, there is a clash somewhere, is it intentional?Has anybody ...
599 byte By
bkubesh1 at 2007-11-25 23:49:42
I ran into an interesting compiler bug today. Here is how to duplicate. Write a test program that declares the following:vector< vector < int > > foo(5);This will work fine unless you need to link in -lmalloc. As soon as you link with this library the code above will throw an ...
164 byte By
kcardona at 2007-11-25 23:49:45
Hi,I want to write a small application in C/C++ to show the free virtual memory. Does any one know how to do that?Best Regards,KC
266 byte By
tmeade at 2007-11-25 23:49:46
For Forte 6.1:Is there a compiler switch or some such thing to make new return NULL instead of throwing std::bad_alloc when it can't allocate the requested space?Also, does the RW STL throw say when a list.push_back() fails and so forth?
534 byte By
graemebe at 2007-11-25 23:49:47
Can anyone tell me an easy way to programmatically obtain the CPU utilisation on Solaris?In other words, if I were to write a utility similar to sar, how would I get the average user %, system % and idle % figures (and across multiple processors). Do I have to sum and average utilisation of all ...
3680 byte By
vlayton at 2007-11-25 23:49:48
I am compiling/linking code for a customer with Forte 6.1 c++ compiler(CC) on a sparc 2.7 box. The code runs fine on 2.7 but core dumps on solaris 8. I'm hoping someone can look at the dbx output and give me a hint as to why the code fails. I'm thinking the crash is in loader code(versus the ...
Hi All,We are facing the following error during building our application. Our project extensively uses STL.SunWS_cache: Error: Lock attempt failed for /home/pdrgndev/PurpleDragon/src/common/SunWS_cache/CC_state (errno: 45). Aborting....*** Error code 1"The error persists after removing the ...
546 byte By
wlwl127 at 2007-11-25 23:49:52
Hello:I use fortec++6.0(intel) in solaris 8 platform.when i "make", it showCC -O -I -D_KERNEL -Di386 -C -o i386.w840s.o w840s.c/usr/ucb/cc: language optional software package not installed.***Error code 1 ***make : Fatal error: Command failed for target' i386/w840s.o'I find there is cc in ...
546 byte By
wlwl127 at 2007-11-25 23:49:53
Hello:I use fortec++6.0(intel) in solaris 8 platform.when i "make", it showCC -O -I -D_KERNEL -Di386 -C -o i386.w840s.o w840s.c/usr/ucb/cc: language optional software package not installed.***Error code 1 ***make : Fatal error: Command failed for target' i386/w840s.o'I find there is cc in ...
I am porting my VC++ code to UNIX. I got problem when I compiled a class, which uses STL. The code fragment is as below:typedef std::list<GL_MsgLogger*> MSGLOGGER_LIST;MSGLOGGER_LIST m_msgLoggerList;I used compilation option -pta...when I removed it, it got other errors...What should I ...
2041 byte By
bfallahi at 2007-11-25 23:49:55
Hi all,Reading the article posted at http://soldc.sun.com/articles/GNU/perf.htmlwe got very excited, and got the Forte Compiler for C++.after reading the pdf document on compiler options and switches, and fixing some parts of our code so the CC compiler would accept it, we finally managed to ...
774 byte By
wlwl127 at 2007-11-25 23:49:57
hello:when i make a file in solaris 8 , there are warnings:/w841mem.c , line 184 ; warning, argument #8 is incompatible with prototype:prototype:pointer to unsigned long:"/usr/include/sys/sunddi.h",line 1587argument : pointer to unsigned int./w841mii.c line 144 : improper pointer/integer ...
1228 byte By
sarathk2 at 2007-11-25 23:49:58
HEY ANYBODY IS THERE TO SOLVE MY PROBLEM?Hey All,I have been facing the following problem when I try to port my 32 bit applications to 64 bit application.I have posted this problem long back but nobody seems to be helping me out in this regard.I would appreciate if somebody helps me out to get ...
478 byte By
tonitop at 2007-11-25 23:49:59
I have following piece of code:string s = "AAA";std::transform(s.begin(), s.end(), s.begin(), toupper);When I compile, I get the following error:Error: Could not find a match for std::transform<std::InputIterator, std::OutputIterator, std::UnaryOperation>(char*, char*, char*, extern "C" ...
Hi all!Whenever i give Patch ID 108434-01 in patchfinder it returns with the patch 108434-04 with which app. which needs that patch(108434-01) does not runs. Can someone tell where can i get patch 108434-01?Thanks and reagards,Amit.
I don't know if this is the right place to ask this question but I thought I would have a go anyway.I am using gcc on Solaris 8 and am wondering if there are any known problems with the select function call using gcc on Solaris?Thanks in advance.
I don't know if this is the right place to ask this question but I thought I would have a go anyway.I am using gcc on Solaris 8 and am wondering if there are any known problems with the select function call using gcc on Solaris?Thanks in advance.
1424 byte By
tuongv at 2007-11-25 23:50:07
Hello,I am writing a very simple code to test the use of the stl class: deque.I could compile the program successfully. But I couldn't link it : I've got a undefined symbol error when linking.I am using C++5 on a solaris 2.7. Here is the simple code :#include <stdio.h>#include ...
$uname -aSunOS avakkai 5.6 Generic_105181-29 sun4u sparc sun4u$CC -VCC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-02 2001/09/18Compiled using CC -mtProgram terminates with a SIGSEGV after several iterations. The problem does not exist on C++ 5.0; I cannot retest without 111685, but I believe ...
1069 byte By
tuongv at 2007-11-25 23:50:10
I've written a very simple program to test the use of the stl class ostringstream. The program write an integer to the ostringstream object. In a multithreaded environment (compiled and build with the -mt option), that operation hangs and never returns, whilst it works fine if the program is ...
467 byte By
lwecfdrc at 2007-11-25 23:50:11
Currently we are using egcs-2.91.66 on an Ultra 1 running Solaris 6 and gcc 2.8.1 on an Ultra 80 running Solaris 8. Code compiled in Solaris 6 will run on Solaris 8, but code compiled in Solaris 8 will not run on Solaris 6.Will code compiled in Forte on a Solaris 8 machine run on Solaris 6 and ...
Hi,My Question here is that - Is there is a problem with "?:" operator on solaris systems ?. ie: [ both the values passed must be of exactly same type not a type that can be converted to the other type. ]I am trying to compile & run the following Reproduction Program on the following ...