Linker error: undefined reference to `XMLParser::xmlinit(...)'

Hi,
I downloaded:
"Oracle XML Developer's Kit for C++ for Solaris-9i"
version: 9.2.0.2.0 03/31/02
Now when I try to compile the demo files by doing make the linker gives me the following error:
undefined reference to `XMLParser::xmlinit(...)'
undefined reference to `XMLParser::xmlparse(...)'
undefined reference to `XMLParser::getDocumentElement(void)'
undefined reference to `XMLParser::xmlterm(void)'
Any idea what could be wrong (I am using the same Makefile.defs which comes with this version)
XDK_LIB=-lxmlg9 -lxml9 -lxsd9
ORA_LIB=-lcore9 -lnls9 -lunls9 -lcore9 -lnls9 -lcore9
NET_LIB=-lnsl -lsocket
LIB= -L$(TOP)/lib $(XDK_LIB) $(ORA_LIB) $(NET_LIB)
Thanks,
Usman.

This seems like a C++ problem. I don't think we can help you here.

Similar Messages

  • Linker error----undefined reference to

    Hi
    i'm getting this error on linking ie on executing the command gcj --main=apps -o apps apps.o
    apps is the name of the file.....the code is compliling without error...
    Can anyone tell why this, 'undefined reference to......' error coming and how to correct it
    Here is the complete error msg...plz help
    [root@localhost ~]# gcj --main=apps -o apps apps.o
    apps.o: In function `javax::mail::PasswordAuthentication* SendMailUsingAuthentication$SMTPAuthenticator::getPasswordAuthentication()':
    apps.java:(.text+0x48cc): undefined reference to `javax::mail::PasswordAuthentication::class$'
    apps.java:(.text+0x48e9): undefined reference to `javax::mail::PasswordAuthentication::PasswordAuthentication(java::lang::String*, java::lang::String*)'
    apps.o: In function `SendMailUsingAuthentication$SMTPAuthenticator::SendMailUsingAuthentication$SMTPAuthenticator(SendMailUsingAuthentication*)':
    apps.java:(.text+0x490c): undefined reference to `javax::mail::Authenticator::Authenticator()'
    apps.o: In function `void SendMailUsingAuthentication::run()':
    apps.java:(.text+0x4ca5): undefined reference to `javax::mail::Session* javax::mail::Session::getDefaultInstance(java::util::Properties*, javax::mail::Authenticator*)'
    apps.java:(.text+0x4cd6): undefined reference to `void javax::mail::Session::setDebug(bool)'
    apps.java:(.text+0x4cdd): undefined reference to `javax::mail::internet::MimeMessage::class$'
    apps.java:(.text+0x4cfd): undefined reference to `javax::mail::internet::MimeMessage::MimeMessage(javax::mail::Session*)'
    apps.java:(.text+0x4d0d): undefined reference to `javax::mail::internet::InternetAddress::class$'
    apps.java:(.text+0x4d3c): undefined reference to `javax::mail::internet::InternetAddress::InternetAddress(java::lang::String*)'
    apps.java:(.text+0x4da1): undefined reference to `javax::mail::internet::InternetAddress::class$'
    apps.java:(.text+0x4de4): undefined reference to `javax::mail::internet::InternetAddress::class$'
    apps.java:(.text+0x4e13): undefined reference to `javax::mail::internet::InternetAddress::InternetAddress(java::lang::String*)'
    apps.java:(.text+0x4e82): undefined reference to `javax::mail::internet::InternetAddress::class$'
    apps.java:(.text+0x4ea5): undefined reference to `javax::mail::internet::InternetAddress::InternetAddress(java::lang::String*)'
    apps.java:(.text+0x4ee7): undefined reference to `javax::mail::Message$RecipientType::class$'
    apps.java:(.text+0x4ef1): undefined reference to `javax::mail::Message$RecipientType::TO'
    apps.java:(.text+0x4fb1): undefined reference to `void javax::mail::Transport::send(javax::mail::Message*)'
    apps.o:(.data+0x3168): undefined reference to `javax::mail::PasswordAuthentication* javax::mail::Authenticator::requestPasswordAuthentication(java::net::InetAddress*, int, java::lang::String*, java::lang::String*, java::lang::String*)'
    apps.o:(.data+0x316c): undefined reference to `java::net::InetAddress* javax::mail::Authenticator::getRequestingSite()'
    apps.o:(.data+0x3170): undefined reference to `int javax::mail::Authenticator::getRequestingPort()'
    apps.o:(.data+0x3174): undefined reference to `java::lang::String* javax::mail::Authenticator::getRequestingProtocol()'
    apps.o:(.data+0x3178): undefined reference to `java::lang::String* javax::mail::Authenticator::getRequestingPrompt()'
    apps.o:(.data+0x317c): undefined reference to `java::lang::String* javax::mail::Authenticator::getDefaultUserName()'
    apps.o:(.data+0x31f0): undefined reference to `javax::mail::Authenticator::class$'
    collect2: ld returned 1 exit status

    Double-post

  • OCCI Linking Error (undefined reference to `__intel_personality_routine')

    Machine: Itanium 2 (ia64)
    OS: Red Hat Enterprise Linux AS release 3 (Taroon Update 5)
    Oracle: Oracle 10g R2 (10.2.0.1.0) for Linux Itanium
    Compiler: gcc-3.2.3-52
    Problem:
    when I compile my application i get the following errors:
    /oracle/oracle/product/10.2.0/db_1/lib/libocci.so: undefined reference to `__intel_personality_routine'

    Hello Mr. Romeo,
    Unfortunately this week I don't have access to the build and development platform IA64 RHEL 4.5 so I can offer you just some approximate hints related to your last question (my current working platform is Solaris 10 x86-64 but there are similarities):
    0. Unpack your shipped ORACLE database package using:
    gunzip <oracle version>database<OS platform>_<OS architecture>.cpio.gz
    cpio -ivd < <oracle version>database<OS platform>_<OS architecture>.cpio
    1.In order to see what are the components including OCCI please run one of the belows:
    find database/ -name '*' -type f -exec grep -i 'libocci' {} \; 1>occi.lst 2>/dev/null
    or better
    for f in `find database/ -name '*.jar' -type f -print`; do unzip -l $f | grep occi; if [ $? -eq 0 ]; then printf "COMPONENT ------------------ %s\n" $f; fi; done
    basically you should get the following list of components:
    database/stage/Components/oracle.rdbms.rsf.ic/10.2.0.1.0/1/DataFiles/filegroup2.jar
    database/stage/Components/oracle.rdbms.oci/10.2.0.1.0/1/DataFiles/filegroup3.jar
    database/stage/Components/oracle.rdbms.oci/10.2.0.1.0/1/DataFiles/filegroup2.jar
    database/stage/Components/oracle.rdbms.oci/10.2.0.1.0/1/DataFiles/filegroup1.jar
    database/stage/Components/oracle.rsf.hybrid/10.2.0.0.0/1/DataFiles/filegroup3.jar
    As you can see there three distinct components including references to troublesome OCCI component.
    The first (oracle.rdbms.rsf.ic) one usually includes the shared library 'lib/libocci.so.10.1' which was built under the mixed RFC.IC environment: please check it by:
    -- create temporary directory AAA:
    mkdir -p AAA
    -- extract the component you need out of archive:
    unzip database/stage/Components/oracle.rdbms.rsf.ic/10.2.0.1.0/1/DataFiles/filegroup2.jar lib/libocci.so.10.1 -d AAA/
    -- check it by:
    file AAA/lib/libocci.so.10.1 (to get the binary file profile info)
    nm -Al AAA/lib/libocci.so.10.1 | grep __intel_personality_routine (searching out for undefined symbol...please refer man page of nm for further info)
    objdump -h AAA/lib/libocci.so.10.1 (to collect ELF-EFI profile info ...first two are important -h and -f ...)
    objdump -f AAA/lib/libocci.so.10.1
    objdump -x AAA/lib/libocci.so.10.1
    Here try to pick up some conclusions and eventually send me the outputs if don't manage figure out the outputs you get.
    The next three entries are coming from the component oracle.rdbms.oci (our bad guy...) and should contain something like:
    2733 09-13-05 13:23 bin/genoccish
    %ORACLE_HOME%/bin/genoccish
    COMPONENT ------------------ database/stage/Components/oracle.rdbms.oci/10.2.0.1.0/1/DataFiles/filegroup3.jar
    2425378 10-19-05 16:55 lib/libocci10.a
    %ORACLE_HOME%/lib/libocci10.a
    1259357 10-04-05 16:27 lib/libocci10_296.so.10.1
    %ORACLE_HOME%/lib/libocci10_296.so.10.1
    1752124 10-04-05 16:27 lib/libocci10_296.a
    %ORACLE_HOME%/lib/libocci10_296.a
    COMPONENT ------------------ database/stage/Components/oracle.rdbms.oci/10.2.0.1.0/1/DataFiles/filegroup2.jar
    2115 10-15-02 02:19 rdbms/public/occi.h
    %ORACLE_HOME%/rdbms/public/occi.h
    11600 03-03-04 03:59 rdbms/public/occiAQ.h
    %ORACLE_HOME%/rdbms/public/occiAQ.h
    38530 06-23-05 07:55 rdbms/public/occiCommon.h
    %ORACLE_HOME%/rdbms/public/occiCommon.h
    73063 01-10-05 20:08 rdbms/public/occiControl.h
    %ORACLE_HOME%/rdbms/public/occiControl.h
    35218 11-08-04 21:36 rdbms/public/occiData.h
    %ORACLE_HOME%/rdbms/public/occiData.h
    29156 11-13-03 20:59 rdbms/public/occiObjects.h
    %ORACLE_HOME%/rdbms/public/occiObjects.h
    COMPONENT ------------------ database/stage/Components/oracle.rdbms.oci/10.2.0.1.0/1/DataFiles/filegroup1.jar
    The last one just include related header files and have no relevance in our issue, so lets have a look over the first two:
    bin/genoccish – is the well known generation script (you already dealt with it)
    lib/libocci10.a – is the static library which isn't built from *.o files being already shipped :-(
    lib/libocci10_296.a – are for gcc296 and should be used only for GCC296...
    So our static library (archive) lib/libocci10.a should be also checked by:
    nm -Al AAA/lib/libocci10.a | grep __intel_personality_routine (searching out for undefined symbol...please refer man page of nm for further info)
    Most probable the symbol is there and is undefined...:-( So for the time being our work-around seems to be the only way we have !!!
    The last component is for hybrid platforms only (it could be missing from your IA64...I am not sure is IA64 is still treated as an hybrid platform...:-) ) and contains the 32 bit versions...you can check them as in the previous cases from above but assuming that these 32 bit versions are clean (not referring any uresoved symbols...:-)) this is restricting you to build your applications for 32 bit only...
    1764366 09-08-05 03:43 lib32//libocci10.a
    %ORACLE_HOME%/lib32//libocci10.a
    1397960 10-20-05 02:54 lib32//libocci.so.10.1
    %ORACLE_HOME%/lib32//libocci.so.10.1
    COMPONENT ------------------ database/stage/Components/oracle.rsf.hybrid/10.2.0.0.0/1/DataFiles/filegroup3.jar
    All the best and let me know if you need more support with that,
    Ioan

  • Linker error undefined reference

    I'm currently using codeblocks to compile my program... Can't seem to use the gpib functions even though I have already added the gpib-32.obj  as shown in the program.. any ideas??
    Attachments:
    [email protected] ‏101 KB

    This seems like a C++ problem. I don't think we can help you here.

  • Linker error «error: undefined reference to '__ZN7problemC1Ev'»

    Here's some code I have been trying to compile all day and having gotten a cryptic linker error that I can't figure out.
    First here is my Makefile:
    T09: check
      @echo "-------- problem --------"
      "$(FLASCC)/usr/bin/g++" $(BASE_CFLAGS) main.cpp -swf-size=960x540 -emit-swf -o problem.swf -lAS3++ -lFlash++
    include ../Makefile.common
    clean:
      rm -f *.swf
    main.cpp
    #include "AS3/AS3.h"
    #include "problem.h"
    int main()
              problem *prob;
        prob = new problem;   
              printf("main\n");
        AS3_GoAsync();
    problem.h
    #ifndef _STATE_GAME_H_
    #define _STATE_GAME_H_
    #include "AS3/AS3++.h" // using AS3 var wrapper class
    #include "Flash++.h" // using AVM2 sync primitives
    // use "ui" AS3 var wrappers which marshall var manipulations to the ui Worker
    using namespace AS3::ui;
    class state_Game;
    class state_Menu;
    class problem {
              public:
                        problem();
                        void changeState(int k, state_Game *sg);
                        var update(state_Game *sg);
    #endif
    problem.cpp
    #include "problem.h"
    #ifndef _STATE_GAME_H_
    #define _STATE_GAME_H_
    #include "object_Background.h"
    void problem::changeState(int k, state_Game *sg)
              if (sg->getCurrrentState() >= 0)
                        sg->clearState();
                        sg->setCurrrentState(-1);
              state_Menu *psm;
              psm = new state_Menu;
    var problem::update(state_Game *sg)
              sg->update();
    problem::problem()
              state_Game *gameState;
              gameState = new state_Game;
              object_Background *background;
              background = new object_Background;
              changeState(0, gameState); //set to MENU_STATE at first
    #endif
    state_Menu.h
    #ifndef _STATE_GAME_H_
    #define _STATE_GAME_H_
    #include "state_Game.h"
    class state_Menu : public state_Game
              public:
                        state_Menu()
    #endif
    state_Game.h
    class state_Game {
              private:
                        int current_state;
              public:
                        state_Game()
                                            current_state = -1;
                        void makeState()
                        void clearState()
                        void update()
                        int getCurrrentState()
                                            return current_state;
                        void setCurrrentState(int k)
                                            current_state = k;
    When I compile this I get the following linker error:
    /var/folders/fs/ldvqpfrd2ng11w5d26f6qq540000gn/T//ccVLfrEH.o: error: undefined reference to '__ZN7problemC1Ev'
    This is a compiler generated file, '__ZN7problemC1Ev'.  I don't know why this is occurring since their are no errors in the compile phase and I do not have a class of this name.
    Can someone help me understand what is going on here?

    EDIT: Haha, so by the time I wrote this post, 3 people have already responded. Some of the stuff I cover has already been said.
    So I took a more in depth look at your code and I noticed a couple things. Granted, it's hard to debug code when I only have a small chunk but here's what I noticed:
    (Super small bug) You need to #include <stdio.h> in your main.cpp for the printf.
    There is a #ifndef _STATE_GAME_H_ in almost every file. During the pre-processing, it will pick up the fact that in subsequent files that you have this in, it will not include them. So, if you want to have each file included make a new pre-processor directive for each file.
    problem.h      => #ifndef _PROBLEM_H_
    state_Game.h => #ifndef _STATE_GAME_H_
    state_Menu.h => #ifndef _STATE_MENU_H_
    Also, as a side note for #2, don't put those #ifndefs in the .cpp files. They only need to be in the .h, but #include the .h in the .cpp.
    You don't seem to put parens after any of your constructors. You may want to explicitly specify to the compiler to use the nullary constructors.
              ex:
    === main.cpp ===
    #include <stdio.h>
    #include "problem.h"
    int main()
          problem *prob = new problem();                // <- this might be the problem
          printf("main\n");
          AS3_GoAsync();
    === problem.cpp ===
    #include "problem.h"
    #include "state_Menu.h"
    #include "state_Game.h"
    #include "object_Background.h"
    problem::problem()
              state_Game *gameState = new state_Game();
              object_Background *background = new object_Background();
              changeState(0, gameState); //set to MENU_STATE at first
    Finally, I've come to notice that putting .h files in the Makefile's build command does nothing. It will only respond to adding .cpp files. So for your state_Menu.h and state_Game.h files - as long as the pre-processing directives are setup correctly - they will be automagically included because there is no corresponding .cpp file. As long as problem.cpp and main.cpp are the only 2 .cpp files in your project, this commend will work.
    "$(FLASCC)/usr/bin/g++" $(BASE_CFLAGS) problem.cpp main.cpp -swf-size=960x540 -emit-swf -o problem.swf -lAS3++ -lFlash++

  • C++ linking error Undefined symbols  AIX 5.3 xlC  bdb 4.7

    I am getting the following linking error while linking the MyCb example given in Berkley DB guide
    xlC -bnoquiet -o /ra2/frt_bld/TMPBIN/BDBtest \
    /ra2/frt_bld/TMPOBJ/DBAbs.o \
    /ra2/frt_bld/TMPOBJ/MyDb.o \
    /ra2/frt_bld/TMPOBJ/PPNum.o \
    /ra2/frt_bld/TMPOBJ/PPNumStore.o \
    /ra2/frt_bld/TMPOBJ/PPNumStoreDB.o \
    /ra2/frt_bld/TMPOBJ/UTDbtest.o \
    /ra2/frt_bld/TMPOBJ/UTPPNUm.o \
    -lC_r ../../../ACE_wrappers/ace/libACE.so -ldb_cxx -L../../../db-4.7.25/build_unix -L/usr/local/ssl -L/../../../ACE_wrappers/ace -lcrypto -lpthread -lz -lm -o /ra2/frt_bld/TMPBIN/BDBtest
    ld: 0711-318 ERROR: Undefined symbols were found.
    The following symbols are in error:
    Symbol Inpndx TY CL Source-File(Object-File) OR Import-File{Shared-object}
    RLD: Address Section Rld-type Referencing Symbol
    .Db::set_error_stream(std::basic_ostream<char,std::char_traits<char> >*) [1010] ER PR MyDb.cpp(/ra2/frt_bld/TMPOBJ/MyDb.o)
    00003b50 .text R_RBR [148] .MyDb::MyDb(std::basic_string<char,std::char_traits<char>,std::allocator<char> >&,std::basic_string<char,std::char_traits<char>,std::allocator<char> >&)
    .Db::open(DbTxn*,const char*,const char*,DBTYPE,unsigned int,int) [1012] ER PR MyDb.cpp(/ra2/frt_bld/TMPOBJ/MyDb.o)
    00003b84 .text R_RBR [148] .MyDb::MyDb(std::basic_string<char,std::char_traits<char>,std::allocator<char> >&,std::basic_string<char,std::char_traits<char>,std::allocator<char> >&)
    ER: The return code is 8.
    ld: 0711-317 ERROR: Undefined symbol: .Db::open(DbTxn*,const char*,const char*,DBTYPE,unsigned int,int)
    // File: MyDb.cpp
    #include "MyDb.h"
    #include <string>
    #include <iostream>
    // Class constructor. Requires a path to the location
    // where the database is located, and a database name
    MyDb::MyDb(std::string &path, std::string &dbName)
    : db_(NULL, 0), // Instantiate Db object
    dbFileName_(path + dbName), // Database file name
    cFlags_(DB_CREATE) // If the database doesn't yet exist,
    // allow it to be created.
    try
    // Redirect debugging information to std::cerr
    db_.set_error_stream( static_cast<std::ostream *>(&std::cerr) );
    // Open the database
    db_.open(NULL, dbFileName_.c_str(), NULL, DB_BTREE, cFlags_, 0);
    // DbException is not a subclass of std::exception, so we
    // need to catch them both.
    catch(DbException &e)
    std::cerr << "Error opening database: " << dbFileName_ << "\n";
    std::cerr << e.what() << std::endl;
    catch(std::exception &e)
    std::cerr << "Error opening database: " << dbFileName_ << "\n";
    std::cerr << e.what() << std::endl;
    //And then we need the implementation for the close() method:
    // Private member used to close a database. Called from the class
    // destructor.
    void
    MyDb::close()
    // Close the db
    try
    db_.close(0);
    std::cout << "Database " << dbFileName_
    << " is closed." << std::endl;
    catch(DbException &e)
    std::cerr << "Error closing database: " << dbFileName_ << "\n";
    std::cerr << e.what() << std::endl;
    catch(std::exception &e)
    std::cerr << "Error closing database: " << dbFileName_ << "\n";
    std::cerr << e.what() << std::endl;
    Thanks
    Anand Rathi
    Edited by: user10127683 on Jun 10, 2009 9:02 AM

    Hi Anand,
    http://www.oracle.com/technology/documentation/berkeley-db/db/ref/build_unix/aix.html <-- check FAQ #4.
    Please use a "-D_LARGE_FILES=1" when building BDB on AIX.
    Let me know how it works.
    Thanks,
    Bogdan Coman

  • Linking Error : Undefined Symbols: SUN Studio 5

    Hi ,
    I am facing some Linking error which throws up Undefined Symbol errors like .
    [Undefined                       first referenced
    symbol                             in file
    __rwstd::__rb_tree<DevNexus,DevNexus,__rwstd::__ident<DevNexus,DevNexus>,std::less<DevNexus>,std::allocator<DevNexus> >::iterator __rwstd::__rb_tree<DevNexus,DevNexus,__rwstd::__ident<DevNexus,DevNexus>,std::less<DevNexus>,std::allocator<DevNexus> >::erase(__rwstd::__rb_tree<DevNexus,DevNexus,__rwstd::__ident<DevNexus,DevNexus>,std::less<DevNexus>,std::allocator<DevNexus> >::iterator,__rwstd::__rb_tree<DevNexus,DevNexus,__rwstd::__ident<DevNexus,DevNexus>,std::less<DevNexus>,std::allocator<DevNexus> >::iterator) PacketServer.o
    __type_0 std::find<std::deque<AdapterPort,std::allocator<AdapterPort> >::iterator,AdapterPort>(__type_0,__type_0,const __type_1&) PacketServer.o
    void std::vector<Controller,std::allocator<Controller> >::__insert_aux(Controller*,const Controller&) Subsystem.o
    void std::deque<AdapterDisc,std::allocator<AdapterDisc> >::__allocate_at_end() PacketServer.o
    __rwstd::__rb_tree<unsigned long,std::pair<const unsigned long,char*>,__rwstd::__select1st<std::pair<const unsigned long,char*>,unsigned long>,std::less<unsigned long>,std::allocator<std::pair<const unsigned long,char*> > >::iterator __rwstd::__rb_tree<unsigned long,std::pair<const unsigned long,char*>,__rwstd::__select1st<std::pair<const unsigned long,char*>,unsigned long>,std::less<unsigned long>,std::allocator<std::pair<const unsigned long,char*> > >::erase(__rwstd::__rb_tree<unsigned long,std::pair<const unsigned long,char*>,__rwstd::__select1st<std::pair<const unsigned long,char*>,unsigned long>,std::less<unsigned long>,std::allocator<std::pair<const unsigned long,char*> > >::iterator,__rwstd::__rb_tree<unsigned long,std::pair<const unsigned long,char*>,__rwstd::__select1st<std::pair<const unsigned long,char*>,unsigned long>,std::less<unsigned long>,std::allocator<std::pair<const unsigned long,char*> > >::iterator) DeviceProp.o
    std::deque<AdapterPort,std::allocator<AdapterPort> >::~deque() PacketServer.o
    __type_0 std::find<std::deque<AdapterDisc,std::allocator<AdapterDisc> >::iterator,char*>(__type_0,__type_0,const __type_1&) PacketServer.o
    unsigned std::deque<AdapterPort,std::allocator<AdapterPort> >::__buffer_size() PacketServer.o
    unsigned std::deque<AdapterDisc,std::allocator<AdapterDisc> >::__buffer_size() PacketServer.o
    void __rwstd::__rb_tree<DevNexus,DevNexus,__rwstd::__ident<DevNexus,DevNexus>,std::less<DevNexus>,std::allocator<DevNexus> >::__deallocate_buffers() PacketServer.o
    std::deque<AdapterDisc,std::allocator<AdapterDisc> >::~deque() PacketServer.o
    ld: fatal: Symbol referencing errors. No output written to spagent
    *** Error code 1
    make: Fatal error: Command failed for target `spagent'
    Current working directory /home/kiranc/solaris_hang1/4.0/agent
    *** Error code 1
    make: Fatal error: Command failed for target `recurse'
    Current working directory /home/kiranc/solaris_hang1/4.0/agent
    *** Error code 1
    make: Fatal error: Command failed for target `all'
    I am using Sun Studio 5. Pls let me know how to resolve/fix this. Unfortunately I cant upgrade the Sun Studio.
    Thanks in Advance
    Kiran                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi Kiran ,
    if you cannot upgrade Sun Studio, I suggest that you take a view on this solution:
    http://forum.java.sun.com/thread.jspa?forumID=850&threadID=5069680
    It only works to std::vector::__insert_aux method, but I think you could get some useful idea from it.
    Good luck.
    Bye.

  • CC -xlang=f90 error: undefined reference to `_Qgt'

    I am trying to use SS12u1 to build a project in which a C++ main calls f90 subroutines. I compile all the object files separately, with their relevant compilers, and then I try to link with CC -xlang=f90. The result is
    tmp$ CC -xlang=f90 test.o doit.o
    /opt/SunStudio12u1-Linux-x86-tar-ML/sunstudio12.1/prod/lib/libfsu.a(io.o): In function `Q_GT':
    io.c:(.text+0x11b9): undefined reference to `_Qgt'
    /opt/SunStudio12u1-Linux-x86-tar-ML/sunstudio12.1/prod/lib/libfsu.a(io.o): In function `Q_GE':
    io.c:(.text+0x1205): undefined reference to `_Qge'
    /opt/SunStudio12u1-Linux-x86-tar-ML/sunstudio12.1/prod/lib/libfsu.a(io.o): In function `Q_LT':
    io.c:(.text+0x1251): undefined reference to `_Qlt'
    /opt/SunStudio12u1-Linux-x86-tar-ML/sunstudio12.1/prod/lib/libfsu.a(io.o): In function `Q_SUB':
    io.c:(.text+0x12a1): undefined reference to `_Qsub'
    /opt/SunStudio12u1-Linux-x86-tar-ML/sunstudio12.1/prod/lib/libfsu.a(io.o): In function `Q_DIV':
    io.c:(.text+0x1311): undefined reference to `_Qdiv'
    /opt/SunStudio12u1-Linux-x86-tar-ML/sunstudio12.1/prod/lib/libfsu.a(io.o): In function `Q_MUL':
    io.c:(.text+0x1381): undefined reference to `_Qmul'
    The missing entry points are in libsunquad.a, but placing -lsunquad on the link line doesn't change the behavior.
    How can I successfully link?

    The problem you describe is a bug in the CC driver. Please
    report the bug.
    You are correct that the program needs to link with the
    library libsunquad.a. The easiest workaround is probably
    to spell out the full pathname for libsunquad.a on the
    link line.
    Bob Corbett

  • Linking Error : Undefined Symbols

    Hi evryone,
    I am facing some Linking error which throws up Undefined Symbol errors like .
    Undefined first referenced
    symbol in file
    vector<DPEEDFU>::insert_aux(DPEEDFU*, const DPEEDFU&) ./obj/dpeesel.o
    I am migrating the code to Sun 5.2 & using -compat=4 for compilation.
    On some analysis using nm , I found that the symbols which are flagged as UNDEFINED are in fact getting defined in the temporary objects created in the SunWS_cache directory.
    Any suggestion on how to resolve this.
    urgent help needed.
    Thanks & Regards
    shiva

    Hi,
    I am running into same(similar) issue. I am using Forte 6 update2. I have created the links manually. I am looking to do dynamic linking of the libCstd. Now,
    here's a snippet of the error I see :
    /import/sunray/tools/WS6u2/SUNWspro/bin/CC -o SunOS.sparc/uttsc SunOS.sparc/main.o SunOS.sparc/platforminfo.o -L../../lib/tscutil/SunOS.sparc -L../../lib/addins/rdpdr/fs/SunOS.sparc -L../../lib/addins/rdpdr/scard/SunOS.sparc -L../../lib/addins/rdpdr/print/SunOS.sparc -L../../lib/addins/rdpdr/serial/SunOS.sparc -L../../lib/addins/rdpdr/SunOS.sparc -L../../lib/enum/SunOS.sparc -L../../lib/addins/cliprdr/SunOS.sparc -L../../lib/audio/SunOS.sparc -L../../lib/aipa/SunOS.sparc -L../../lib/addins/rdpsnd/SunOS.sparc -L../../lib/util/SunOS.sparc -L../../lib/vxrdp/SunOS.sparc -L../../lib/vx/SunOS.sparc -L../../lib/rdp/SunOS.sparc -L../../lib/mcs/SunOS.sparc -L../../lib/isot/SunOS.sparc -L../../lib/common/SunOS.sparc -L../../lib/X11/SunOS.sparc -L../../lib/platform/SunOS.sparc -L../../lib/device/serial/posix/SunOS.sparc -L../../lib/device/fs/posix/SunOS.sparc
    -L../../lib/device/print/lpr/SunOS.sparc -L../../lib/device/SunOS.sparc -L/usr/X11R6/lib -L/usr/openwin/lib -ltscutil --lcommon  -lXext -lX11 -lplatform -lCstd -lcrypto
    Undefined first referenced
    symbol in file
    void std::list<addins::rdpdr::IDeviceService*,std::allocator<addins::rdpdr::IDeviceService*> >::__deallocate_buffers() ../../lib/addins/rdpdr/SunOS.sparc/librdpdr.a(devicemanager.o)
    bind ../../lib/platform/SunOS.sparc/libplatform.a(socket.o) (symbol belongs to implicit dependency /usr/lib/libsocket.so.1)
    std::pair<__rwstd::__rb_tree<unsigned,std::pair<const unsigned,device::serial::Device*>,__rwstd::__select1st<std::pair<const unsigned,device::serial::Device*>,unsigned>,std::less<unsigned>,std::allocator<std::pair<const unsigned,device::serial::Device*> > >::iterator,bool>__rwstd::__rb_tree<unsigned,std::pair<const unsigned,device::serial::Device*>,__rwstd::__select1st<std::pair<const unsigned,device::serial::Device*>,unsigned>,std::less<unsigned>,std::allocator<std::pair<const unsigned,device::serial::Device*> > >::insert(const std::pair<const unsigned,device::serial::Device*>&) ../../lib/addins/rdpdr/serial/SunOS.sparc/librdpdrserial.a(source.o)
    void __rwstd::__rb_tree<unsigned,std::pair<const unsigned,device::fs::Device*>,__rwstd::__select1st<std::pair<const unsigned,device::fs::Device*>,unsigned>,std::less<unsigned>,std::allocator<std::pair<const unsigned,device::fs::Device*> > >::__deallocate_buffers() ../../lib/addins/rdpdr/fs/SunOS.sparc/librdpdrfs.a(rdpdrfssource.o)
    __type_1 std::copy<std::deque<Buffer,std::allocator<Buffer> >::const_iterator,std::back_insert_iterator<std::deque<Buffer,std::allocator<Buffer> > > >(__type_0,__type_0,__type_1) ../../lib/audio/SunOS.sparc/libaudio.a(audiodevsink.o)
    std::list<enumeration::DeviceInfo*,std::allocator<enumeration::DeviceInfo*> >::iterator std::list<enumeration::DeviceInfo*,std::allocator<enumeration::DeviceInfo*> >::erase(std::list<enumeration::DeviceInfo*,std::allocator<enumeration::DeviceInfo*> >::iterator,std::list<enumeration::DeviceInfo*,std::allocator<enumeration::DeviceInfo*> >::iterator) ../../lib/enum/SunOS.sparc/libenum.a(pnpmodule.o)
    ...<many more>...
    How did you resolve your issue ?
    Thanks
    Sangeeta

  • Link error: Undefined symbols... mhm what's wrong

    Hi,
    I got the following error:
    "Database::mxFace", referenced from:
    __ZN8Database6mxFaceE$non_lazy_ptr in faceTracker.o
    my app is very simple:
    class Database {
    public:
    Database() {
    //~Database();
    static void setFace(int xFace,int yFace)
    mxFace = xFace;
    myFace = yFace;
    static int getFaceX() {return mxFace;};
    static int getFaceY() {return myFace;};
    private:
    static int mxFace;
    static int myFace;
    what's wrong ?
    thanks

    Hi
    WHERE
    "Metadatacopy4"."Instance" =
    " = "FILE_SUBJECTSM4"."INSTANCE",
    "wwv_flow_files"."name" =
    " = "FILE_SUBJECTSM4"."NAME"
    You have to use AND - Klause and don't use comma.
    WHERE
    "Metadatacopy4"."Instance" =
    " = "FILE_SUBJECTSM4"."INSTANCE" AND
    "wwv_flow_files"."name" =
    " = "FILE_SUBJECTSM4"."NAME"
    Regards
    Dmytro Dekhtyaryuk

  • C Code NI-VISA linker error

    I wrote the following C command to pass SCPI commands to Rohde&Schwarz FSL
    #define NIVISA_PXI
    #include <visa.h>
    #define MAX_CNT 200
    int main(void)
    ViStatus status; /* For checking errors */
    ViSession defaultRM, instr; /* Communication channels */
    ViUInt32 retCount; /* Return count from string I/O */
    ViChar buffer[MAX_CNT]; /* Buffer for string I/O */
    status = viOpenDefaultRM(&defaultRM);
    if (status < VI_SUCCESS)
    return -1;
    status = viWrite(instr, "*RST", 6, &retCount);
    status = viClose(instr);
    status = viClose(defaultRM);
    return 0;
    I am getting linker errors.   [Linker error] undefined reference to `viOpenDefaultRM@4' 
    I use Bloodshed Dev C++ . I have included the header files from the VXIPNP folder to the include folder od Dev C++. It had 11 files.it had 4 header files visa.h, visatype.h, vpptype.h and rsfsp.h
    Do i need to install any header file or libraries? Please help, this is the first time I am using VISA.H 
    Solved!
    Go to Solution.

    [root@localhost raavan]# gcc main.c -L /usr/local/lib/libvisa.so
    /tmp/ccKHyQta.o: In function `sendscpi':
    main.c: (.text+0x2e): undefined reference to `viWrite'
    /tmp/ccKHyQta.o: In function `main':
    main.c: (.text+0x52): undefined reference to `viOpenDefaultRM'
    main.c: (.text+0x99): undefined reference to `viOpen'
    main.c: (.text+0xbb): undefined reference to `viSetAttribute'
    main.c: (.text+0xd9): undefined reference to `viClose'
    main.c: (.text+0xeb): undefined reference to `viClose'
    collect2: ld returned 1 exit status
    contents of main.c are:
     #include "visa.h"
    #include "stdio.h"
    #include "string.h"
    #define MAX_CNT 200
    char scpi[50]; /*To store the SCPI commands*/
    ViStatus status; /* For checking errors */
    ViSession defaultRM, instr; /* Communication channels */
    ViUInt32 retCount; /* Return count from string I/O */
    ViChar buffer[MAX_CNT]; /* Buffer for string I/O */
    void sendscpi (char *s)  
         status = viWrite(instr, (ViBuf)s, strlen (s), &retCount);
    int main(void)
    /* Begin by initializing the system*/
    status = viOpenDefaultRM(&defaultRM);
    if (status < VI_SUCCESS) {
    return -1;
    /* Open communication with TCPIP Device at Primary Addr FSL (192.168.186.107)*/
    status = viOpen(defaultRM, "192.168.186.107", VI_NULL, VI_NULL,&instr);
    /* Set the timeout for message-based communication*/
    status = viSetAttribute(instr, VI_ATTR_TMO_VALUE, 5000);
    /* Send SCPI commands for the test case */
    sendscpi ("*RST" ) ;
    /* Close down the system */
    status = viClose(instr);
    status = viClose(defaultRM);
    return 0;
    Please help!
    Message Edited by rohit_rs on 03-12-2009 07:04 AM
    Message Edited by rohit_rs on 03-12-2009 07:04 AM

  • Getting undefined reference error

    Hi Iam using GCC 4.1.2 in solaris with Oracle 9.0.2
    I have the following program
    #include <iostream.h>
    #include <occi.h>
    using namespace oracle::occi;
    using namespace std;
    int main()
    Environment *Env = Environment::createEnvironment(Environment::DEFAULT);
    When I do compile Iam getting the error
    undefined Reference Environment::createEnvironment(Environment::Mode,void,void.....
    etc error
    Please let me mkw what Iam missing

    After also Iam getting this error still in Solaris, g++ 4.1.2 with Oracle 9.2.0
    Undefined first referenced
    symbol in file
    __1cG__CrunKpure_error6F_v_ /usr/local/pkg/oracle/9.2.0/lib/libocci.so
    __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2G6Mpkc_r1_ /usr/local/pkg/oracle/9.2.0/lib/libocci.so
    __1cG__CrunIex_alloc6FI_pv_ /usr/local/pkg/oracle/9.2.0/lib/libocci.so
    __1cG__CrunIex_throw6Fpvpkn0AQstatic_type_info_pF1_v_v_ /usr/local/pkg/oracle/9.2.0/lib/libocci.so
    __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2G6Mrk1_r1_ /usr/local/pkg/oracle/9.2.0/lib/libocci.so
    __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2t6MpkcIrkn0C__v_ /usr/local/pkg/oracle/9.2.0/lib/libocci.so
    __1cH__rwstdRexcept_msg_string2t6MIE_v_ /usr/local/pkg/oracle/9.2.0/lib/libocci.so
    __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2t6Mpkcrkn0C__v_ /usr/local/pkg/oracle/9.2.0/lib/libocci.so
    __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___Gassign6Mrk1II_r1_ /usr/local/pkg/oracle/9.2.0/lib/libocci.so
    _

  • Linking error cvistart.lib

    Hi,
    I'm trying to build a DLL and i get the following errors:
    4 Project link errors
      Undefined symbol '___UFRNameTable' referenced in "c:\program files\national instruments\cvi81\bin\cvistart.lib".
      Undefined symbol '___CompiledDebuggingLevel' referenced in "c:\program files\national instruments\cvi81\bin\cvistart.lib".
      Undefined symbol '___PtrInfoFixupTable' referenced in "c:\program files\national instruments\cvi81\bin\cvistart.lib".
      Undefined symbol '___CVI_Sections' referenced in "c:\program files\national instruments\cvi81\bin\cvistart.lib".
    I tryed it on two machines and i also tryed to create an exetuable (after adding main function to the project).
    I also tryed to create a new project
    Thanks for help

    I am having the exact same problem, but only when do a release build.  The debug build works fine.
    Errors generated when performing a 'release' build'
    clear_history_ecu_data.prj(Release) - 4 link errors
     Undefined symbol '___CompiledDebuggingLevel' referenced in "c:\program files\national instruments\cvi2009\bin\msvc\cvistart.lib".
     Undefined symbol '___PtrInfoFixupTable' referenced in "c:\program files\national instruments\cvi2009\bin\msvc\cvistart.lib".
     Undefined symbol '___CVI_Sections' referenced in "c:\program files\national instruments\cvi2009\bin\msvc\cvistart.lib".
     Undefined symbol '___UFRNameTable' referenced in "c:\program files\national instruments\cvi2009\bin\msvc\cvistart.lib". 
    I am using CVI 2009.
    I have deleted the build folder and marked all for recompile.
    Any suggestions?
    Thanx,
    thefalk

  • Link error in Workshop 6u2 with lib built by Studio 9

    I have a shared library built with Sun Studio 9.
    I'm trying to use it in an application that I build using Sun
    Workshop 6 update 2.
    This gives me a link error:
    Undefined symbol first referenced in file
    __rwstd::__null_string_ref_rep<char,std::char_traits<char>,
    std::allocator<char>,__rwstd::__string_ref_rep<std::allocator<char>
    >>::__null_string_ref_rep()
    /home/me/lib/libFoo.so
    std::basic_string<char,std::char_traits<char>,std::allocator<char>>::~basic_string()
    /home/me/lib/libFoo.so
    The lib is built using:
    JAVA_INCLUDE = -I${JAVA_HOME}/include -I${JAVA_HOME}/include/solaris
    JAVA_LIBS = -L${JAVA_HOME}/jre/lib/sparc -L${JAVA_HOME}/jre/lib/sparc/client
    CXX = g++
    CXXFLAGS = -g -w -fPIC -I./include ${JAVA_INCLUDE}
    LDFLAGS = -shared ${JAVA_LIBS} -ljava -ljvm
    $(CXX) ${LDFLAGS} ${LIBS} -o ../$@ ${OBJS}
    Any ideas what could be wrong?
    Thanks in advance,
    /Mikael

    You can use a binary created by an older compiler in a program built with a newer compiler. We take care not to invalidiate old binary interfaces in new compilers.
    You cannot use a binary created by a newer compiler in a program built with an older compiler. The newer compiler will in general use features from headers or system libraries that are unknown to the older compiler.
    If you have a set of binaries created by different compiler versions, you must build the final program using a compiler at least as new as the newest compiler that was used.
    Similar rules apply to verions of Solaris where the binaries are built. If you build a binary on an older Solaris version, you can use it on a newer Solaris version -- but not the reverse.

  • C-Linker Error - can't find JNI Methods

    Hi
    I'm trying to exchange data from Java to C via Byte-Arrays. The
    .c-file compiles fine but I get an error while linking:
    Link Error : Undefined symbol: _GetByteArrayRegion in
    LBCCODEC.C
    Link Error : Undefined symbol: _SetByteArrayRegion in
    LBCCODEC.C
    I'm using the SetByte..- method the following way:
    SetByteArrayRegion(env, encodedArr, 0, 26, Line);
    Data types used here are: JNIEnv *env, jbyteArray encodedArr; char Line[26] ;
    thank you for your suggestions.

    issue resolved already! thx anyway

Maybe you are looking for

  • How to get sso_userid from Database

    Hi. I use the SSO in my forms application 10g, and All the Users are connected to Data Base with only one resource conexion, and I want to know the SSO_USERID from a Trigger in the database to insert in a log table. I want to chance de "USER VARIABLE

  • Creative Cloud desktop app won't download

    I am trying to download creative cloud on new mac, and get an error message and told to contact customer support - any ideas?

  • Downloadhelper won't work in Youtube & Firefox 19.02

    I am on a Mac..up until a few days ago -before I upgraded my Firefox to 19.02 - Download Helper on Youtube was working fine. Since the upgrade, nothing happens when I click on any of the drop-down menus. The tri-balls on the bottom right are grayed o

  • When call is coming, the iPhone doesn't ring. same for messages.

    when call is coming, the iPhone doesn't ring. same for messages.

  • Building a dynamic query

    I have a need to build a truly dynamic query, that would be able to take online form input and create a query that would handle data requests like, How many employees earn less than #some salary, have a masters degree, and speak chinese.  or show me