[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::axp-developer

Title:Alpha Developer Support
Notice:[email protected], 800-332-4786
Moderator:HYDRA::SYSTEM
Created:Mon Jun 06 1994
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:3722
Total number of notes:11359

3609.0. "Visual Edge" by HYDRA::DORHAMER () Mon May 12 1997 15:24

    Company Name :  Visual Edge
    Contact Name :  Luc Le Bourdais
    Phone        :  (514)332-6430
    Fax          :  (514)332-5914
    Email        :  [email protected] 
    Date/Time in :  12-MAY-1997 14:21:51
    Entered by   :  Karen Dorhamer
    SPE center   :  MRO

    Category     :  UNIX
    OS Version   :  v4.0B
    System H/W   :  


    Brief Description of Problem:
    -----------------------------
   #1          12-MAY-1997 13:51:51.51                                  NEWMAIL
From:   SMTP%"[email protected]"
To:     alpha-developer <[email protected]>
CC:     Manon Breton <[email protected]>
Subj:   Looking for library libcomplex for C++
  ______________
  \__________  /
=======================================================
    ________  ___/   Luc Le Bourdais        | Visual Edge Software Ltd.
    \______  /       Systems Manager        | 3950 Cote Vertu, Suite 100
      ____  ___/     Voice: (514)332-6430   | St. Laurent, Quebec
      \__  /         Fax:   (514)332-5914   | Canada, H4R 1V4
        _____/       Email: [email protected]   |
        \/
-------------------------------------------------------
Hi,

I want to use some C++ function for the type "complex" and I can't find
the library usually named "libcomplex.a".

The Digital UNIX V4.0B system is fully install on the machine.  I want
to know if I should use another libray or if we should purchase another
package.

Here is a simple program which compiled but doesn't link:

#include <iostream.h>
#include <complex.h>

int main()
{
 complex a(1,2);
 complex b(2,2);
 complex c;

 c = a + b;
 cout << "c = " << c << endl;

 return 0;
}

I got the following result when I tried to compiled it using the command
"cxx complx.cc":

ld:
Unresolved:
operator <<(ostream&, const complex&)


Thank you for your help.


P.S. The Maintenance Agreement Number is: ETF-0007-95
                                System# : 0002
                                Access# : 0761269 ???
                                Access# : 111896

--
______________   ------------------------------------------------------
\__________  /__ Manon Breton                 email: [email protected]
  ________  ___/  \______  /__   Visual Edge Software Ltd.    Tel: (514)
332-6430 (295)
    ____  ___/   3950 Cote Vertu, Suite 100   Fax: (514) 332-5914
    \__  /__     St-Laurent, Quebec H4R 1V4
      _____/     Canada
      \/         ------------------------------------------------------
T.RTitleUserPersonal
Name
DateLines
3609.1isntalled with C++ static class librariesHYDRA::DORHAMERMon May 12 1997 15:2627
        #10         12-MAY-1997 14:20:28.73                                    
    MAIL
    From:   HYDRA::AXPDEVELOPER "[email protected]"
    To:     SMTP%"[email protected]"
    CC:     AXPDEVELOPER
    Subj:   RE: Looking for library libcomplex for C++
    
    Luc,
    
    The library libcomplex.a gets installed in the directory
    /usr/ccs/lib/cmplrs/cxx.  This gets installed with the DEC C++ static class
    libraries when you install the CXXLIBxxx subset from the DEC C++ compiler
    kit.  For example, my Digital UNIX v4.0B system has Digital C++ v5.5
    installed, and the setld command shows that the CXXLIB550 subset is
    installed:
    
    csh> setld -i | grep CXXLIB550 | grep installed
    CXXLIB550            installed  DEC C++ static class libraries
    
    Please check your system to see if this subset has been installed, and
    whether the file /usr/ccs/lib/cmplrs/cxx/libcomplex.a exists.  If this file
    does exist, please let me know and we can investigate further.
    
    Thanks,
    Karen Dorhamer
    Alpha Developer Support
    
3609.2problem loading CXXLIB550 subsetHYDRA::DORHAMERMon May 12 1997 17:4645
        #9          12-MAY-1997 15:38:52.25                                    
    MAIL
    From:   SMTP%"[email protected]"
    To:     [email protected]
    CC:     Manon Breton <[email protected]>
    Subj:   Re: Looking for library libcomplex for C++
    
    Hi Karen,
    
     I did the following:
    
    # ls -l /usr/ccs/lib/cmplrs/cxx/libcomplex.a
    /usr/ccs/lib/cmplrs/cxx/libcomplex.a not found
    
    # setld -i | grep -i cxx
    CXXBASE550           installed  DEC C++ (cxx) for Digital UNIX
    CXXMAN550            installed  DEC C++ and class library manual pages
    CXXV4HDR550          installed  DEC C++ header files for Digital UNIX
    V4.0 or later
    # setld -l /cdrom/cxx550/kit
    setld: All subsets on the kit are already installed
    
    # ls -l
    total 9659
    -r-xr-xr-x   1 root     system   3686400 Mar 20 10:17 CXXBASE550
    -r-xr-xr-x   1 root     system    327680 Mar 20 10:17 CXXLIB550
    -r-xr-xr-x   1 root     system    112640 Mar 20 10:17 CXXMAN550
    -r-xr-xr-x   1 root     system    368640 Mar 20 10:17 CXXSHRDA307
    -r-xr-xr-x   1 root     system     81920 Mar 20 10:17 CXXV3HDR550
    -r-xr-xr-x   1 root     system     92160 Mar 20 10:17 CXXV4HDR550
    -r-xr-xr-x   2 root     system   3532800 Mar 20 10:17 LDBBASE414
    -r-xr-xr-x   2 root     system   1628160 Mar 20 10:18 LDBGUI414
    drwxr-xr-x   2 root     system      1024 Mar 28 13:25 instctrl
    
    # cxx -V
    cxx  (cxx)
    DEC C++ V5.5-004 on Digital UNIX (Alpha)
    
    Can I bypass the setld -l by uncompressing the CXXLIB550 file?
    
    When I did the cxx installation I selected all subsets.
    
    Thanks,
    Luc
    
3609.3I'll try it hereHYDRA::DORHAMERMon May 12 1997 18:0913
       #1          12-MAY-1997 17:08:51.04                                 
    NEWMAIL
    From:   HYDRA::AXPDEVELOPER "[email protected]"
    To:     SMTP%"[email protected]"
    CC:     AXPDEVELOPER
    Subj:   Re: Looking for library libcomplex for C++
    
    Luc,
    
    I will install the C++ v5.5 kit on my workstation and get back to you on the
    proper procedure to get the libcomplex.a library loaded on your system.
    
    Karen
3609.4need to install CXLLIBA410HYDRA::DORHAMERTue May 13 1997 15:0522
        #1          13-MAY-1997 14:01:42.53                                 
    NEWMAIL
    From:   HYDRA::AXPDEVELOPER "[email protected]"
    To:     SMTP%"[email protected]"
    CC:     AXPDEVELOPER
    Subj:   Re: Looking for library libcomplex for C++
    
    Luc,
    
    It turns out that the subset CXXLIB550 only gets installed on versions of
    Digital UNIX prior to v4.0.  For Digital UNIX v4.0 and up, the CXLLIBA4xx
    subset must be installed to load the libcomplex.a library.  This subset
    is on one of the CD's that comes with the Digital UNIX v4.0 operating 
    system CD kit.  On your Digital UNIX v4.0B system, the subset name is
    CXLLIBA410.  Please check whether this is installed on your system.  If 
    not, mount the Digital UNIX v4.0B Associated Products Volume 1 CD.  The 
    subset can be found in the ALPHA/DEC_C++_RTL directory on the CD.  Please 
    load this on your system and let me know if this resolves your problem.  
    My apologies for the earlier confusion on the location of the libcomplex.a 
    library.
    
    Karen Dorhamer
3609.5problem reproduced hereHYDRA::DORHAMERTue May 13 1997 15:4721
        #1          13-MAY-1997 14:46:39.57                                 
    NEWMAIL
    From:   HYDRA::AXPDEVELOPER "[email protected]"
    To:     SMTP%"[email protected]"
    CC:     AXPDEVELOPER
    Subj:   RE: Looking for library libcomplex for C++
    
    Luc,
    
    I tried your test case on a system here, and I am getting the same error
    that you reported.  I have both libcomplex.a and libcomplex.so installed
    on my system.  I'll report this problem to our C++ compiler group.  One
    other thing for you to note - by default the shared versions (.so) of the
    libraries get linked in, so you really need to have libcomplex.so if you
    are linking -call_shared (the default).  This library gets loaded with the
    CXLSHRDA410 subset which is also located on the Associated Products 
    volume 1 CD.  It gets installed in the /usr/ccs/lib/cmplrs/cxx directory.
    
    Karen Dorhamer
    Alpha Developer Support
    
3609.6link in libcomplexHYDRA::DORHAMERTue May 13 1997 16:0417
        #1          13-MAY-1997 15:03:16.30                                 
    NEWMAIL
    From:   HYDRA::AXPDEVELOPER "[email protected]"
    To:     SMTP%"[email protected]"
    CC:     AXPDEVELOPER
    Subj:   Re: Looking for library libcomplex for C++
    
    Luc,
    
    I was able to get your test case to link successfully by specifically
    linking in the libcomplex library:
    
    cxx complex.cxx -lcomplex
    
    Let me know if this helps you out.
    
    Karen
3609.7installed libcomplex.aHYDRA::DORHAMERFri May 16 1997 12:0622
    From:   SMTP%"[email protected]" 13-MAY-1997 15:59:57.34
    To:     [email protected]
    CC:
    Subj:   Re: Looking for library libcomplex for C++
    
    Hi Karen,
    
      Thanks, I was able to install CXLLIBA410. Now I do have /usr/ccs/lib/
    libcomplex.a. Manon will try to rebuild usin -lcomplex flag.
    
    This is what I did.
    # setld -i | grep -i CXLLIBA410
    CXLLIBA410                      DEC C++ Class Archive Libraries
    # setld -l /cdrom/ALPHA/DEC_C++_RTL
     Choices (for example, 1 2 4-6): 1
    CXLLIBA410 software installed successfully.
    # setld -i | grep -i CXLLIBA410
    CXLLIBA410           installed  DEC C++ Class Archive Libraries
    
    Thanks,
    Luc
       
3609.8all setHYDRA::DORHAMERFri May 16 1997 12:0711
    From:   SMTP%"[email protected]" 13-MAY-1997 16:29:42.37
    To:     [email protected]
    CC:
    Subj:   Re: Looking for library libcomplex for C+
    
    Thanks again Karen,
    
      Every thing works fine.
    
    Regards,
    Luc