346 byte By
sadhanak at 2007-11-25 23:53:37
hi, I am not sure whether this is a revelant forum or not.I am trying to port a tool from solaris 2.6 and sunworkshop 4.0 to solaris 8 and sun work 6.2. my previous code uses roguewave library. Can anybody tell where can I get free download of roguewave 7(tools.h++ 7)(atleast an evaluation ...
hi all. I encountered a very strange problem recently on Solaris 8 and forte C++ 6.2.#include "signal.h"extern "C" sig_handler(int){ // do something }if (signal(SIGUSR1, sig_handler) == SIG_ERR) {cerr << "Errors aborting!" << endl;}else{cout << "OK" << endl;}First, it ...
2055 byte By
jjane4 at 2007-11-25 23:53:39
hi everybody, i wrote a program that decodes a text file that has been encrypted using a substitution cipher i've never used cin's getline function before ... can anyone tell me please how can i prompt the user for a file name, and read the file name from the keyboard using cin's getline ...
Need help in resloving a link error. I have sucessfully upgraded(4.2 - 6.2) three projects and this one is giving me problems. We are using standard streams and I have removed .h from the header files.My command line options are.CPPFLAGS = -G -KPIC-mt -DRWSTD_MULTI_THREAD -D__EXTERN_C__ ...
1118 byte By
mshetty1 at 2007-11-25 23:53:41
Hi,I am trying to execute the following program with calls to dlopen, dlsym and dlclose. #include <dlfcn.h>#include <stdio.h>int main(){void *handle;char nameDll[255];sprintf(nameDll, "/usr1/try/libprog.so");handle = dlopen(nameDll, RTLD_NOW);printf("handle=%d\n", handle);void ...
I am using Forte 6.2 compiler and Oracle 8.1.7. Problem is coming when oracle's pre-processor generates C++ code and put the text in double quotes " ".Warning:"PLSQLSearchEngine.cpp", line 662: Warning: String literal converted to char* in formal argument 2 in call to sqlbuft(void**, char*). ...
881 byte By
lbgong at 2007-11-25 23:53:43
Hi, I hit compile problems when I try to compile C++ program:- -CC -o test test.cpp"/usr/include/iso/wchar_iso.h", line 100: Error: Multiple declaration for mbstate_t."/opt/SUNWspro/SC5.0/include/CC/./iosfwd", line 51: Error: The name mbstate_t is ambiguous, std::mbstate_t and ...
I am using Forte 6.2 compiler and Oracle 8.1.7. Problem is coming when oracle's pre-processor generates C++ code and put the text in double quotes " ".Warning:"PLSQLSearchEngine.cpp", line 662: Warning: String literal converted to char* in formal argument 2 in call to sqlbuft(void**, char*). ...
Summary:Building a static library which uses vectors and strings from the STL appears to cause problems with string allocator in executable which links the static library.Environment:Forte 6 Update 2 C++ on SunOS 5.7Details:I am building a static library which uses <vector> and ...
536 byte By
gustavoR at 2007-11-25 23:53:46
Hi, I am updating an application which uses different type of widgets. One of this is an OptionMenu. I am writting a routine to get the values of seven OptionMenu, but what I have found in books and helps is the widget id of the current selection, but what I need is the current selection value ...
271 byte By
s2000s at 2007-11-25 23:53:47
Hi,Are there any tool/(s) which can spit out all the dependencies a executable might have? There are some tools like Discover and Cscope but they work more on the source code file and not on the binary itself. Thanks for any hint.Saumil
1589 byte By
grourk at 2007-11-25 23:53:48
Hello,I'm porting an outdated C++ tool library from C++ 4.2 to 5.0 and I'mgetting an illegal use of strstream as shown below. I've included the/CCios/strstream.h, which matches the strstream.h in 4.2, duringcompilation. The -compat mode should keep me in ARMDoes anyone know why this is ...
Sun has a new compiler product offering, "ONE Studio 7" [see link, below] and I would like to know:(1) Why does my current [<1year] Forte license not entitle me to a free upgrade?(2) What impact does this new product have on this forum? Will a new forum be created?(3) What feature(s) do(es) ...
367 byte By
LYLeung at 2007-11-25 23:53:50
Hi, while compiling my code with Workshop 4 on Solaris 2.6, I ran into the following fatal errors:ld: fatal: library -lsunmath_mt: not foundld: fatal: library -lcx: not foundI don't think my source needs these two library files. I can't find them on my machine anyway. Is there any way to take ...
104 byte By
paulshen at 2007-11-25 23:53:51
When my application was started, how could I get the full path of it.Thanks!
Hi,I have a Solaris machine running Oracle 8i.I need to access this database from another Solaris machine using a client program (to be) written in FORTE C/C++.My Application must use ODBC connect DB.How can i do?I want to know whether need Additional product.if need,what is best?Any help ...
I wonder if Forte C++ accepts the following long long integer assignment:unsigned log long l;l = 0xFFFFFFFFFFFFFF00; // 14 F's and 2 0'sI'm using g++, which doesn't accept it, and I wonder if Forte works differently.
406 byte By
jredpath at 2007-11-25 23:53:54
Where can I find documentation on programming Sun's LDAP API (in C)? I'm just going through the libldap.so libraries with nm command to figure out the calls as well as the /usr/man/sman3ldap man pages. I need some white paper/documentation on programming in C for Sun LDAP on SOlaris 2.8. The ...
608 byte By
eXavier at 2007-11-25 23:53:56
I have Workshop 5.0 with dbx on Solaris 2.6 (SPARC).I wanted to perform access checking on my executable and ran into problems.Is it possible to exclude some shared libraries from access checking? I can exclude it from loading debug info, but when I turn on access checking, library is loaded. ...
I migrating from 4.2 to 5.14 compiler. I get the core dump at link time if I use -g option.Fatal error in CClink: Segmentation Fault (core dumped).Thanksdan
118 byte By
rkryszak at 2007-11-25 23:54:01
Does Sun have a published end of support date for the Forte 6 version 1 and Forte 6 version 2 compilers?
487 byte By
kaylorb at 2007-11-25 23:54:02
This may be old; but I just stumbled across it. Why does the following code produce Y=200. If I initialize x to 3.01,2.02, or anything else, the problem doesn't exist. The multiplication and cast must both occur for the error.#include <iostream.h>int main(int argc, char** argv){double x ...
under the forte 6.2,sun compiler, does the followingcommands generate a 64 bit executable(will "mycode" be64bit)?. mycode.c is a kernel driver code. ultra-sol2.8.cc -D_KERNEL -c mycode.cld -r mycode.o -o mycodeif not then maybe the best alternative is:"cc -v -x04 -xtarget=generic64 mycode.c -o ...
hi,is (1) and (2) valid for 64 bit compile?.(1) cc -O -D_KERNEL -xarch=v9 -c mycode.c(2) ld -r -o mycode mycode.oI am compiling 64bit kernel driver.is (1) correct?.is (1) enough, or i need to run both (1) and then (2)?.i heard that ld is not needed if -xarch=v9 is already ran.how about the ...
162 byte By
grourk at 2007-11-25 23:54:07
Hello,I know we are a bit out dated here but is anyone using C++ 4.2 compiler on Solaris 8? Does anyone know if it is supported?Thanks
795 byte By
ajhulley at 2007-11-25 23:54:08
Using Forte Developer 6 C++ - Sun Workshop 6 update 1 Personal Edition.I cannot add standard or user libraries to my projects. The help says you add standard libraries via the Select Standard Libraries tab on the Edit Current Project window and user libraries via the Enter User Libraries tab. ...
287 byte By
rhendrey at 2007-11-25 23:54:09
Hi,I apologize if this is not the correct place to post this question. Is there a way to configure workshop to interface with the ClearCase source code control environment so that I can checkout/checkin source code while editting?Thanks,Raymond Hendrey
While porting a project on solaris8 from 32 to 64 bits, one target failed when it tries to link with libcrypt. There is libcrypt.so in /usr/lib, but there does not appear to be a 64 bit version in /usr/lib/sparcv9. This seems strange to me.There are, however, libraries libcrypt_i.so in both ...
I'm trying to use the list stl class to store a list of a class I've declared. The problem is that I get the following link errors:std::list<MAARCHMetaRec,std::allocator><MAARCHMetaRec> >::iterator std::list<MAARCHMetaRec,std::allocator><MAARCHMetaRec> ...
379 byte By
vlreddy at 2007-11-25 23:54:15
This issue is on Solaris 2.6:I have my source file and I am using some libraries(made by some other person) to make my executable. It is giving Undefined symbols when linking with the libraries. It is complaining about undefined symbols for all the functions(from the libraries) which I am using ...
617 byte By
parsharm at 2007-11-25 23:54:16
My question is: Can we use STL in workshop 5 . I can see the header files but it gives this kind of error .. #include <queue>int main () {using std::queue;queue<int> Q;Q.push(10);}Undefinedfirst referenced symbolin filestd::bad_alloc::__vtbl ...
In the following code, FriendsWithAllExamples should be friends with every template instantiation of class Example. However, if we specialize Example, that specialization is no longer friends with FriendsWithAllExamples.[code]#include <iostream>template<typename T>class ...
1414 byte By
mr_babu at 2007-11-25 23:54:21
Hello,I am trying to Port a C++ Code, which was written on Solaris 2.6 using Sun Workshop 4.2 to Solaris 8 using Forte 6 Update 2.The Code earlier used the roguewave , which came along with Sun Workshop 4.2. Now for the Soalris 8/Forte C++ 6.2 , I have Installed Rogue Wave Source Pro Core.Can ...
1200 byte By
mr_babu at 2007-11-25 23:54:22
Hello All,I am Using Solaris 8 & Forte C++ 6 Update 2.I am trying to compile my project using the following options to compiler+ /opt/SUNWspro/WS6U2/bin/CC -O3 -mt -xtarget=generic64 -D_THREAD_SAFE -features=no%conststrings -library=iostream -D_REENTRANT -D_RWCONFIG=12d ...
413 byte By
mazeing at 2007-11-25 23:54:23
I've developed a system on Solaris 2.5.1 that (in the past) I have always installed myself, but it's getting to the point where I can't do all the installs myself anymore. What I need to find out is how to create a Package such that someone other than me can install the Package using ...
1126 byte By
ndrory at 2007-11-25 23:54:26
Hi there,maybe somebody can give me a hint on the following problem.consider the following code:template<class T>class X{public:float f( int ){ cerr << "f( int )" << endl; return 0.0;}template<class A>int f( A ){ cerr << "f<A>( A )" << endl; return ...
2458 byte By
stimmins at 2007-11-25 23:54:27
Hi,I am getting an unusual linker error while trying to compile something using Forte 6 update 2. First some backgrondWe have an internal application currently running on a Solaris 2.6 box. I wish to move it to a Solaris 8 box. The application uses mainly apache, perl and mysql. One of the perl ...
655 byte By
donatop at 2007-11-25 23:54:28
Hello,can someone tell me why the following C++ file with just 2includes doesn't compile with W6U2 under Solaris 8:test.cpp:#include <ctime>#include <time.h>The C++ standard tells that mixing the 2 versions of standard C headersis allowed. The compiler tells ...
1029 byte By
vicm74 at 2007-11-25 23:54:29
Hi everyone,I've written a simple class (not template), containing one template functions, like te following one:class MyClass{public:template <typename T>typename T::_ptr_type DoSomeThing(int a, int b);};When I am within a function and I need to call DoSomeThing, I have no problems if ...
2829 byte By
iavante at 2007-11-25 23:54:32
The compiler don't recognize the libraries and show the next error:Can anyone help me?cd /remate/fuentes; /opt/SUNWspro/bin/../WS6U1/bin/dmake -f Makefile.root.remRMDS -m serial projectdmake: Warning: Can't find `make.rules': No such file or directoryI/sslcpp4.3.1.L2.solaris.rri/include ...
652 byte By
wag123 at 2007-11-25 23:54:38
i programed with workshop 5 and forte 7the problems like below happened Undefinedfirst referenced symbolin fileint PRISM::sequence<float>::length(int) /usr/local/BeCAMP/lib_64/util/any.oshort&PRISM::sequence<short>::operator[](int)/usr/local/BeCAMP/lib_64/util/any.oint ...
I am trying to find an API that will show me the usage of memory. I am not trying to find a program , I try to find code.... if anyone can help me I would be glad
391 byte By
morelsc at 2007-11-25 23:54:41
How can I implement the following PreProcessor Directives using the Sun WorkShop (CC) compiler? The code below works with the Visual Studio Compiler, the Sun compiler doesn't generate any messages.#ifdef MQCLIENT#pragma message ("Project is setup for an MQ Client Build")#else#pragma message ...
2514 byte By
Mkawaha at 2007-11-25 23:54:43
I want to make the shared library which using STL, and make application using this liblary.I suceed making shared liblary which using STL, but failed to building allication program. The error message is following .../opt/SUNWspro/bin/CC -Kpic -g -mt -V -D_REENTRANT -DFSUN -D_DEBUG ...
409 byte By
wlwl127 at 2007-11-25 23:54:44
Hello:I installed fortec++6.0 in solaris 8 (intel platform) in directory /opt/fortec,I also installed SUNWddict.tar.Z in /ddict . But when I enter into my source code directory , such as /ddict/src/drivers/ae/, if I input " make " , the system show "make not found".How can I revise PATH ,so ...
313 byte By
twp1P at 2007-11-25 23:54:45
Does anybody know if a Forte C++ 6 Update 2 license will work with an older version of Workshop, say 5.2? We are having trouble with our new development environment using 6U2 that we are not having with Workshop 5.2 on other machines.Any info would be greatly appreciated.Tom Patterson ...
Hi allI am trying to use SUNWORKSHOP 6UPDATE2 on Solaris 2.8 to check for memory leaks in some code. This requires the librtc.so library to be preloaded usingexport LD_PRELOAD=/opt/SUNWspro/lib/librtc.soAfter this i will execute dbx and it throws the below mentioned error.1: ...
1794 byte By
szombath at 2007-11-25 23:54:49
Hi,we are faced with a serious compiler error when using virtual inheritance in connection with template parameters. The example below is stripped down from the gtkmm-1.3.17 (C++ wrapper for Gtk+/Gnome2) code. And as Sun has itself committed to support the GNOME 2.0 Desktop, we hope this can be ...
526 byte By
ahanda at 2007-11-25 23:54:50
hi,1. how would i setup dbx not to read the whole symbol table/debug info while debugging.2. sort of dbx -f (which is not supported), the lazy reading mode.3. using the workshop, and setting the debug option, debugging performance tab, choosing quick mode, delays loading symbol table till u ...
hi,i used gcc 64 bit , my compilation gave me "warnings: cast to integer of different size"which i heard is a run time killer type warning. I made changes from int to long in one placeand that fixed the warningsnow, i got SUN forte 64 bit compiler. i made no changes to the origianl code.I ...