Unresolved symbol: std::basic_ostream char,std::char_trai ...

Hi,
Below is a simple app that I created which demonstrates the mysterious compilation problems that I am seeing. I get the following unresolved symbol :
Undefined first referenced
symbol in file
std::basic_ostream<char,std::char_traits<char> >&std::operator<<(std::basic_ostream<char,std::char_traits<char> >&,const char*) ./libIOTestSD.a(iotest.o)
std::cout ./libIOTestSD.a(iotest.o)
[Hint: static member std::cout must be defined in the program]
I am using workshop 6.1 for comilation. I would appreciate any help on this.
Thanks in advance.
Ranga.
#ifndef COM4
#include <iostream>
using namespace std ;
#else
#include <iostream.h>
#endif
class IOTest {
public:
IOTest() ;
void test(const char* str) ;
private:
ostream _os ;
#include <iotest.hpp>
IOTest::IOTest()
_os = &cout ;
void IOTest::test(const char* str)
_os << str ;
#include "iotest.hpp"
int main(int argc, char** argv)
IOTest iotest ;
const char* SAY = "Hello World!!!\n" ;
iotest.test(SAY) ;
return 0 ;
Compilation commands:
CC -g -pto -mt -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_DEBUG -DDEBUG -KPIC -I. -I../../include -I/opt/ws6.1/SUNWs
pro/WS6U1/include/CC/Cstd -o iotest.o -c iotest.cpp
CC -o ./libIOTestSD.a -g -pto -mt -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_DEBUG -DDEBUG -xar iotest.o
CC -g -pto -mt -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_DEBUG -DDEBUG -KPIC -I. -I../../include -I/opt/ws6.1/SUNWs
pro/WS6U1/include/CC/Cstd -o testapp.o -c testapp.cpp
CC -o testapp -g -instances=static -mt +d -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DUNIX -DUNICODE -D_UNICODE  -D_DEB
UG -DDEBUG -z text -z defs -G -KPIC testapp.o -Bstatic -lCstd -lCrun -Bstatic -lIOTestSD -Bdynamic -lgen -lm -lw -lcx
-lc

This went away when I moved around the libraries on the link line. Some how I was under the impression that order is not important in newer versions of compilers, but whatever it worked... Also I had to remove -z text.
So, the new compilation command would be
CC -o testapp -g -instances=static -mt +d -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DUNIX -DUNICODE -D_UNICODE -D_DEB
UG -DDEBUG -z defs -G -KPIC testapp.o -Bstatic -lIOTestSD -lCstd -lCrun -Bstatic -Bdynamic -lgen -lm -lw -lcx -lc
Thanks all,
Rg

Similar Messages

  • Symbol versus Symbol Std

    Since FM8, I use Unicode fonts since it's the only sensible way for multilingual documents. Also, I use Adobe Pi Std for special graphical symbols instead of Wingdings or type 1 Dingbats etc, since it is Unicode and installed with FM8, which makes it much more robust and safe than using encoding in the ascii range. Likewise, Courier Std is used instead of Courier.
    However, Symbol is special in FM: I considered to switch to Symbol Std, since it is also installed by FM8, and is a Unicode-only font. However, for equations, FM still uses regular Symbol rather than Symbol Std! This cannot be changed, despite Symbol Std is in the standard FM directory (fminit/fonts/adobe)! This speaks for continuing to use Symbol rather than going for Symbol Std. (Tested by making a PDF and then checking the fonts.) On the other hand, when I copy from a PDF-saved version of the file and paste into FM, a character that used regular Symbol becomes encoded in the Unicode range (above ascii) when pasted into FM (thus requiring Symbol Std instead of Symbol). This latter behavior speaks for using Symbol Std whenever possible, but if so, the PDF file may very well embed BOTH Symbol versions if I have both an equation and some symbols, and this mix seems inelegant to me.
    I am interested in hearing other's view on this.
    FYI: As for distilling into PDF, I always have the 'Adobe PDF Printing Preferences' set to always include fonts when generating postscript, since not doing this will often crash FM, no matter what fonts you use. A well-known issue with FM since many versions.

    Harald,
    The font definitions for the equation characters are all stored in the
    \fminit\mathchar.cfg file. You can swap out the Symbol if you wish.
    Just make a backup copy of this file before you start changing it. ;-)

  • Symbol Std with FM?

    In a thread a while back, Harald Brandt mentioned that Symbol Std was installed with FM 8.   Does anybody know if it's also installed with FM 9 or Acrobat Pro 9?
    I'm trying to troubleshoot somebody else's FM9 install, but I don't want to have to reinstall mine in order to figure out if it does in fact come with Symbol Std.
    My file is dated Aug 2003, so I don't think mine came with FM 8 or 9.

    Sheila,
    It should be with FM9.
    In the FM9 \fminit\fonts\adobe folder there should be the following OTF fonts (dated 8/28/2008) :
    KozMinPr6N-Regular.otf
    KozMinPr6N-Light.otf
    KozMinPr6N-Medium.otf
    KozMinPr6N-Heavy.otf
    KozMinPr6N-Bold.otf
    KozMinPr6N-ExtraLight.otf
    KozGoPr6N-Medium.otf
    KozGoPr6N-Regular.otf
    KozGoPr6N-ExtraLight.otf
    KozGoPr6N-Heavy.otf
    KozGoPr6N-Light.otf
    HeiseiMinStd-W3.otf
    KazurakiStd-Light.otf
    KozGoPr6N-Bold.otf
    AdobeHeitiStd-Regular.otf
    HeiseiKakuGoStd-W5.otf
    AdobeKaitiStd-Regular.otf
    AdobeFangsongStd-Regular.otf
    KozMinProVI-Regular.otf
    AdobeMyungjoStd-Medium.otf
    AdobeSongStd-Light.otf
    AdobeMingStd-Light.otf
    AdobePiStd.otf
    MinionPro-Semibold.otf
    MinionPro-SemiboldIt.otf
    SymbolStd.otf
    CourierStd.otf
    CourierStd-Bold.otf
    CourierStd-BoldOblique.otf
    CourierStd-Oblique.otf
    LetterGothicStd.otf
    LetterGothicStd-Bold.otf
    LetterGothicStd-BoldSlanted.otf
    LetterGothicStd-Slanted.otf
    MinionPro-Bold.otf
    MinionPro-BoldIt.otf
    MinionPro-It.otf
    MinionPro-Regular.otf
    MyriadPro-Bold.otf
    MyriadPro-BoldIt.otf
    MyriadPro-It.otf
    MyriadPro-Regular.otf
    NewsGothicStd.otf
    NewsGothicStd-Bold.otf
    NewsGothicStd-BoldOblique.otf
    NewsGothicStd-Oblique.otf
    AGaramondPro-Bold.otf
    AGaramondPro-BoldItalic.otf
    AGaramondPro-Italic.otf
    AGaramondPro-Regular.otf
    AGaramondPro-Semibold.otf
    AGaramondPro-SemiboldItalic.otf

  • System.LoadLibrary + dlopen -- callback causes unresolved symbol

    Hi guys,
    I am currently trying to use the API
    System.loadLibrary(String name)in order to dynamically link shared libaries to SOLARIS JVM.
    I am facing some unresolved symbol at run-time .
    I load a shared library libhello1 (using system.LoadLibary)
    and I call from this lib (via JNI interface) a method which
    loads a second library libhello2(using dlopen) and invokes hello2().
    hello2 will call back a method hello_bug which is implemented in libhello1.
    There is the a mutual or cyclic dependence. This dependance is correctly handled if I link the libhello1 to a standard C implemented executable.
    But if I load libHello1 via System.Load, the second lib is correctly loaded but the call back is not possible due to unresolved symbol.
    It seems like the symbols are not kept in this case(or the dlopen creates a different thread?...)
    The workaround to fix the issue is to link explicitely libHello1 to libHello2 when building libHello2.
    I don't know if this is clear to everyone so
    I have reproduced this on a very simple case.
    Basicaly, I have implemented in standard C language 2 shared libraries:
    libHelloModule1.so, libHelloModule2.so
    one standard executable and one java interface to call the method
    Below is the full code for reproduce:
    hello1.h:
    #include <dlfcn.h>
    #include <stdlib.h>
    #include <stdio.h>
    #include <iostream>
    #include <jni.h>
    #include "hello_jni.h" [u]//automatically generated by javah -- ref Makefile[/u]
    extern "C"  void hello_bug();
    hello1.cc :#include "hello1.h"
    extern "C" {
    JNIEXPORT void JNICALL Java_com_helloworld_Hello_ShowMessage
      (JNIEnv *, jobject, jstring){
    void *handle;
    const  char *error;
    void  (*init) (void);
    printf(" load Hello2 \n");
    handle = dlopen ("libHelloModule2.so", RTLD_LAZY);
    printf (" lib Hello2 onload.. \n");
    error = dlerror();
    if (!handle) {
          printf ("lib HelloModule2 not loaded correctly %s \n", error);
          exit(1);
       dlerror();
       init =(void(*)())  dlsym(handle, "hello2");
      error = dlerror();
            if(error)
                    fprintf(stderr, "Could not find print_hello(): %s\n",
    error);
                    exit(1);
    (*init)();
        dlclose(handle);
    void hello_bug()
    printf ("Hello bug correctly  invoked : CQFD\n");
    }// extern "C"
    hello2.cc
    #include "hello1.h"
    typedef void  ( *PF1) (char *, char *);
    extern "C" {
    void hello2(){
    printf ("Hello2 : ping Hello1\n");
    /*simple call work in c not via JNI*/
    hello_bug();
    Hello.java :
    package com.helloworld;
    import java.util.*;
    import java.io.*;
    public class Hello  {
      private native void ShowMessage(String msg);
      public void initialized() {
                System.out.println(" ShowMessage - called");
      try {
              ShowMessage("Generated with JNI");
           } catch (Exception e ) {
                e.printStackTrace();         }
      public Hello(){
      System.loadLibrary("HelloModule1");
                System.out.println(" HelloModule1 loaded");
    TestLocal.java :
    import java.util.*;
    import java.io.*;
    import com.helloworld.Hello;
    public class TestLocal{
    public TestLocal(){
            System.out.println("test local");
    public static void main(String[] args) {
            TestLocal test_local = new TestLocal();
            Hello test = new Hello();
            test.initialized();
    }THE MOST IMPORTANT IS IN THE MAKEFILE:
    Makefile :all: Hello.jar hello_jni.h libHelloModule1.so libHelloModule2.so TestLocal.class dummy
    Hello.jar: com/helloworld/Hello.class
    jar cvf $@  com/helloworld
    com/helloworld/Hello.class: Hello.java
    $(JAVAC)  -d . Hello.java
    hello_jni.h: Hello.jar
    $(JAVAH) -jni -o $@ -classpath ./Hello.jar com.helloworld.Hello
    libHelloModule1.so : hello_jni.h hello1.o  
    gcc  -G  -o $@ hello1.o -lstdc++
    libHelloModule2.so : hello2.o
    gcc   -G  -o $@ hello2.o -Wl -lstdc++  -L. -lHelloModule1   [u] # -->CASE  1 :THIS WORKS [/u]
    gcc   -G  -o $@ hello2.o -Wl -lstdc++ [u] #-->CASE 2 :THIS  DOES NOT WORK[/u]
    dummy : dummy_main.o
    gcc  -o $@ dummy_main.o -L. -lHelloModule1 -L/usr/local/lib -lstdc++
    hello2.o : hello2.cc
    gcc -I. -O -c  hello2.cc
    hello1.o : hello1.cc
    gcc -I. -O -c  hello1.cc
    TestLocal.class : TestLocal.java
    $(JAVAC) -classpath  . -d . TestLocal.java
    dummy_main.o :  dummy_main.cc
    gcc -I. -O -c  dummy_main.cc
    clean:
    rm -rf com *.o *.so *.class *.jar hello_jni.h dummyCASE 1 : libHelloModule1.so is explicitely linked to libHelloModule2
    myhost % dummy
    load Hello2
    lib Hello2 onload..
    Hello2 : ping Hello1
    Hello bug correctly invoked : CQFD
    myhost % java -cp . TestLocal
    test local
    HelloModule1 loaded
    ShowMessage - called
    load Hello2
    lib Hello2 onload..
    Hello2 : ping Hello1
    Hello bug correctly invoked : CQFD
    CASE 2 : libHelloModule1.so is not explicitely linked to libHelloModule2
    myhost % dummy
    load Hello2
    lib Hello2 onload..
    Hello2 : ping Hello1
    Hello bug correctly invoked : CQFD
    myhost % java -cp . TestLocal
    test local
    HelloModule1 loaded
    ShowMessage - called
    load Hello2
    lib Hello2 onload..
    lib HelloModule2 not loaded correctly ld.so.1: java: fatal: relocation error: file ./libHelloModule2.so: symbol hello_bug: referenced symbol not found
    My concern is to have this working in CASE1 with the JNI interface the same way it does in standard C built runtime.
    So does any have encountered this?
    Is there something I missed somewhere?
    Thanks lot for your help
    Youss

    Hi,
    I have implemented JNative which seems to be close to your problem.
    It works under Windows and Linux, and loads libraries via dlopen and dlsym.
    You can have a look at it's implementation at http://jnative.cvs.sourceforge.net/jnative/JNativeCpp/
    Don't forget to load your libraries before trying to call them with System.load("/path/to/your/lib.so"); if they are not referenced by LD_LIBRARY_PATH.
    This post may be false since I know nothing about Solaris. Perhaps JNative may be ported under Solaris ?
    --Marc (http://jnative.sf.net)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Unresolved symbols while linking

    Hello all,
    I'm toying around with oo4o and I'm having a linking problem. I'm working in VS.NET 2003.
    I added the directories for headers, excutables, libraries, etc. At first I had 9 unresolved symbol errors, but I got it down to 2 by remembering to link with oraclm32.lib (debug copy). Not sure why those 2 errors are still there. My test function is basically the first sample in the Help docs, something like this:
         OStartup();
         ODatabase odb("ora9", "username", "passwd");
         ODynaset odyn(odb, "select * from emp");
         double salary;
         while (!odyn.IsEOF())
         odyn.GetFieldValue("sal", &salary);
    odyn.MoveNext();
         OShutdown();
    The relevant parts of the buildlog. Once I added the additional command line option to link with oraclm32, everything resolved except references to OStartup and OShutdown. Seems odd. Any ideas?
    Buildlog:
    Searching libraries
    Searching C:\oracle\ora92\oo4o\CPP\LIB\oraclm32.lib:
    Found "__declspec(dllimport) public: virtual __thiscall ODatabase::~ODatabase(void)" (__imp_??1ODatabase@@UAE@XZ)
    Referenced in Dataconnect.obj
    Loaded oraclm32.lib(ORACLM32.dll)
    Found "__declspec(dllimport) public: virtual __thiscall ODynaset::~ODynaset(void)" (__imp_??1ODynaset@@UAE@XZ)
    Referenced in Dataconnect.obj
    Loaded oraclm32.lib(ORACLM32.dll)
    Found "__declspec(dllimport) public: int __thiscall ODynaset::MoveNext(int)" (__imp_?MoveNext@ODynaset@@QAEHH@Z)
    Referenced in Dataconnect.obj
    Loaded oraclm32.lib(ORACLM32.dll)
    Found "__declspec(dllimport) public: int __thiscall ODynaset::GetFieldValue(char const *,double *)const " (__imp_?GetFieldValue@ODynaset@@QBEHPBDPAN@Z)
    Referenced in Dataconnect.obj
    Loaded oraclm32.lib(ORACLM32.dll)
    Found "__declspec(dllimport) public: int __thiscall ODynaset::IsEOF(void)const " (__imp_?IsEOF@ODynaset@@QBEHXZ)
    Referenced in Dataconnect.obj
    Loaded oraclm32.lib(ORACLM32.dll)
    Found "__declspec(dllimport) public: __thiscall ODynaset::ODynaset(class ODatabase const &,char const *,long,class OSnapshotID *)" (__imp_??0ODynaset@@QAE@ABVODatabase@@PBDJPAVOSnapshotID@@@Z)
    Referenced in Dataconnect.obj
    Loaded oraclm32.lib(ORACLM32.dll)
    Found "__declspec(dllimport) public: __thiscall ODatabase::ODatabase(char const *,char const *,char const *,long)" (__imp_??0ODatabase@@QAE@PBD00J@Z)
    Referenced in Dataconnect.obj
    Loaded oraclm32.lib(ORACLM32.dll)
    SNIP
    Dataconnect.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __fastcall OShutdown(void)" (__imp_?OShutdown@@YIXXZ) referenced in function "long __fastcall PostData(char *)" (?PostData@@YIJPAD@Z)
    Dataconnect.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __fastcall OStartup(int)" (__imp_?OStartup@@YIHH@Z) referenced in function "long __fastcall PostData(char *)" (?PostData@@YIJPAD@Z)

    Hi Guys,
    I got this error too recently. Was troubling me a lot. I was using Windows 7 OS, Visual Studio 2010 compiler.
    The fix for this is pretty much straight forward and solution lies in the Project settings only.
    To my knowledge, with /MDd switch, it causes the compiler to place the library name MSVCRTD.lib into the .obj file.
    But with /MTd switch, This option just causes the compiler to place the library name LIBCMTD.lib into the .obj file so that the linker will use LIBCMTD.lib to resolve external symbols. For details, please refer to this MSDN article:
    https://msdn.microsoft.com/en-us/library/2kzt1wy3(VS.71).aspx
    Its very useful.
    Also
    MDd stands for Multi-threaded Debug DLL
    MTd stands for Multi-threaded Debug
    Thanks,
    Kiran

  • XmlSaveDom unresolved symbol, and special characters in output...

    I have a couple of issues with XmlSaveDom() that I'm hoping someone can help with...
    Firstly, under windows I'm having difficulty locating the library that it lives in. I'm linking to:
    oraxml10.lib (from the 10.1.0.2 XDK, the latest version I can find) and oci.lib (from the 10.2 client)...but getting an unresolved symbol on XMLSaveDom().
    I'm using the XDK because under windows I only have a client install which does not appear to have any of the XML headers or libraries in it. I'm using
    10.1.0.2 because it's the latest version I can find to download from technet.
    Secondly, under Solaris I'm just linking to libclntsh.so from 10.1.0.2 server home, and this resolves XMLSaveDom() ok. However when I use XMLSaveDom() I find unusual special characters in the output periodically:
    ÿ¾Ý <SOME_TAG>some_value</SOME_TAG>
    The strange character sequence is always the same.
    Any help with either of these would be greatly appreciated.

    The DOM is not required to escape the characters, so it is correct that you get the literal ampersand characters when you ask the DOM for a getNodeValue().
    When an XML document is serialized -- using, for example, the XMLDocument.print() method -- it is when this external form of the document is produced that escaping occurs.
    You can always call XMLNode.print() to serialize the value of a node and it's children into a PrintWriter that wraps a StringWriter to get the string equivalent of the properly escaped values.

  • Unresolved symbol: U_get_previous_frame_x in intermedia

    Hi All
    I am getting the following error while running a test command "exec ctx_output.start_log('log')"
    /usr/lib/dld.sl: Unresolved symbol: U_get_previous_frame_x (code) from /opt/ims
    /oracle/product/RDBMS/8.1.5/ctx/lib/libctxx8.sl
    /usr/lib/dld.sl: Unresolved symbol: U_get_frame_info (code) from /opt/ims/oracl
    e/product/RDBMS/8.1.5/ctx/lib/libctxx8.sl
    BEGIN ctx_output.start_log('log'); END;
    ERROR at line 1:
    ORA-20000: ConText error:
    ORA-06520: PL/SQL: Error loading external library
    ORA-06522: Unresolved external
    ORA-06512: at "CTXSYS.DRUE", line 122
    ORA-06512: at "CTXSYS.CTX_OUTPUT", line 39
    ORA-06512: at line 1.
    Can some body help me on this please.....
    This is very urgent.
    Regards
    UDay
    null

    Hi Tofubug,
    Since I'm not familiar about C#, however, if want to run powershell script in C#, the script below may be helpful for you:
    RunspaceConfiguration runspaceConfiguration = RunspaceConfiguration.Create();
    Runspace runspace = RunspaceFactory.CreateRunspace(runspaceConfiguration);
    runspace.Open();
    RunspaceInvoke scriptInvoker = new RunspaceInvoke(runspace);
    Pipeline pipeline = runspace.CreatePipeline();
    //Here's how you add a new script with arguments
    Command myCommand = new Command(scriptfile);
    CommandParameter testParam = new CommandParameter("key","value");
    myCommand.Parameters.Add(testParam);
    pipeline.Commands.Add(myCommand);
    // Execute PowerShell script
    results = pipeline.Invoke();
    And these threads for your reference:
    Execute PowerShell Script from C# with Commandline Arguments
    How to run PowerShell scripts from C#
    How do you set FullLanguage mode
    for remote PowerShell from C#?
    If I have any misunderstanding, please feel free to let me know.
    Best Regards,
    Anna Wang

  • Unresolved symbol : OCIEnvCreate (code)  from libocci.sl.10.1

    I'm getting a core dump, with the error message "Unresolved symbol : OCIEnvCreate (code) from libocci.sl.10.1", when I try to execute a simple OCCI code that connects to the database and performs some SQL queries. It is occuring at the following line :
    Environment *env = Environment::createEnvironment(Environment::DEFAULT);
    I'm using oracle 9i (Ver 9.2.0.6.0) on HP-UX (Ver 11),
    I'm using Oracle Instant Client for HP-UX PA-RISC (32-bit) (Version 10.2.0.2) libraries for OCCI.
    Can anyone help me out?

    I'm using aCC compiler, and doing dynamic linking..I've specified the directory path of the .sl files of the instant client in SHLIB_PATH, do I need to specify the path in ORACLE_HOME, or some other env variable??
    Can you tell me steps that I should follow while compiling, linking & execute the code?

  • Unresolved symbol after migrating Pro*C from Oracle 8i to Oracle 10gR2

    Hello,
    We are currently migrating a 32bits application written in Pro*C and Pro*Cobol from Oracle 8i client to Oracle 10gR2 client (Oracle 10gR2 server).
    Precompiling, compiling and linking the source files are ok. But at runtime, the following error appears :
    /usr/lib/dld.sl: Unresolved symbol: __sendpath64 (code) from /logiciel/oracle/client_10203/lib32/libclntsh.sl.10.1
    Here is the command used for pre-compiling, compiling and linking :
    +----> Precompiling Pro*C src/its_execute_lmd.pc ...
    proc maxopencursors=100 hold_cursor=yes release_cursor=yes ireclen=500 oreclen=132 mode=ORACLE code=ANSI_C dbms=v8 unsafe_null=yes ltype=none include=(inc,/logiciel/oracle/client_10203/network/public,/logiciel/oracle/client_10203/plsql/public,/logiciel/oracle/client_10203/precomp/public,/vtcvd10/vcour/common/alimentation_com/afonction_partagee/inc,/logiciel/oracle/client_10203/rdbms/public,/logiciel/oracle/client_10203/rdbms/demo,) iname=src/its_execute_lmd.pc
    Pro*C/C++: Release 10.2.0.3.0 - Production on Mer. Déc. 5 10:16:56 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Valeurs des options système par défaut extraites de : /logiciel/oracle/client_10203/precomp/admin/pcscfg.cfg
    +----> .................... src/its_execute_lmd.c OK
    +----> Compiling src/its_execute_lmd.c ...
    cc -Ae -Iinc -I/logiciel/oracle/client_10203/network/public -I/logiciel/oracle/client_10203/plsql/public -I/logiciel/oracle/client_10203/precomp/public -I/logiciel/oracle/client_10203/rdbms/public -I/logiciel/oracle/client_10203/rdbms/demo -I/vtcvd10/vcour/common/alimentation_com/afonction_partagee/inc -c src/its_execute_lmd.c -o src/its_execute_lmd.o
    +----> .................... src/its_execute_lmd.o OK
    +----> Building its_execute_lmd ...
    cc -Wl,+s -Wl,+n -Llib -L/vtcvd10/vcour/lib -L/logiciel/oracle/client_10203/lib32 -L/logiciel/oracle/client_10203/rdbms/lib32 -o bin/its_execute_lmd src/its_execute_lmd.o -l:libclntsh.sl -l:libits.a
    +----> .................... its_execute_lmd OK
    Here is the SHLIB_PATH var used at runtime :
    SHLIB_PATH=/logiciel/oracle/client_10203/lib32
    I would appreciate any help about this unresolved symbol in the Oracle shared library.
    Thank you in advance.

    What does the program do? It might make more sense, given the tremendous number of changes and enhancements to just rewrite it.

  • Clueless about this "unresolved symbols"

    Hi there!
    I made a portation from Win32 to SunSolaris8 and I finally succeeded compiling my .so. There are no syntactical errors or binding errors when compiling with CC (SunStudio 8).
    But while executing the application which uses my .so I get the error log:
    code:
    The reason /ya/yao55/yao55c5/wisdev/src/ug-ifc/mach/resource/library/tool/tdm/ugs.so failed to load was:
    There are unresolved symbols in the image:
         __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2t6Mrk1IIrkn0C__v_
         __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___M__sun_append6Mrk1_r1_
         __1cH__rwstdRexcept_msg_string2t6MIE_v_
         __1cDstdLlogic_error2T5B6M_v_
         __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___Efind6kMpkcII_I_
         __1cDstdMout_of_rangeG__vtbl_
         __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2G6Mrk1_r1_
         __1cDstdMout_of_range2T6M_v_
         __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___M__sun_concat6kMpkc_1_
         __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___M__sun_append6Mpkc_r1_
         __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___J__nullref_
         __1cH__rwstdbC__rwse_StringIndexOutOfRange_
         __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2t6Mpkcrkn0C__v_
         __1cDstdLlogic_errorG__vtbl_
         __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___Gassign6Mrk1II_r1_
         __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2G6Mpkc_r1_
         __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___Hcompare6kMIIpkcI_i_
         __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___M__sun_concat6kMrk1_1_
         __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___Hreplace6MIIpkcIII_pc_
         __1cDstdbC__RTTI__1nDstdMout_of_range__
         __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___H__clone6M_v_
         __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___I__getRep6MII_pnH__rwstdM__string_re f4Ccn0B_n0C____
    Anyone any idea?
    Do I have to link to some lib of c/c++?
    Thx so far, Micha

    First, you should be linking your shared object (ugs.so) with the flag "-z defs", and probably with "-z defs -z text". By doing this, you will force the errors that you are now getting at runtime to be exposed at build time.
    Second, it looks as if your library is missing the standard C++ library. I don't know what the flags are for Studio 8, but for Forte 6U2 passing -library=Crun,Cstd on the compile and link lines sets things up correctly.

  • FORTE 30M+HP11 - Unresolved symbol __shlinit ?

    Hi,
    Doing a C library using 3.0.G.2 & HP 10.20 enables me
    to link 'helloworld.c' with it and run the resulting a.out.
    Doing the same on 3.0.M & HP 11 enables me to link as
    well, but running a.out I got the following message:
    /usr/lib/dld.sl: Unresolved symbol: __shlinit (code) from
    /opt/forte/bldvsn3/install/lib/libqqxh.sl
    Abort(coredump)
    I tried to get the link command called by fcompile, and change
    the order of libraries but that didn't change the errror message
    What to do ?
    Thanks
    j-paul gabrielli

  • Dwp dumps core. Unresolved symbol: timezone_getDefaultTZID

    Hi,
    Subscribing to another user calendar or resources generates the following messages to the console and dwp dumps core.
    /opt/SUNWcal/calendar/bin> /usr/lib/dld.sl: Unresolved symbol: timezone_getDefaultTZID (code) from ./libcore_parser10.sl
    /usr/lib/dld.sl: Unresolved symbol: timezone_getDefaultTZID (code) from ./libcore_parser10.sl
    /usr/lib/dld.sl: Unresolved symbol: timezone_getDefaultTZID (code) from ./libcore_parser10.sl
    /usr/lib/dld.sl: Unresolved symbol: timezone_getDefaultTZID (code) from ./libcore_parser10.sl
    Platform: HPUX11.11
    Calendar: 2005Q4
    Thanks,
    Toriq

    <pre>
    Hi Donald,
    You should have logged this as new problem under new thread.
    I would suggest to try search for "106327" at
    http://access1.sun.com
    P.S: Use bottom search engine.
    Thanks
    Kalpesh

  • Unresolved symbol with parseInt

    Hi all!
    I'm a newbie in Java and wondering if anyone can help me out
    I've been using the following code:
    int j = new Integer.parseInt(i);
    where i contains a string that is always a number like 18 or 67
    when I run my code I get the unresolved symbol error with the parseInt method. But isn't the java.lang.* already imported? How come I can't use this method? Actually I'm learning my java through JSP so my code is actually in a .jsp page. Does anyone have any idea why I can't use the parseInt method?

    sigh
    what type of Object does 'session.getAttribute("Type")' return?
    if its a String, and is properly formatted, Integer.parseInt((String)session.getAttribute("Type")) will work. (don't 4get about the NumberFormatException)
    if its an Integer object, ((Integer)session.getAttribute("Type")).intValue(); will work.
    rob,
    Thanks I haven't tried that yet but it's similar to
    what I did. This one works:
    int j =
    Integer.parseInt((String)session.getAttribute("Type"));
    I was wondering if I can skip the conversion to string
    and got straight and convert to an integer. Is that
    possible?
    Thanks!

  • Linking with 12.4 beta (using CC -std=c++11, unresolved symbol operator new)

    Hi,
    I've got our code compiling with 12.4 beta now, but linking is proving slightly different to 12.3. If I compile with "CC -std=c++11", then I get link errors:
    Undefined                       first referenced
    symbol                             in file
    operator new[](unsigned long)         foo.o
    operator new(unsigned long)           foo.o
    These can be resolved by using "-std=c++11" when linking using "CC" (a mixture of .o files and archive .a libraries), but this involves modifying many Makefiles to add this extra flag, which isn't required for the Oracle Studio C++ 12.3 compiler.
    Is this expected behaviour? Or shouldn't the compiler figure this out itself when linking?
    Many thanks,
    Jonathan.

    As object files created during the compilation contain references to those runtime libraries you definitely
    need to link with them in order to satisfy those references. In your case it is allocation functions.
    -std=c++11 uses a completely different ABI and a completely different set of runtime libraries compared to the default mode.
    CC -std=c++11 knows which libraries to use (and which library/run paths to set up).
    CC by default links with different set of libraries and sets up a different set of library/run paths.
    Thus you dont have any other options - you need to link with CC -std=c++11.
    Say, if you would compile the sources with g++ and then attempted to link it with Studio result would be the same.
    regards,
    __Fedor.

  • Rename a text symbol(std object)

    Hello Gurus,
    I am applying a SAP note.
    As a part of it , I am supposed to do few code changes.
    Now the steps given asks me to chage two text symbols
    (Both of the text symboles belong to standers SAP reports. And i have alredy entered the modification key. Actually no need to specify)
    But when i am trying to change the text symbole it is popping up a message
    "Text symbol T02 is an original text and cannot be deleted or renamed"
    Please help me with your kind suggestations.
    Thanks in advence!!

    Try copying the text element from edit->copy text symbol, modify this and delete the original text symbol.
    Hope, this helps...

Maybe you are looking for