C++ standard library

I'm looking for the C++ standard library. On linux machines it can be found under /usr/lib/.../libstdc++.a
I would really appreciate any help.
TIA
Geva

Hi There,
The C++ COmpiler includes a shared version of
the C++ Standrad library. It is called
libCstd.so.1.
It is in /usr/lib directory.
If you want to know more on C++ Standrad library, check out Chapter 13 of C++ User's Guide from
http://docs.sun.com and select Forte Developer 6 Update 2 compiler collection.
I hope this helps.
.....jagruti
Developers Technical Support
Sun Microsystems, http://www.sun.com/developers/support

Similar Messages

  • How to use a standard library binary search if I'm not searching for a key?

    Hi all,
    I'm looking for the tidiest way to code something with maximum use of the standard libraries. I have a sorted set of ints that represent quality levels (let's call the set qualSet ). I want to find the maximum quality level (choosing only from those within qualSet ) for a limited budget. I have a method isAffordable(int) that returns boolean. So one way to find the highest affordable quality is to start at the lowest quality level, iterate through qualSet (it is sorted), and wait until the first time that isAffordable returns false. eg.
    int i=-1;
    for (int qual : qualSet) {
         if !(isAffordable(qual))
              return i;
         i++;
    }However isAffordable is a slightly complicated fn, so I'd like to use a binary search to make the process more efficient. I don't want to write the code for a binary search as that is something that should be reused, ideally from the standard libraries. So my question is what's the best way of reusing standard library code in this situation so as to not write my own binary search?
    I have a solution, but I don't find it very elegant. Here are the important classes and objects.
    //simple wrapper for an int representing quality level
    class QualityElement implements Comparable<QualityElement>
    //element to use to search for highest quality
    class HiQualFinderEl extends QualityElement {
         HiQualFinderEl(ComponentList cl) {...}
    //class that contains fair amount of data and isAffordable method
    class ComponentList {
         boolean isAffordable(int qual) {...}
    //sorted set of QualityElements
    TreeSet<QualityElement> qualSet When you create an instance of HiQualFinderEl, you pass it a reference to a ComponentList (because it has the isAffordable() method). The HiQualFinderEl.compareTo() function returns 1 or -1 depending on whether the QualityElement being compared to is affordable or not. This approach means that the binary search returns an appropriate insertion point within the list (it will never act as if it found the key).
    I don't like this because semantically the HiQualFinderEl is not really an element of the list, it's certainly not a QualityElement (but it inherits from it), and it just feels ugly! Any clever suggestions? Btw, I'm new to Java, old to C++.
    If this is unclear pls ask,
    Andy

    Thanks Peter for the reply
    Peter__Lawrey wrote:
    you are not looking for a standard binary searchI'm not using a binary search in the very common I'm searching for a particular key sense, which is the Collections.binarySearch sense. But binary searches are used in other situations as well. In this case I'm finding a local maximum of a function, I could also be solving f(x)=0... is there a nice generic way to handle other uses of binary search that anyone knows of?
    I would just copy the code from Collections.binarySearch and modify itI have this thing about reusing; just can't bring myself to do that :)
    It would be quicker and more efficient than trying to shoe horn a solution which expects a trinary result.Not sure I understand the last bit. Are you referring to my bastardised compareTo method with only two results? If so, I know, it is ugly! I don't see how it could be less efficient though???
    Thanks,
    Andy

  • Problem with HP-UX extended procedures that use C++ Standard library

    I am experiencing a problem with using the C++ standard library on HP-UX inside my extended procedures.
    Here is the definition for the library and procedures:
    -bash-3.2$ more nuhash2.sql
    CREATE OR REPLACE LIBRARY xp_nuencryption_l
    AS
    '/home/jchamber/datasecure/lib/libxp_nuencryption.sl';
    CREATE OR REPLACE PACKAGE xp_nuencryption
    AS
    PROCEDURE xp_nuhash2;
    END xp_nuencryption;
    CREATE OR REPLACE PACKAGE BODY xp_nuencryption
    IS
    PROCEDURE xp_nuhash2
    IS EXTERNAL
    LIBRARY xp_nuencryption_l
    NAME "xp_nuhash2"
    LANGUAGE C;
    END xp_nuencryption;
    Here is the PL/SQL test program:
    -bash-3.2$ more testnuhash2.sql
    SET SERVEROUTPUT ON SIZE 1000000
    DECLARE
    BEGIN
    xp_nuencryption.xp_nuhash2 ();
    END;
    Here is the implementation of the extended procudure - notice how we are using the C++ Standard library:
    -bash-3.2$ more xp_nuhash2.cpp
    #include <string.h>
    #include <iostream>
    #include <fstream>
    class MyException {
    public:
    MyException() {}
    int func(std::ofstream& fout )
    fout << "func: About to throw exception in func()" << std::endl;
    throw MyException();
    extern "C"
    void xp_nuhash2 ()
    std::ofstream fout("/home/jchamber/xp_nuhash2.txt");
    try {
    fout << "xp_nuhash2: About to call func()" << std::endl;
    func(fout);
    catch (MyException& ex) {
    fout << "xp_nuhash2: caught MyException" << std::endl;
    fout << std::flush;
    fout.close();
    Here is how we build the library on HP-UX:
    # compile
    aCC -g -AA DA2.0W DS2.0 +z -c xp_nuhash2.cpp -o xp_nuhash.o
    #link using aCC
    aCC -g -AA DA2.0W DS2.0 +z -b -o /home/jchamber/datasecure/lib/libxp_nuencryption.sl xp_nuhash.o \
    /usr/lib/pa20_64/libstd_v2.a \
    /usr/lib/pa20_64/libCsup_v2.a
    chatr +dbg enable /home/jchamber/datasecure/lib/libxp_nuencryption.sl
    Here is how we test:
    SQL> @nuhash2
    Library created.
    Package created.
    Package body created.
    SQL> @testnuhash2
    DECLARE
    ERROR at line 1:
    ORA-28576: lost RPC connection to external procedure agent
    ORA-06512: at "JCHAMBER.XP_NUENCRYPTION", line 0
    ORA-06512: at line 3
    Now, if i use classic C++ (aCC -AP) it works. The trouble is, we have a lot of code that uses the Standard C++ library and we don't have the time to port it back to classic C++.
    The problem seems to be with an incompatibility with the standard C++ library. What is the magic potion of linker and/or compiler switches that would enable my extended procedures to use the standard C++ library?
    Here is the environment we are using:
    Oracle 9i (64-bit)
    HP UX 11.11
    Regards

    I am experiencing a problem with using the C++ standard library on HP-UX inside my extended procedures.
    Here is the definition for the library and procedures:
    -bash-3.2$ more nuhash2.sql
    CREATE OR REPLACE LIBRARY xp_nuencryption_l
    AS
    '/home/jchamber/datasecure/lib/libxp_nuencryption.sl';
    CREATE OR REPLACE PACKAGE xp_nuencryption
    AS
    PROCEDURE xp_nuhash2;
    END xp_nuencryption;
    CREATE OR REPLACE PACKAGE BODY xp_nuencryption
    IS
    PROCEDURE xp_nuhash2
    IS EXTERNAL
    LIBRARY xp_nuencryption_l
    NAME "xp_nuhash2"
    LANGUAGE C;
    END xp_nuencryption;
    Here is the PL/SQL test program:
    -bash-3.2$ more testnuhash2.sql
    SET SERVEROUTPUT ON SIZE 1000000
    DECLARE
    BEGIN
    xp_nuencryption.xp_nuhash2 ();
    END;
    Here is the implementation of the extended procudure - notice how we are using the C++ Standard library:
    -bash-3.2$ more xp_nuhash2.cpp
    #include <string.h>
    #include <iostream>
    #include <fstream>
    class MyException {
    public:
    MyException() {}
    int func(std::ofstream& fout )
    fout << "func: About to throw exception in func()" << std::endl;
    throw MyException();
    extern "C"
    void xp_nuhash2 ()
    std::ofstream fout("/home/jchamber/xp_nuhash2.txt");
    try {
    fout << "xp_nuhash2: About to call func()" << std::endl;
    func(fout);
    catch (MyException& ex) {
    fout << "xp_nuhash2: caught MyException" << std::endl;
    fout << std::flush;
    fout.close();
    Here is how we build the library on HP-UX:
    # compile
    aCC -g -AA DA2.0W DS2.0 +z -c xp_nuhash2.cpp -o xp_nuhash.o
    #link using aCC
    aCC -g -AA DA2.0W DS2.0 +z -b -o /home/jchamber/datasecure/lib/libxp_nuencryption.sl xp_nuhash.o \
    /usr/lib/pa20_64/libstd_v2.a \
    /usr/lib/pa20_64/libCsup_v2.a
    chatr +dbg enable /home/jchamber/datasecure/lib/libxp_nuencryption.sl
    Here is how we test:
    SQL> @nuhash2
    Library created.
    Package created.
    Package body created.
    SQL> @testnuhash2
    DECLARE
    ERROR at line 1:
    ORA-28576: lost RPC connection to external procedure agent
    ORA-06512: at "JCHAMBER.XP_NUENCRYPTION", line 0
    ORA-06512: at line 3
    Now, if i use classic C++ (aCC -AP) it works. The trouble is, we have a lot of code that uses the Standard C++ library and we don't have the time to port it back to classic C++.
    The problem seems to be with an incompatibility with the standard C++ library. What is the magic potion of linker and/or compiler switches that would enable my extended procedures to use the standard C++ library?
    Here is the environment we are using:
    Oracle 9i (64-bit)
    HP UX 11.11
    Regards

  • How to restore standard library object

    Dear All,
    We have a standard library object 1VK(Absorption costing) deleted from one of our client in Development system.  Please suggest how do we restore this standard library back once again into that client.
    Thanks,
    Raj

    Hello Markus,
    The standard Library 1VK (Cost Centers: Absorption Costing)  which is used in report creations usually done by FI consultants has been deleted in one of our Dev client. We were able to trace out the user. Now we want this std library 1vk to be imported or retrieved once again in the same Dev client.
    Thanks,
    Raj

  • Apache C++ Standard Library 4.2.0 released

    October 29, 2007 -- The Apache C++ Standard Library project
    is pleased to announce that the official stdcxx 4.2.0 release is
    now available for download from the following location:
    http://people.apache.org/dist/incubator/stdcxx/releases/
    For additional details see the stdcxx Download page:
    http://incubator.apache.org/stdcxx/download.html#releases
    The Apache C++ Standard Library [formerly Rogue Wave C++ Standard
    Library] is a full implementation of the C++ Standard Library
    conforming to the ISO/IEC 14882:2003 international standard for
    the programming language C++.
    4.2.0 is a "minor" release of the library that is source and
    backward binary compatible with stdcxx 4.1.x. Programs linked
    with 4.1.x can safely upgrade to 4.2.0 without needing to be
    recompiled. Forward compatibility (i.e., the ability to
    "downgrade" programs linked with stdcxx 4.2.0 to stdcxx 4.1.x)
    is not guaranteed.
    This release of stdcxx contains a large number of bug fixes and
    a number of improvements. For a complete list of issues resolved
    in this release of the project see:
    http://issues.apache.org/jira/secure/IssueNavigator.jspa?mode=hide&requestId=12311754
    This release of stdcxx has been fully certified on the following
    platforms (for additional platform notes see the project's README
    file).
    * Compaq/HP C++
    * Compaq/HP C++ 6.5 and 7.1 on Tru64 UNIX
    * Compaq/HP C++ 7.1 on Tru64 UNIX
    * EDG eccp demo
    * EDG eccp 3.8 on Red Hat Enterprise Linux 5.0, x86_64
    * EDG eccp 3.9 on Solaris 9
    * GCC
    * gcc 4.1.1, Solaris 10, SPARC
    * gcc 4.1.0, SuSE Linux Enterprise Server 10.0, EM64T
    * gcc 4.0.1, Mac OS X (Darwin), x86
    * gcc 3.4.6, Red Hat Enterprise Linux 4, Update 4, AMD64 and EM64T
    * gcc 3.4.4, Cygwin on Windows XP SP 2, x86
    * gcc 3.4.4, FreeBSD 6.2, x86
    * gcc 3.4.4, Red Hat Enterprise Linux 4, Update 2, IA64
    * gcc 3.3.3, SuSE Linux Enterprise Server 9.1, AMD64
    * gcc 3.2.3, Red Hat Enterprise Linux 3, Update 8, EM64T
    * HP aCC
    * aCC 6.13, HPUX 11.23, IPF
    * aCC 6.05, HPUX 11.23, IPF
    * aCC 6.00, HPUX 11.23, IPF
    * aCC 5.57, HPUX 11.23, IPF
    * aCC 3.74, HPUX 11.31, PA-RISC
    * aCC 3.73, HPUX 11.31, PA-RISC
    * aCC 3.73, HPUX 11.23, PA-RISC
    * aCC 3.73, HPUX 11.11, PA-RISC
    * aCC 3.63, HPUX 11.31, PA-RISC
    * aCC 3.63, HPUX 11.23, PA-RISC
    * aCC 3.63, HPUX 11.11, PA-RISC
    * IBM XLC++/VisualAge C++
    * XLC++ 9.0, AIX 5.3, POWER
    * XLC++ 8.0, AIX 5.3, POWER
    * XLC++ 7.0, AIX 5.3, POWER
    * VisualAge C++ 6.0, AIX 5.2, POWER
    * Intel C++
    * Intel C++ 10.0, Red Hat Enterprise Linux 4, Update 4, AMD64 and EM64T
    * Intel C++ 10.0, SuSE Linux Enterprise Server 10.0, EM64T
    * Intel C++ 10.0, Windows 2000 SP 4, x86
    * Intel C++ 10.0, Windows 2003 SP 1, EM64T and x86
    * Intel C++ 10.0, Windows XP SP 2, EM64T and x86
    * Intel C++ 10.0, Windows Vista, EM64T
    * Intel C++ 9.1, Red Hat Enterprise Linux 4, Update 4, AMD64 and EM64T
    * Intel C++ 9.1, Red Hat Enterprise Linux 4, Update 2, IA64
    * Intel C++ 9.1, SuSE Linux Enterprise Server 10.0, EM64T
    * Intel C++ 9.1, Windows 2000 SP 4, x86
    * Intel C++ 9.1, Windows 2003 SP 1, x86
    * Intel C++ 9.1, Windows XP SP 2, x86
    * Microsoft Visual Studio
    * Visual Studio 2008 Beta 2, Windows XP, x86
    * Visual Studio 2005, Windows 2000 SP 4, x86
    * Visual Studio 2005, Windows 2003 SP 1, EM64T and x86
    * Visual Studio 2005, Windows XP SP 2, EM64T and x86
    * Visual Studio 2005, Windows Vista, EM64T
    * Visual Studio 2003, Windows 2000 SP 4, x86
    * Visual Studio 2003, Windows 2003 SP 1, x86
    * Visual Studio 2003, Windows XP SP 2, x86
    * SGI MIPSpro
    * SGI MIPSpro 7.41, IRIX 6.5, MIPS
    * Sun C++
    * Sun C++ 5.9, Red Hat Enterprise Linux 4, Update 4, AMD64 and EM64T
    * Sun C++ 5.9, SuSE Linux Enterprise Server 9.1, AMD64
    * Sun C++ 5.9, Solaris 10, AMD64 and SPARC
    * Sun C++ 5.9, Solaris 9, SPARC
    * Sun C++ 5.8, Solaris 10, AMD64 and SPARC
    * Sun C++ 5.8, Solaris 8, SPARC
    * Sun C++ 5.7, Solaris 10, SPARC
    * Sun C++ 5.6, Solaris 9, SPARC
    * Sun C++ 5.3, Solaris 8, SPARC
    The Apache C++ Standard Library project is seeking volunteers
    interested in contributing to the development, porting, and general
    maintenance of the project. To learn more, subscribe to the
    [email protected] mailing list by sending a blank
    email to [email protected].
    Disclaimer:
    STDCXX is an effort undergoing incubation at the Apache Software
    Foundation (ASF), sponsored by the Incubator PMC. Incubation is
    required of all newly accepted projects until a further review
    indicates that the infrastructure, communications, and decision
    making process have stabilized in a manner consistent with other
    successful ASF projects. While incubation status is not necessarily
    a reflection of the completeness or stability of the code, it does
    indicate that the project has yet to be fully endorsed by the ASF.

    October 29, 2007 -- The Apache C++ Standard Library project
    is pleased to announce that the official stdcxx 4.2.0 release is
    now available for download from the following location:
    http://people.apache.org/dist/incubator/stdcxx/releases/
    For additional details see the stdcxx Download page:
    http://incubator.apache.org/stdcxx/download.html#releases
    The Apache C++ Standard Library [formerly Rogue Wave C++ Standard
    Library] is a full implementation of the C++ Standard Library
    conforming to the ISO/IEC 14882:2003 international standard for
    the programming language C++.
    4.2.0 is a "minor" release of the library that is source and
    backward binary compatible with stdcxx 4.1.x. Programs linked
    with 4.1.x can safely upgrade to 4.2.0 without needing to be
    recompiled. Forward compatibility (i.e., the ability to
    "downgrade" programs linked with stdcxx 4.2.0 to stdcxx 4.1.x)
    is not guaranteed.
    This release of stdcxx contains a large number of bug fixes and
    a number of improvements. For a complete list of issues resolved
    in this release of the project see:
    http://issues.apache.org/jira/secure/IssueNavigator.jspa?mode=hide&requestId=12311754
    This release of stdcxx has been fully certified on the following
    platforms (for additional platform notes see the project's README
    file).
    * Compaq/HP C++
    * Compaq/HP C++ 6.5 and 7.1 on Tru64 UNIX
    * Compaq/HP C++ 7.1 on Tru64 UNIX
    * EDG eccp demo
    * EDG eccp 3.8 on Red Hat Enterprise Linux 5.0, x86_64
    * EDG eccp 3.9 on Solaris 9
    * GCC
    * gcc 4.1.1, Solaris 10, SPARC
    * gcc 4.1.0, SuSE Linux Enterprise Server 10.0, EM64T
    * gcc 4.0.1, Mac OS X (Darwin), x86
    * gcc 3.4.6, Red Hat Enterprise Linux 4, Update 4, AMD64 and EM64T
    * gcc 3.4.4, Cygwin on Windows XP SP 2, x86
    * gcc 3.4.4, FreeBSD 6.2, x86
    * gcc 3.4.4, Red Hat Enterprise Linux 4, Update 2, IA64
    * gcc 3.3.3, SuSE Linux Enterprise Server 9.1, AMD64
    * gcc 3.2.3, Red Hat Enterprise Linux 3, Update 8, EM64T
    * HP aCC
    * aCC 6.13, HPUX 11.23, IPF
    * aCC 6.05, HPUX 11.23, IPF
    * aCC 6.00, HPUX 11.23, IPF
    * aCC 5.57, HPUX 11.23, IPF
    * aCC 3.74, HPUX 11.31, PA-RISC
    * aCC 3.73, HPUX 11.31, PA-RISC
    * aCC 3.73, HPUX 11.23, PA-RISC
    * aCC 3.73, HPUX 11.11, PA-RISC
    * aCC 3.63, HPUX 11.31, PA-RISC
    * aCC 3.63, HPUX 11.23, PA-RISC
    * aCC 3.63, HPUX 11.11, PA-RISC
    * IBM XLC++/VisualAge C++
    * XLC++ 9.0, AIX 5.3, POWER
    * XLC++ 8.0, AIX 5.3, POWER
    * XLC++ 7.0, AIX 5.3, POWER
    * VisualAge C++ 6.0, AIX 5.2, POWER
    * Intel C++
    * Intel C++ 10.0, Red Hat Enterprise Linux 4, Update 4, AMD64 and EM64T
    * Intel C++ 10.0, SuSE Linux Enterprise Server 10.0, EM64T
    * Intel C++ 10.0, Windows 2000 SP 4, x86
    * Intel C++ 10.0, Windows 2003 SP 1, EM64T and x86
    * Intel C++ 10.0, Windows XP SP 2, EM64T and x86
    * Intel C++ 10.0, Windows Vista, EM64T
    * Intel C++ 9.1, Red Hat Enterprise Linux 4, Update 4, AMD64 and EM64T
    * Intel C++ 9.1, Red Hat Enterprise Linux 4, Update 2, IA64
    * Intel C++ 9.1, SuSE Linux Enterprise Server 10.0, EM64T
    * Intel C++ 9.1, Windows 2000 SP 4, x86
    * Intel C++ 9.1, Windows 2003 SP 1, x86
    * Intel C++ 9.1, Windows XP SP 2, x86
    * Microsoft Visual Studio
    * Visual Studio 2008 Beta 2, Windows XP, x86
    * Visual Studio 2005, Windows 2000 SP 4, x86
    * Visual Studio 2005, Windows 2003 SP 1, EM64T and x86
    * Visual Studio 2005, Windows XP SP 2, EM64T and x86
    * Visual Studio 2005, Windows Vista, EM64T
    * Visual Studio 2003, Windows 2000 SP 4, x86
    * Visual Studio 2003, Windows 2003 SP 1, x86
    * Visual Studio 2003, Windows XP SP 2, x86
    * SGI MIPSpro
    * SGI MIPSpro 7.41, IRIX 6.5, MIPS
    * Sun C++
    * Sun C++ 5.9, Red Hat Enterprise Linux 4, Update 4, AMD64 and EM64T
    * Sun C++ 5.9, SuSE Linux Enterprise Server 9.1, AMD64
    * Sun C++ 5.9, Solaris 10, AMD64 and SPARC
    * Sun C++ 5.9, Solaris 9, SPARC
    * Sun C++ 5.8, Solaris 10, AMD64 and SPARC
    * Sun C++ 5.8, Solaris 8, SPARC
    * Sun C++ 5.7, Solaris 10, SPARC
    * Sun C++ 5.6, Solaris 9, SPARC
    * Sun C++ 5.3, Solaris 8, SPARC
    The Apache C++ Standard Library project is seeking volunteers
    interested in contributing to the development, porting, and general
    maintenance of the project. To learn more, subscribe to the
    [email protected] mailing list by sending a blank
    email to [email protected].
    Disclaimer:
    STDCXX is an effort undergoing incubation at the Apache Software
    Foundation (ASF), sponsored by the Incubator PMC. Incubation is
    required of all newly accepted projects until a further review
    indicates that the infrastructure, communications, and decision
    making process have stabilized in a manner consistent with other
    successful ASF projects. While incubation status is not necessarily
    a reflection of the completeness or stability of the code, it does
    indicate that the project has yet to be fully endorsed by the ASF.

  • Got error when call standard library in form personalizations

    There is a standard library OEXOEFRM attached to from OEXOEORD. Now I tried to call a procedure in libary with form personalizations, but got failed.
    Action: Builtin
    Builtin type :execute procedure
    Argument: begin OE_SCHEDULE_ACCESS.SET_SCHEDULE_ACTION ('para1','para2'); end
    When 'apply now', got the error "....could not be evaluated becuase of error ORA-06550: line 3, column 1: PLS-00201:'OE_SCHEDULE_ACCESS.SET_SCHEDULE_ACTION' must be declared.
    My question is how to call form library procedure in form personalizations? What builtin type should be used and any extra steps need to be done?
    Is there any documents on oracle metalink specific to this issue?
    Thank you very much for your help.

    Forms personalization is described in detail in ML Note 279034.1.
    Limitations of personalizations are in note 420518.1
    HTH
    Srini Chavali

  • Relocating a non-standard library with Applescript

    Hello everyone,
    I have been using an ibook for a while now and consequently had my entire 10,000 song library on an external firewire harddrive. Until now...
    Just purchased a new iMac with a nice big 500gb internal harddrive.
    I'd like to relocate the entire library to the new internal harddrive. Although most of my library is structured the way iTunes does it (artists/album folders), about 1000 or so random songs are in other folders. (I only keep complete albums in folders using the "iTunes way") Therefore the iTunes-provided "Consolidate Library" feature will not help me. I want to keep my own structure.
    Through searching the internet, I've found this link that appears to be the solution I'm looking for. http://www.xs4all.nl/~smulleke/2004/06/10/index.html#post200406101029
    However before I do this, the article does make mention of Applescript being able to help my in my cause.
    Are there Applescripts that will ease the process of relocating a non-standard library structure? Or should I go ahead and try this.
    Also, has anyone had any success in a similar situation?
    Thanks.

    Well, you could create your own presets, but that's an awful lot of work. The smart brush is just using gradient map adjustment layers, so you could get the same effect by selecting what you want,  choosing a gradient, and then creating a new gradient adjustment layer. But me, I'd just do a hue/saturation adjustment layer or plain layer in color mode instead.

  • Standard Library Problem

    I am experiencing a sporadic InDesign CS3 problem using the Mac debug version and the PC release version. InDesign is crashing while trying to free up memory inside the C++ standard template library. Typically the flow of control is in ~set() or ~basic_string().
    Has anyone else ever experienced any problems or incompatibilities between InDesign and the C++ standard library? I've looked over the code thoroughly and I'm reasonably sure I'm using the STL correctly. Also, the code runs fine in the Mac release version and the PC debug version.
    Any suggestions would be welcome.
    Thanks

    Thanks for the reply, Eugenio
    I am pretty sure I am not double deleting. Overwriting memory somewhere is possible, however the code works fine on PC debug.
    The problem on the Mac would seem to have been caused by the FORCE_INLINE commands in MemoryStatics.h In our debug version the delete commands were not being made inline, and leaking into the application. Our library allocated memory using the standard allocator, which was then deleted by the K2Memory memory manager. Instantiating a standard template library object similar to the ones used in our library somehow magically makes things work.
    On the PC release version we have got the program to get further by removing all the compiler optimisations, however it is currently crashing when clearing an empty vector.

  • Where are C++ Standard Library Classes for Unicode RFC SDK?

    I have the Unicode RFC SDK and there is a document (sapucdoc.htm) that explains that the C++ standard library classes have SAP_ equivalents. For example:
        string --> SAP_string
    It then says that header files for these classes are named SAP<standard lib name>.hpp. So for the string class:
        string.h --> SAPstring.hpp
    The rfcsdk/include directory does not contain any of the header files.  Where can I find these header files and possibly libraries I need to use the standard C++ libraries with this version of the RFC SDK?
    Thanks.

    Those icons are not accessible directly.
    Try setting the appropriate button type, like following code uses "info light" type to show the "i" icon.
    {cod}
    UIButton *aboutButton=[UIButton buttonWithType: UIButtonTypeInfoLight];
    {code}

  • [SOLVED] Where are standard library functions like getchar() defined?

    I'm new to programming, and I'm curious about the definitions of standard library functions like getchar(), but when I look in stdio.h, all I see are function prototypes. Where is the actual definition? Is it built into the compiler?
    Thanks for your help.
    Last edited by nbtrap (2012-02-21 17:24:31)

    KingX wrote:That would be in stdio.c, stdio.h is the header file.
    Thank you, I think I understand now. Correct me if I'm wrong: stdio.c is source code for glibc, which is compiled into a shared object file that is distributed with the glibc package. My only question would then be: how does the compiler know to link to the object file when it's not explicitly stated. For example when I compile a program, why do I not have to type:
    gcc program.c /usr/lib/libc.so
    and why does
    gcc program.c
    suffice?

  • Java legal stuff-  modifications to the standard library

    I have been programming with Java for about a few months now. I find Java to be a wonderful language. Now I am wondering am I allowed to make a modification to the standard library and use that modification in my programs? Refering to Sun Java SDK. I am just wondering.

    Thank you for the code, never tought about usign reflection. I tend to stay away from reflection as much as I can. Btw: very nicely done.
    We have a really silly task to in Java as part of the lab excersizes for the lessons in programming. We have to make a program that simulates the motion of balls in a panel, the trick is that the balls ofcourse bounce off the enges of the panel but they also collide and bounce of each other. Ok, no problem, soo I did the task with just one Timer. It workd very well. But the assistant didnt accept my solution. Since it was written in the description of the excersize that each ball must be moved by a thread. How stupid is that! Soo I didnt have any good idea on how to achive that. But I do think that a Barrier is the best way to go in this unfortunate circumastance. If you have a better idea please I will be very interested. I mean what I do is I create a barrier and then each ball has
    while(true){
    move()
    barrier.await()
    in the run method. That means each out of n balls will move and then wait. When all the balls will move then I will do collision detection, redraw the panel and pause the frame for about 30 ms thus achivieng the illusion of having about 30 fps and then repeting the process. Soo the Barrier pattern I think should do good in this case. Well I have just been programming for a few months in Java soo I really can only speculate. Now the tricky part is that what if I add a new ball? What I want is simply to increment the nr of parties that the barrier has to n + 1. That will not cause any problems. If I were to decrement there might be some problems. But I dont want to create a new CyclicBarrier everytime a new Ball is created. Soo one way I think might work is to get the source of the CyclicBarrier and add an incrementParties method. Again I am a very inexperienced java beginner soo ....

  • Moving my non standard library

    Dear friends,
    I hope you'll be patient enough to bear with my question.
    My music files are all stored on my iMac internal disk in a /Users/Bob/Music/rja directory with its own internal artist/album/tracks structure.
    In my iTunes Preferences->Advanced, my music library is set to /Users/Bob/Music/rja2014 and NEITHER keep itunes organized nor copy files to iTunes media folder are checked.
    Everything works beautifully, my metadata is now in good shape, artwork etc.
    I am now in the need of moving this music to my external firewire storage and I am not sure how to go about it because of this non standard setup.
    Any guidance would be receive with gratitude !
    OS is Mavericks and iTunes is 11.1.5 (5)
    Thank you in advance.
    Robert

    Because you manually manage music it won't be easy.  If you let iTunes manage your media then you could use iTunes' consolidate feature to move your files to a different drive and have it keep track of them.  If you were moving them to the same drive and manually manage then iTunes will keep track of them.  Moving them to a different drive means all your links will break and thrre's no way to stop it really.  "Moving" to a different drive is really copying and deleting.
    Two options.  One is to copy them to a different drive, then re-add them to a new iTunes library.  Yes, yes, I hear you fuss, but for some who only have smart playlists and don't care about date added and ratings it works perfectly fine.  The smart playlists repopulate everything automatically and as long as you use tagged media most of the metadata travels with the files.
    Another is to move the files, then use a text editor to search and replace the location information for all the tracks in the .xml version of the library file.  Use the .xml version to generate a new previous library with the changed information.  You will still lose some information because the .xml does not 100% duplicate information stored in the .itl file and only iTunes can open that.  If there is absolutely mission-critical information, using Applescripts you can try storing it in some non-standard location such as the comment field, then try to re-create things.  E.g. Make a playlist with all your 5-star ratings files, copy the playlist over to the new library, then use that playlist as a basis for assigning 5 stars to all the items in playlist in the new library.

  • Adding a brush to the "standard" library

    We rarely use 'custom' brushes, normally just using the standard ones that come with CS6 for photo-retouching.
    We'd like to take a custom brush that is saved into another library, and copy it into the standard brush library, so we don't have to switch libraries to use that brush. Is there any way to accomplish this?
    Neil

    Well this is definitely a day for aging reminiscing!  Janee was just about the most helpful, and definitely the nicest, poster to the Usenet Photoshop groups. This would have been the mid 90s in the days of the first Windows versions of Photoshop.  I swapped a couple of emails with her not so long ago — mainly just say thanks for all the help back then, and glad that she is still around and doing her thing.
    I wouldn’t mind betting that myjanee.com was the first ever Photoshop tutorial site on the Internet, and it is wonderful to see how it has stood the test of time.   So anyone else here used to post to the Usenet Photoshop groups?

  • I think there may a bug in C++ standard library.

    Where do I report it?

    Hello,
    I'd put it on Connect:
    http://connect.microsoft.com/VisualStudio
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • Standard library not found--cygwin and -mno-cygwin

    Hi,
    I have been working to get a program to compile on windows using cygwin. When I added the -mno-cygwin flag to the compile line things were moving smoothly until it hit a class that #included <list>. At this point it throws several errors about things not being declared. I have seen this same question posted on several forums (including this one) but none of them have an answer. I'm not sure if it's becuase this problem is so simple that I should know the answer, or if no one that knows has seen the question.
    Below is a portion of the errors. I appreciate any help that may be offered.
    In file included from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/stl_algobase.h:67,
    from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/list:67,
    from ../../src/QTree.h:3,
    from ../../src/QTreeRepository.h:6,
    from PSODA.cpp:2:
    /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cstdlib:181: error: `::strtold' has not been declared
    /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cstdlib:200: error: `__gnu_cxx::strtold' has not been declared
    In file included from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/postypes.h:46,
    from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/iosfwd:50,
    from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/stl_algobase.h:70,
    from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/list:67,
    from ../../src/QTree.h:3,
    from ../../src/QTreeRepository.h:6,
    from PSODA.cpp:2:
    /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:146: error: `::fgetwc' has not been declared
    /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:147: error: `::fgetws' has not been declared
    /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:148: error: `::fputwc' has not been declared
    /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:149: error: `::fputws' has not been declared
    /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:150: error: `::fwide' has not been declared
    /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:151: error: `::fwprintf' has not been declared
    /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:152: error: `::fwscanf' has not been declared
    /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:153: error: `::getwc' has not been declared
    /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:154: error: `::getwchar' has not been declared
    /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:159: error: `::putwc' has not been declared
    /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:160: error: `::putwchar' has not been declared
    /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:161: error: `::swprintf' has not been declared
    /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:162: error: `::swscanf' has not been declared
    /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:163: error: `::ungetwc' has not been declared
    /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:164: error: `::vfwprintf' has not been declared
    /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:166: error: `::vfwscanf' has not been declared
    Message was edited by:
    mebbert
    Message was edited by:
    mebbert

    Thanks for the suggestion Jim. I finally found the answer last night. As I suspected it was fairly simple, but I had a difficult time finding the solution.
    The answer is here: http://www.mingw.org/mingwfaq.shtml#faq-usingwithcygwin
    Basically, if you're using the wrong g++ or gcc, it includes a bunch of stuff that doesn't work. I don't understand why it had the problems it had since all of the problems were from the stl's own include files but you need to change the path so that the MinGW stuff is before the Cygwin stuff. You might also find that afterwards you will have problems with "make." It looks like make 3.8.1 has some issues with ".deps" folders or something. If you do experience a problem that says "multiple targets" or something like that, you can either download make 3.8.0 or use the mingw-make in MinGW/bin.
    Anyway, thanks again Jim for the help. I hope this posting will help others. There is no direct answer on the web for this. I searched long and hard.

Maybe you are looking for