Error in linking C++ STL code  using CC 5.0 on Solaris 2.6

Hi All,
When building a shared dynamic library from C/C++ code using
STL features, I get an a link error, referring to the STL objects in
use.
I use CC WorkShop C++ Compiler 5.0 running on Solaris 2.6.
For example:
using a vector<int> we get :
Undefined Symbol
__1cDstdGvector4Cin0AJallocator4Ci___M__insert_aux6Mpirki_v_
In File aaa.o
using a multimap<int,int> we get :
Undefined Symbol
__1cH__rwstdJ__rb_tree4CinDstdEpair4CkiCi__n0AL__select1st4n0C_Ci__n0BEless4Ci__n0BJallocator4n0C____U__deallocate_buffers6M_v_
In File aaa.o
etc.
Switching (for testing) from shared lib to an exe does not seem
to solve this issue.
Same goes for toggling libCstd & libCrun's link mode (dyn/stat).
Any suggestions would be appreciated!
Thank you,
Gilad

Hi Gilad,
I have a suggestion concerning the std::vector::__insert_aux error:
http://forum.java.sun.com/thread.jspa?forumID=850&threadID=5069680
Some recommended link options are provided in:
http://forum.java.sun.com/thread.jspa?forumID=850&threadID=5104725
Hope this is useful.
Bye.

Similar Messages

  • Return codes using rsh (remote shell) on Solaris

    I am executing a Unix script which does a remote shell call (via rsh) to another script on a remote machine (I am actually executing this from a Java app). The remote script sends a return code when run locally, however, how can I get the calling rsh script to get that return code?
    If I do the following in the rsh script:
    rsh -l resdev morph "/dev/bin/remote_script"
    rc=$?
    echo "$rc\n"
    then the return code that I get is not actually the return code from the remote_scrpit, but it is the return code from the rsh command that is 0 (success) because the rsh command actually executed successfully even though the remote_script could've returned something other than success. How can I get the return code from the remote_script passed back to the rsh calling script? I need to ensure that remote_script executed successfully.
    Jan Miller
    [email protected]
    202-237-9584

    Hi,
    If you have control over the remote script then put as the last line :-
    echo "Run OK" >&2
    On calling Script (or Java Process):
    rsh -l resdev morph "/dev/bin/remote_script" 2> rc.file
    (or pipe stderr to your java process call).
    Check the stderr data='Run OK' to see if successful.

  • Error: multi-linked directory /usr

    Hi all,
    I have an OSB 10.3.0.3.0 AIX client, and not all filesystem are successfully
    backed up: some of them fail with the message
    Error: multi-linked directory /usr
    Error: multi-linked directory /var
    I used the following simple dataset:
    include host myosbclient
    cross local mountpoints
    include path /
    exclude path /dev
    exclude path /proc
    exclude path /tmp
    Can someone tell me what does it mean this error?
    Thanks in advance
    Massimo

    Presumably you mean the OS and df output of the client, correct?
    The client is RHEL 4.7. The OSB server is OEL 6.4.
    The df -h output (redacted using "appname" and "subappname", per employer security policy):
    df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/mapper/VolGroup00-root
    2.0G 251M 1.7G 14% /
    /dev/sda1 190M 13M 168M 8% /boot
    none 4.0G 0 4.0G 0% /dev/shm
    /dev/mapper/VolGroup00-home
    20G 3.4G 16G 19% /home
    /dev/mapper/VolGroup00-opt
    25G 568M 23G 3% /opt
    /dev/mapper/VolGroup00-tmp
    50G 647M 47G 2% /tmp
    /dev/mapper/Data_vg-u01
    79G 67G 8.7G 89% /u01
    /dev/mapper/Data_vg-u02
    24G 524M 22G 3% /u02
    /dev/mapper/Data_vg-u03
    24G 5.3G 18G 24% /u03
    /dev/mapper/Data_vg-u04
    20G 129M 19G 1% /u04
    /dev/mapper/Data_vg-u05
    20G 14G 5.1G 73% /u05
    /dev/mapper/Data_vg-u06
    20G 13G 6.4G 66% /u06
    /dev/mapper/VolGroup00-usr
    5.0G 2.3G 2.4G 49% /usr
    /dev/mapper/VolGroup00-usrlocal
    124M 82M 36M 70% /usr/local
    /dev/mapper/VolGroup00-var
    9.9G 1.3G 8.2G 14% /var
    /dev/mapper/Data_vg-subappname
    992M 11M 930M 2% /u01/subappname
    /u01/subappname 992M 11M 930M 2% /exports/subappname
    /u01/appname/shared 79G 67G 8.7G 89% /exports/shared

  • Error -5002 when adding linked user defined field using DI API

    Hello,
    When I try to add a linked user defined field using DI API I get the error number -5002 with description:
    "The field 'Related Table' should consist of 8 alphanumeric characters with no valid or default values"
    I Get the error when I use the Add method.
    What is the solution for this problem? I use SBO 2005 A SP1 Patch 18
    The code I use is (.NET C# 2.0):
    SAPbobsCOM.IUserFieldsMD uf = (SAPbobsCOM.IUserFieldsMD)company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields);
    uf.Name = "S_BUCO";
    uf.TableName = "OPOR";
    uf.Type = SAPbobsCOM.BoFieldTypes.db_Memo;
    uf.SubType = SAPbobsCOM.BoFldSubTypes.st_Link;
    uf.LinkedTable = "S_BU";
    uf.Description = "Description";
    uf.Add()
    Regards,
    Jeffrey

    Hi Jeffrey,
    Your code above does not match the settings you are using in the UI. In particular, the type and subtype you are setting in code are not correct.
    To create the UDF via code, set the field types as follows:
    SAPbobsCOM.IUserFieldsMD uf = (SAPbobsCOM.IUserFieldsMD)company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields);
    uf.Name = "S_BUCO";
    uf.TableName = "OPOR";
    uf.Type = SAPbobsCOM.BoFieldTypes.db_Alpha;
    uf.EditSize = 8;
    uf.LinkedTable = "S_BU";
    uf.Description = "Description";
    uf.Add()
    There's no need to set the SubType property as you require a regular alphanumeric field.
    Kind Regards,
    Owen

  • 'Link errors' while compiling Palm OS app using CodeWarrior

    I tried to compile the the sample application given in Oracle 9i lite MDK (Mobile Development Kit) using Codewarrior demo version 8 and it gave me a lot of link errors. Further more the okapi used were being termed as undefined, probably because the librabry files were not found, even though the lib files were included in the project.
    Please help...I've been stuck at this point for quite some time now.
    Regards
    Ripu

    Hi Rao,
    As Timo said, it is difficult to say the exact solution to your problem but you can try below suggestions as well.
    1. Schema check: the entity objects which you are referring might have got schema changes (lets say it is in XX_SCHMEA1 today and now they might be in XX_SCHEMA2, it happened for me in my earlier project where DBA team has moved the tables to a different schema totally). In that case, you need to edit your code to update the correct schema.
    2. Alias check: Open any of the entity for which you got error and check in the editor if it got any wrong alias name infront of it "XX_SCHEMA1.XX_TABLE_1", you can remove this alias and try again ( this happens when you modify the Configuration in AM -> Connection Type, for e.g. you converted it to "JDBC URL" from "JDBC DataSource" and in that case, you can manually delete those alias names infront of all entities because all your VOs are referring to entities without that alias (unless you refresh your vos)
    3. For entities, check the Tables as well as Synonym in case if these tables are synonym in the schema you used for your entities.
    4. Username/Password check: To do a bulk change, right click on Model project->click on "ADF Business Components"->check the connection details and see if anything got changed (like username/password). You can edit and test the connection to see if that is working or not.
    Regards,
    Ravi Nuka.

  • When ever I try to watch any video, from a link or YouTube say, using Firefox, I get a message 'An error as occurred. Please try again later'. It has been this way for some weeks. I don't have this problem using Safari or Opera.

    When ever I try to watch any video, from a link or YouTube say, using Firefox, I get a message ‘An error as occurred. Please try again later’. It has been this way for some weeks. I don’t have this problem using Safari or Opera.

    I believe that our “Werbung problem” adds an additional second hyperlink to the pop-up window. This second link is activated whenever you trigger a saved hyperlink to a Mail.com site.
    I had the same problem and eliminated it by deleting all bookmarks, hyperlinks and automatic links that take firefox to a mail.com address. So I just deleted all bookmarks I had saved for mail.com. I also changed my home page link because it also went to my email at mail.com. I then did a warm boot, opened firefox and re-saved my bookmarks and homepage to the desired addresses. Good luck.

  • Discover: error: The file /a.out was linked by an older link step. Please use the latest compiler to do the link.

    Hi,
    I have installed Solaris studio and wanted to use the memory analyzer from there. I am trying it on a sample program, but it returns the above error and does not instrument the executable. Could you please help me tracing where am I going wrong.
    # which cc
    /opt/SolarisStudio12.3-solaris-sparc-bin/solarisstudio12.3/bin/cc
    # /opt/SolarisStudio12.3-solaris-sparc-bin/solarisstudio12.3/bin/cc -V
    cc: Sun C 5.12 SunOS_sparc 2011/11/16
    # cc -g -O2 test.c
    # file a.out
    a.out:          ELF 32-bit MSB executable SPARC32PLUS Version 1, V8+ Required, dynamically linked, not stripped
    # ldd ./a.out
            libc.so.1 =>     /usr/lib/libc.so.1
            libm.so.2 =>     /usr/lib/libm.so.2
            /platform/SUNW,Sun-Blade-1500/lib/libc_psr.so.1
    # /SolarisStudio12.3-solaris-sparc-bin/solarisstudio12.3/bin/discover -w - ./a.out
    discover: error: The file /a.out was linked by an older link step. Please use the latest compiler to do the link.
    Regards,
    Vikkal

    ok. Thanks for the info.
    Could you check if a small test works on your system ?
    You could use this test :
    % cat a.c
    #include <stdio.h>
    #include <stdlib.h>
    int main()
            int *x = (int*)malloc(100);
            printf("x[0]=%d\n", x[0]);
            return 0;
    % cc a.c -g -xannotate
    % discover -w - -o a.out.disc a.out
    % ./a.out.disc
    ERROR 1 (UMR): accessing uninitialized data "*x" at address 0x8090008 (4 bytes) on the heap at:
            main() + 0xc2  <a.c:8>
                     5:    {
                     6:     int *x = (int*)malloc(100);
                     7:
                     8:=>   printf("x[0]=%d\n", x[0]);
                     9:
                    10:     return 0;
                    11:    }
            _start() + 0x71
        was allocated at (100 bytes):
            main() + 0x5e  <a.c:6>
                    3:
                    4:    int main()
                    5:    {
                    6:=>    int *x = (int*)malloc(100);
                    7:
                    8:      printf("x[0]=%d\n", x[0]);
                    9:
            _start() + 0x71
    x[0]=0
    ***************** Discover Memory Report *****************
    1 allocation at 1 location left on the heap with a total size of 100 bytes
        LEAK 1: 1 allocation with total size of 100 bytes
            main() + 0x5e  <a.c:6>
                    3:
                    4:    int main()
                    5:    {
                    6:=>    int *x = (int*)malloc(100);
                    7:
                    8:      printf("x[0]=%d\n", x[0]);
                    9:
            _start() + 0x71
    DISCOVER SUMMARY:
            unique errors   : 1 (1 total)
            unique warnings : 0 (0 total)

  • Errors (-50) occured when i was using the purchased option from the Quick Links section in the top right corner of the iTunes homepage in my iTunes application on my computer.

    errors (-50) occured when i was using the purchased option from the Quick Links section in the top right corner of the iTunes homepage in my iTunes application on my computer.
    what is it?

    Quoted from the link I provided you with, in your other post.
    These alerts occur due to timeouts or conflicts trying to write a file during download.
    If you encounter this issue while accessing iTunes Store:
    See iTunes 9: "One Moment Please" or "Error (-50)" message when accessing iTunes Store
    If you encounter this issue while while downloading something from the iTunes Store:
    Delete your iTunes Downloads folder, located in:
    Mac OS X:
  ~/Music/iTunes/iTunes Media/Downloads   Note: "iTunes Media" may appear as "iTunes Music. Also, the tilde (~) refers to your Home directory.
    Windows Vista:
  \Users\username\Music\iTunes\iTunes Media\Downloads\
    Windows 7:
  \Users\username\My Music\iTunes\iTunes Media\Downloads\
    Windows XP:
  \Documents and Settings\username\My Documents\My Music\iTunes\iTunes Media\Downloads\
    After locating your iTunes Downloads folder:
    Quit iTunes.
    Delete the Downloads folder on your computer.
    Open iTunes.
    Choose Store > Check for Available Downloads.
    Enter your account name and password.
    If you encounter this issue while while downloading Digital Copies using Windows:
    Use MSCONFIG (directions for Windows XP and Windows Vista/Windows 7) to disable conflicting software.
    If using MSCONFIG steps resolves the issue, you may want to use the System Configuration Utility to turn on the third-party System Services and Startup Items one at a time (restarting your computer after turning on the item or items) to identify which System Service or Startup Item is causing the conflict.
    You can turn all of them back on by selecting the Normal Startup option under the General tab of the System Configuration Utility window, but please note that this may cause the issue to reoccur.
    If you are able to isolate the issue to a particular third-party software, you may wish to contact them to let them know of the conflict.

  • Getting errors while updating links in Indesign document using javascript

    Hi,
    We are updating the links in InDesign document using javascript. After running the script, we are getting the below errors in Adobe InDesign CC debug.
    When closing the document for first time we are getting the below mentioned errors,
    ASSERT 'fRefCount == 0' in c:\development\citius\source\components\database3\revisioneddatabase\SaLRICache.tpp at line 230 failed.
    Erased item list not empty at block delete time
    blockUID = 10486786 not freed
    Internal error: 904 items were leaked!
    After that we are opening the same document for second time, then we are getting the below mentioned errors,
    ASSERT 'ts_DBPubFile->PlacementUIDIsAvailable(uid)' in c:\development\citius\source\components\database3\revisioneddatabase\SaLRIUtils.tpp at line 195 failed.
    DB failed to create UID!
    ASSERT 'this->FindInIDRangeList(fLastCreatedBlockUID) >= 0' in c:\development\citius\source\components\database3\revisioneddatabase\SaLRICache.tpp at line 476 failed.
    ASSERT 'fLastCreatedBlockUID != kInvalidUID && fLastCreatedItemID != 0' in c:\development\citius\source\components\database3\revisioneddatabase\SaLRICache.tpp at line 467 failed.
    ASSERT '(SaLRIUtils<SnapshotID , SnapshotInfo>::ts_DB)->IsValidUID(itemUID)' in ..\..\..\source\components\database3\revisioneddatabase\SnapshotCache.cpp at line 55 failed.
    Please help us to solve this error in InDesign debug.
    Thanks,
    Vimala L

    You're probably better off raising this in the SDK forum.

  • What are all the errors that can be corrected by using tran code rsrv?

    hi all,,
    what are all the errors that can be corrected by using tran code rsrv?
    can anyone list me out a list of errors that can be rectified using rsrv. And let me know the steps involved to rectify those errors using trns code rsrv.
    regds
    hari

    Hi Kalyan,
    I have urgent need of the RSRV DOCS.
    Can you mail it to [email protected]
    I will highly appreciate.
    Thanks in Advance
    SS
    Points will be awarded

  • Ever seen this error message? You tried to use HTML or other restricted code. We, currently, do not allow HTML or other types of code in our message board posts or signatures. Try again with simple text only.

    Trying to load this site
    http://southcarolina.247sports.com/
    and it redirects me to this address
    http://media.247sports.com/Oops.html?aspxerrorpath=/
    and gives me the error message. "You tried to use HTML or other restricted code. We, currently, do not allow HTML or other types of code in our message board posts or signatures. Try again with simple text only. "
    Thanks for your help

    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • Unable to Build VC++ application it showing error 1 LINK : fatal error LNK1104: cannot open file 'NiFieldPoint71D.lib' but I am Using Measurement Studio 2009 ,NI DAQ 7.01 and Field Point 6.05.

    I am having a application in Visual Studio 2003 on Windows XP  , Now I am Migrating the application in Visual Studio 2005 on Windows-7 .
    In my Development PC , I was install Measurement Studio 2009 ,  NI DAQ 7.01 and Field Point 6.05.
    my application is Showing following error:
    Linking...
    LINK : fatal error LNK1104: cannot open file 'NiFieldPoint71D.lib'
    Build log was saved at "file://c:\EdacsNt\Source\SaftyServices\NICfpDAQDl?l\Debug\BuildLog.htm"
    NICfpDAQDll - 1 error(s), 0 warning(s)
    When I copy from NiFieldPoint71D.lib library from Measurement Studio 7.1 and put in :\Program Files\National Instruments\MeasurementStudioVS2005\VCNET\Lib.
    my application is Showing following error:
    1>Linking...
    1>atlsd.lib(atltrace.obj) : error LNK2005: "unsigned int (__stdcall* ATL::g_pfnGetThreadACP)(void)" (?g_pfnGetThreadACP@ATL@@3P6GIXZA) already defined in NiFieldPoint71D.lib(StdAfx.obj)
    1>atlsd.lib(atlbase.obj) : error LNK2005: "class ATL::CAtlWinModule ATL::_AtlWinModule" (?_AtlWinModule@ATL@@3VCAtlWinModule@1@A) already defined in NiFieldPoint71D.lib(StdAfx.obj)
    1>   Creating library ..\..\lib\debug\NICfpDAQDll.lib and object ..\..\lib\debug\NICfpDAQDll.exp
    1>..\..\bin\debug\NICfpDAQDll.dll : fatal error LNK1169: one or more multiply defined symbols found
    I want to ignore NiFieldPoint71D.lib from using project setting(Linker->Input->ignore Specific Library ) but still it is showing same error.
    In the project Setting I am done following setting:
    "C:\Program Files\National Instruments\MeasurementStudioVS2005\VCNET\Lib";"
    C:\Program Files\National Instruments\NI-DAQ\Lib"
    Linker->Input->ignore Specific Library: mfcs71d.lib;libc.lib;'NiFieldPoint71D.lib
    Please provide some solution.
    Thanks
    Nityanand

    You posted this in the LabVIEW forum.
    Are you programming in LabVIEW?
    There is a separate Measurement Studio for VC++ forum. http://forums.ni.com/t5/Measurement-Studio-for-VC/bd-p/231

  • Executed as user: ADMIN\abc-SQLServer. Linked servers cannot be used under impersonation without a mapping for the impersonated login. [SQLSTATE 42000] (Error 7437). The step failed.

    Hi All, 
    We have verified permissions on both sides,current server and linked server, the user has sysadmin.
    Another key piece of information is that this is happening when executing a SQL Job.
    Thanks.

    Related:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/328616e9-42cb-40d7-a4b1-671d6a492d8f/linked-servers-cannot-be-used-under-impersonation-without-a-mapping-for-the-impersonated-login?forum=sqldatabaseengine
    https://support.microsoft.com/kb/2492477?wa=wsignin1.0
    http://sshakespeareblog.co.uk/2013/07/31/sql-linked-server-and-sql-server-agent/
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • Unable to Build VC++ applicatio​n it showing error 1 LINK : fatal error LNK1104: cannot open file 'NiFieldPo​int71D.lib​' but I am Using Measuremen​t Studio 2009

    I am Migrating a application in Visual Studio 2005.
    In my development PC I was install the Measurement Studio 2009
    my application is Showing following error:
    1>Linking...
    1>LINK : fatal error LNK1104: cannot open file 'NiFieldPoint71D.lib'
    1>Build log was saved at "file://c:\EdacsNt\Source\SaftyServices\NICfpDAQDll\Debug\BuildLog.htm"
    1>NICfpDAQDll - 1 error(s), 0 warning(s)
    In the project Setting I am done following setting
    "C:\Program Files\National Instruments\MeasurementStudioVS2005\VCNET\Lib";"
    C:\Program Files\National Instruments\NI-DAQ\Lib"
    but in  "C:\Program Files\National Instruments\MeasurementStudioVS2005\VCNET\Lib";"  directory Not having the 'NiFieldPoint71D.lib' because Measurement Studio 2009 not provide this dll.
    Please provide some solution.
    Thanks
    Nityanand

    You posted this in the LabVIEW forum.
    Are you programming in LabVIEW?
    There is a separate Measurement Studio for VC++ forum. http://forums.ni.com/t5/Measurement-Studio-for-VC/bd-p/231

  • Unable to Build VC++ application it showing error 1 LINK : fatal error LNK1104: cannot open file 'NiFieldPoint71D.lib' but I am Using Measurement Studio 2009

    I am Migrating a application in Visual Studio 2005.
    In my development PC I install the Measurement Studio 2005.
    my application is Showing following error:
    1>Linking...
    1>LINK : fatal error LNK1104: cannot open file 'NiFieldPoint71D.lib'
    1>Build log was saved at "file://c:\EdacsNt\Source\SaftyServices\NICfpDAQDll\Debug\BuildLog.htm"
    1>NICfpDAQDll - 1 error(s), 0 warning(s)
    In the project Setting I am done following setting
    "C:\Program Files\National Instruments\MeasurementStudioVS2005\VCNET\Lib";"
    C:\Program Files\National Instruments\NI-DAQ\Lib"
    but in  "C:\Program Files\National Instruments\MeasurementStudioVS2005\VCNET\Lib";"  directory Not having the 'NiFieldPoint71D.lib' because Measurement Studio 2009 not provide this dll.
    Please provide some solution.
    Thanks
    Nityanand

    You posted this in the LabVIEW forum.
    Are you programming in LabVIEW?
    There is a separate Measurement Studio for VC++ forum. http://forums.ni.com/t5/Measurement-Studio-for-VC/bd-p/231

Maybe you are looking for

  • Saving Search Help - Problem assigning package

    Hi, I have developed a ALV report, Where I have used only one 'Z' table. I want to create search help for a particular input field  in the selection screen. I tried to create search help in se11. After giving all the required information, I am not ab

  • What does this excpetion mean and how do I fix it?

    Exception in thread "main" java.lang.NoClassDefFoundError: script I copied and pasted it from the java tutorials into my own class...i hope that's not illegal but maybe that's why it's apparently having classpath problems? Edited by: cubswar on Mar 2

  • Steps for reversing the reversal document

    Hello Everyone, Automatic payment has been made however bank had confirmed that it was unsuccessful due to technical reason hence payment document KZ was reversed.Next day bank confirmed that payment was successful. Payment document KZ needs to be re

  • An application refuses to uninstall

    I want to uninstall an internet modem application. It refuses to uninstall. I dragged it to the Trash, it returns back to the Launchpad. What do I do to uninstall it?

  • Position Based Busgeting/Personnel Cost Planning

    Hi,  I am new to this topic and so I have some questions which may be very basic.  I apologize in advance. 1. When we extract HR information from R/3 is the position information rolled up or can we get individual records by position ID? 2. Do we need