Incremental Linking of libraries

780 byte By jordanthompson at 2007-11-25 23:47:07
I am trying to incrementally add object files to a library using the CC Workshop Compiler version 5.0 98/12/15.Because we use templates heavily, I believe that I need to use the following command:CC -xar -o myLib myFile.oUnfortunately, everytime this is run (for each file that is to be added to ...

missing symbol: cur_term

452 byte By Shane.RR at 2007-11-25 23:47:09
Hi!I have Sparc Solaris 2.6 and when executing an OraclePrecompiler sample it core dumps and says thatthere is an unresolved symbol: cur_term.Sometimes the same error appears when I execute otherprograms. (non-Oracle)I have already contacted the oracle support but I thinkthat it is an ...

Shared Object lookup

418 byte By abhijit_deb at 2007-11-25 23:47:10
Hi,I am trying to load a shared object from java and am getting the common UnSatisfiedLinkException error. I guess one of the shared object that my library depends on is not specified in LD_LIBRARY_PATH. I want to know how it is possible to lookup for the shared object that my object depends ...

problems with streams in multithreaded apps

644 byte By hlu3 at 2007-11-25 23:47:11
having problems with the following simple program compiled under Solaris 2.7 with the 5.0 compiler:#include <sstream>using namespace std;main(){ printf("creating ostringstream\n"); ostringstream c; ostringstream d; printf("done\n");}compiled as follows:CC -g -mt test.cc -o testi'm using ...

libc internal error: _rmutex_unlock: rmutex not held.

269 byte By roxette at 2007-11-25 23:47:12
Solaris 2.6 , C++ Workshop 3.0 .It seems no problem during the compiling , but when I start the program , it prompts: libc internal error: _rmutex_unlock: rmutex not held.what can I do ? Any suggestion is appreciate.shaw

Allaire Cold FUsion need LPCSTR and BOOL

244 byte By ybarera at 2007-11-25 23:47:15
HElloI try to compile a C++ program which contains variables of type LPCSTR and BOOL. ( I think it's from WIndows)COuld someone tell me where can i found a library where they are declared.Thank YouYann

TeamWare Development Model

502 byte By Sephi at 2007-11-25 23:47:18
We consider using Forte TeamWare for our configuration control tool.The problem is that TeamWare is not using a central check-out mechanism like most of the configuration control tools. Instead, each developer has his/her own Workspace and only when putting the files back into the parent ...

Compiling problem

789 byte By spangu at 2007-11-25 23:47:21
i am using Solstice Enterprise Manager.i compiled and run ordinary c++ files without any errors. But when i am using sun solaris API -Classes i am not able to compile the prgm.The example Solstice EM API-Classes are AppInstComm class,AppInstObj class,AppRequest class,AppTarget classherewith i ...

Forte C++ 6 Update 1

760 byte By mcrosland at 2007-11-25 23:47:22
Hello,We are evaluating Forte C++ 6 Update 1. It seems to have problems with sigaction. The following code fragementstruct sigaction sa;memset(&sa,0,sizeof(sa));sa.sa_handler = termHandler;sigaction(SIGTERM,&sa,0); sigaction(SIGINT,&sa,0); sigaction(SIGQUIT,&sa,0); generate the ...

Deploying

223 byte By adnix at 2007-11-25 23:47:25
Hi all,What do I need to include with my compiled executables when deploying my application? I tried looking through the docs, but couldn't find anything...Any help would be greatly appreciated!

C++5.0 compile problem with STL

915 byte By jhong001 at 2007-11-25 23:47:28
Hi, I got the following compiling error, when I am using #include <vector>. It looks like it complains one variable declared more than once.The following is the program, nothing but include <vector>. By the way, I am using C++5.0. #include <vector> int main() { }CC a.cpp ...

Compiling on Solaris 8 for Solaris 2.6 Forte 6U1

2102 byte By RogervanValen at 2007-11-25 23:47:29
We experience problems when running executables compiled on Solaris 8 when we run them on Solaris 2.6. Using Forte C++ 6 Update 1.We get the following message:ld.so.1: ./swsrv: fatal: libc.so.1: version `SUNW_1.18' not found (required by file ./swsrv)I was expecting that this is caused by ...

Binary compiled on Solaris 8 doesn't run on 2.6

1031 byte By mdazy at 2007-11-25 23:47:32
Hello.I am working on a large project (one small binary andseveral shared libs) that is exepcted to run on bothSolaris 8 and Solaris 2.6 systems. I am compiling itwith Forte 6 (not update 1) on a Blade 1000 runningSolaris 8. The problem is that the resulting binarywon't run on a 2.6 system ...

Unable to resolve iostream symbols in shared library

1659 byte By jboehm at 2007-11-25 23:47:36
I am trying to create a (shared) library, which exports a C++ function to C using the 'extern "C"' syntax. To be able to link this library to a normal C programm all C++ specific symbols have to be resolved IN the library. That is, they can not be resolved at link time because a C programm ...

Reallocation Failure in ySpace()

355 byte By proffer at 2007-11-25 23:47:37
I have a large C++ program that fails during compile with the message:Reallocation failure in ySpace(). The program contains imbedded SQL so themake process contains a DB2 precompile step preceeding the C++ compile step. Does anyone have any ideas what the problem could be? Other smaller ...

Error: Forte 6 C++ Solaris 7 (code written in C++ 4.2 and Solaris 2.6

4099 byte By nmaganti at 2007-11-25 23:47:39
Hi there,Getting the following error - thanks in advance for any help.CC -compat=4 -o bin/RecvFromA3 obj/RecvFromA3.o obj/CSequenceNumberRecord.o obj/CQueue.o -Bstatic -staticlib=%all -mt -g0 +w -L/home/narendra/its/lib -L/home/tuxedo/lib -L/usr/java/jre/lib/sparc -Bdynamic -ljava -ljvm ...

ELF libraries for SUNWorkshop 5

456 byte By ybarera at 2007-11-25 23:47:40
Hello,I just installed Sun Workshop and when i try to compile a basic example of c++ program, i have the following error message ;:ld : elf error: file test.cpp:unknown type, unable to process using ELF(3E) librairiesld : FIle processing errors. No output written.It is the first time i install ...

update 1 or patches?

446 byte By rts_ru at 2007-11-25 23:47:41
I am confused about the fact that Sun released a whole new product versiontermed "update 1" while new patches for Forte C++ are being released. I could not find any indication which (if any) patches are incorporatedinto this "update 1" release. There is, in particular, patch 109490, whichhas ...

Dynamic library and static initialization problem

1318 byte By at 2007-11-25 23:47:42
We're using Forte 6.1 and have a problem with static variables not being initialized before code in a compilation unit is called.We have a series of shared objects that we open with dlopen(), and during initialization of statics and globals in the shared object being opened and its dependent ...

-xar option in CC command

389 byte By lzhang97 at 2007-11-25 23:47:43
I have a very simple example listTest.cpp that invokes template std::list. It is compiled ok. However, when archiving using "CC -xar -o Debug/liblistTest.a Debug/listTest.o", it complains that SunWS_cache: Error: Error occurred in invoked compiler, [process exec failure, errno = 2]. ...

caddr_t?

576 byte By aced at 2007-11-25 23:47:44
Hello! I am a engineer and I am currently attempting to port a Sun program to Solaris. However I am having a problem with caddr_t is anyone familiar with this? What is this caddr_t and its struct? I am on a Unix 2.6 system. I was told that the library MAY be OS dependent upon this caddr_t, ...

exceptions and DBX

367 byte By EBilling at 2007-11-25 23:47:46
We've got a C++ project broken into multiple shared objects. Dbx complains:dbx: warning: object file (unknown) was not compiled -g -- limited exception supportdbx: warning: can't find symbolic information for thrown type.But all of our application is compiled -g. Any options we can't use ...

Compilation errors with compat=5

3189 byte By jbsn at 2007-11-25 23:47:47
I am having a problem compiling an application with the option compat=5. I get the following errors:"/opt/SUNWspro/WS6U1/include/CC/./exception", line 18: Error: Use ";" to terminate declarations."/opt/SUNWspro/WS6U1/include/CC/./exception", line 19: Error: Use ";" to terminate ...

Solstice X.25 and multiple links.

1889 byte By akno at 2007-11-25 23:47:50
Hello.I have a server, which is meant to respond on a call from Solstice X.25. This is done as follows. A 揅ONN_DB struct? i.e. host, is declared. The only thing that is done to host is this: 揾ost.hostlen = ANY_LINK | ANY_SUBADDRESS;? A socket descriptor is got from a call to 搒ocket(AF_X25, ...

Throwing Exceptions from a thread in a library

657 byte By mohanasundaramchandran at 2007-11-25 23:47:51
I have a problem in exception handling in c++I built a sharedlibrary which is loaded by a java program using jni.After the java program loads the library it calls a method which will spawn threads defined in the same library.If i try to throw an exception from the library either from a an ...

what is the name for new c++ compiler release?

115 byte By ngodoan at 2007-11-25 23:47:52
Does Forte C++ 6.0 mean same as CC 5.1?How do the compiler releases map to Forte nomenclature?

Is it compiler bug?

2192 byte By luzheng72 at 2007-11-25 23:47:53
I wrote a piece of code belowing on Solaris2.6 with C++5.0.1 #include <iostream>2 #include <string>3 #include <fstream>4 using namespace std;56 ifstream in; //NEED MENTION!!!!78 void testfunc(ifstream& inFile)//NEED MENTION!!!9 {10const string delims(" \t,.;");11string ...

map, vector, queue, etc

300 byte By cascade1974 at 2007-11-25 23:47:54
Hi, there,I am trying to compile some code using compiler 5.2 but with compat=4 on. It couldn't find included map, vector, queue, etc. I guess those header files are for standard mode only. Is there anything like map, vector, queue for compatibility mode?Thanks,jy ...

C++ execution

392 byte By Ankushg at 2007-11-25 23:47:55
Hi, I have a WorkShop C++ 5.0 one user license. When one user access C++ & stop accessing it. The other user who wants to access C++ cannt get it immediately. The time duration it takes is 5mts or so. (There is no issue in execution of the compiler though?)Any one has come across such ...

iostream::read buggy in Forte 6 update 2

310 byte By kb1cjc at 2007-11-25 23:47:57
I am using Forte 6 update 2 on Sparc hardware running Solaris 8. When I try to obtain unformatted input with iostream::read, I get two copies of the first character (and none of the last, if there was enough input to fill my buffer). Has anyone else encountered this problem? Are fixes ...

XGL graphic library

129 byte By fujitsu1 at 2007-11-25 23:48:03
Does anyone know where to find this library? It is not on any Solaris Installation disks.Thank youpat

Linker problem

1251 byte By erling_d_andersen at 2007-11-25 23:48:04
Hi,I am linking an application which is mostly C based.An external library seems to be C++ based and Iget linker errors (see below). Does someoneknows how to resolve them? I.e. which librariesshould I add.RegardsErlingsymbolin ...

graphical package help for workshop

143 byte By fujitsu1 at 2007-11-25 23:48:08
Does anyone know any graphical package either within Solaris distribution or outside of it that can draw charts?Thank you.

Loading library error

605 byte By engp9033 at 2007-11-25 23:48:09
I build a library on one Sun manchine(SunOS 5.5.1 Generic_103640-35 sun4u sparc SUNW,Ultra-5_10), but this library can not be loaded in another machine(SunOS 5.6 Generic_105181-23 sun4m sparc SUNW,SPARCstation-5). I get the following error: ldd: libshi.so: execution failed due to signal 9 when ...

-xchip option questions

511 byte By peccles at 2007-11-25 23:48:11
The lowest end machine our customer has isan Ultra 1 (UltraSparc 200MHz). If I use the-xchip=ultra option will that provide betterperformance on the UltraSparc II family andUltraSparc III chips than -xchip=generic?So basically is the rule -xchip=ultraprovides better performance on UltraSparc ...

Sun C++ 5.0 question: ambiguity of mbstate_t

1363 byte By NaokiSaito at 2007-11-25 23:48:12
Dear Sun C++ users,I recently installed Sun C++ 5.0 on my Solaris 8 machine.The following simple example:#include <iostream>int main(){ std::cout << "Hello, World!" << std::endl;}should compile under Sun's CC version 5.0, but it complains as follows:$ CC -o test ...

-xprefetch option question

202 byte By peccles at 2007-11-25 23:48:14
If I am going to run my software on a machine thatsupports prefetch instructions (e.g. -xarch=v8plusa),is there any downside to using -xprefetch=auto?ThanksPaul

-xbuiltin option question

180 byte By peccles at 2007-11-25 23:48:15
I understand that using -xbuiltin=%all might (always?)increase code size. If it is used with -xspace,is there still any benefit?ThanksPaul

Difference in the executable file size

1042 byte By p_konala at 2007-11-25 23:48:17
Hi, I am using the two machines with the following compilers and OS,when i built an executable in 2 different machines with the same code the executable size is varing in size, i want to know the reason why?is there any way to see that the binary built using Make option is of the same size in ...

C++5.3 on Solarias5.8 register_exit_code

894 byte By sqyang at 2007-11-25 23:48:18
Hi:I meet a problem when using C++5.3. The problem is:When I use C++5.3(Forta6 update 2)(OS:Solarias 5.8) to build my application, the compiler always produces the following errors:Undefinedfirst referencedsymbolin filevoid __Crun::register_exit_code(void(*)()extern"C") ...

How to execute a different process with a process

222 byte By J.Grijmans at 2007-11-25 23:48:24
How can I execute a process within my program. This executed program should run free within the solaris environment. So I can not use the system call's.I would like to create a at now < substitute.

Assertion Error!

483 byte By vijaynatraj at 2007-11-25 23:48:27
Hi,We are facing one problem when compiling one program using SUN CC 5.1 ( Forte 6 ). This program includes a header file called "timeb.h" which is enclosed in extern "C" ( At the beginning of the file ). While compiling this program we are getting the following errors, >> ...

Linking C++ programs

334 byte By docprakash at 2007-11-25 23:48:31
Hi,I'm new to Sun Solaris Development Environment. I've compiled a bunch of C++ program objects and want to link them together. I'm not sure what are the mandatory parameters to be given inorder to link them & create an executable. Please do the needfulThanks in advance.regardsPrakash ...

C++ Compiler aborts with licensing error message

783 byte By sunsingh at 2007-11-25 23:48:32
SUN OS - 5.6 with CC compiler version :>>>Sun WorkShop 6 update 1 Compilers C++>>>fails after a while when trying to do a Make of few C++ files ,the error message is :>>>License Error : Licensing product (Sun WorkShop Compiler C++ SPARC).License File: ...

Forte C++ on Solaris 5.8 x86: large object size

474 byte By dfinkels at 2007-11-25 23:48:33
Default compilations on Solaris 5.8 x86 are huge. Very small programs, for example, can end up being 300kb and larger. Is the C++ compiler linking in everything in the universe? I don't believe I'm telling it to, but then again I'm new to this particular compiler.I'm curious if there's a ...

ild error (file exhausted)

237 byte By soluout at 2007-11-25 23:48:34
when i try to compile (make), i got this error:ild:(Performing full relink) internal free space in output file exhausted (dynamic sting table)Anybody can tell me, what the problem is?Thanks in advance.

Problem WS6U2: -xipo breaks link.

545 byte By amorrowcrcg at 2007-11-25 23:48:36
Are there any known problems with the -xipo flag under Workshop 6 Update 2? When I pass -xipo, the linker ignores my library search path, and the build fails, since it can't find the libraries I want to link with. I've verified with truss that the linker is not searching in the specified ...

Forte 6.1/6.2 - throwspec compile problem

2201 byte By e0f at 2007-11-25 23:48:39
I am experiencing what appears to be a departure from the ANSI/ISO C++ standard regarding the throw specifications of an overriding method.Consider the following simple program:[ snip ]#include <ostream>class BaseException{public:BaseException( ) { a = 1; }~BaseException( ) { }virtual ...

Forte IDE--ToolTalk Error?

1255 byte By Phoenix66 at 2007-11-25 23:48:40
Solaris 8U4.Installed Forte 6U2 University ed.Trying to remote display from the install-machine onto another machine.Am root on the installed machine and myself on the remote machine.All DISPLAY,xhost set.Get this error when starting IDE:Fatal error: Could not open ToolTalk channel.This error ...

Assertion Error!!!

574 byte By plumjob at 2007-11-25 23:48:41
I'm using:CC: Sun WorkShop 6 update 2 C++ 5.3 2001/05/15I get the following extremely helpful (NOT!!) assertion failure message on compilation: >> Assertion:(../links/bind.cc, line 241)while processing /SDE/common/src/lib/Excel/ExcelWorkbook/lib/ExcelWorkbook.cpp at line 0.Can anyone ...