PRO*C: undefined reference to sqlcxt

Precompilation runs without error (proc test.pc).
But Linker (after compiler-run) says:
gcc -L/save/u01/app/oracle/product/815/lib
-I/save/u01/app/oracle/product/815/precomp/public test.c
/tmp/ccKOZqpD: In function `main':
/tmp/ccKOZqpD(.text+0x1d7): undefined reference to `sqlcxt'
/tmp/ccKOZqpD(.text+0x37b): undefined reference to `sqlcxt'
bash-2.01$
Looking up test.c I found a comment saying that sqlcxt is
member of sqllib:
/* SQLLIB Prototypes */
extern sqlcxt (/*_ void **, unsigned int *,
struct sqlexd *, struct sqlcxp * _*/);
Unfortunately in library .../lib/sqllib I can3t find sqlcxt.
No Problems running sqlplus, sqlload, exp, imp,...
Anybody any idea why linking doesn3t work?
Which library includes function sqlcxt?
Thank You.
null

Hi,
This is often the result of failing to include the orasqlX.lib file as input to the linker.
I have a walkthrough of integrating Pro*C with Visual Studio here:
http://oradim.blogspot.com/2009/05/oracle-proc-on-windows-with-express.html
Maybe that will be of some help.
How are you linking?
Regards,
Mark

Similar Messages

  • Linker error in c++ -- undefined reference to `vtable for String'

    While linking cpp file : wrapGetRndAmt.cpp which is below:
    wrapGetRndAmt.cpp .....
    #include <iostream.h>
    #include "archinfo.h"
    #include "syscodes.h"
    #include "currency_directory.h"
    extern MESSAGE_TYPE SetMemMarker();
    extern MESSAGE_TYPE FreeMemBlock();
    extern "C" int dm_login();
    extern "C" int dm_commit();
    extern "C" int dm_rollback();
    //extern MESSAGE_ARRAY *messageArray;
    struct tpsvcInfo *funcAry;
    /* Wrapper function to apply rounding rule (to the amount)*/
    int wrapGetRndAmt(char * ou_id, char * currency , double& amount)
    SetMemMarker();
    int rndng_rule=0;
    double rndng_val=0.0;
    double l_rtrnCode=0.0;
    double l_tmp=0.0;
    String * s_curr = new String(currency); ///This is the call of the String
    The error coming is:
    /home/gcrmdev/3.5/B/lib/h/xlstring.h:54: undefined reference to `vtable for String'
    /home/gcrmdev/3.5/B/lib/h/xlstring.h:54: undefined reference to `vtable for String'
    Header file is below:
    xlstring.h
    #ifdef SOLARIS
    11 #include "mystring.h"
    12 #else
    13 #include <string.h>
    14 #endif
    15 #include "xdr.h"
    16 #include <cppdefs.h>
    17 /* added by prabhat */
    18 #include "bglb.h"
    19 /* added by prabhat ends */
    20
    21 /*
    22 *-----------------------------------------------------------------------------
    23 * CLASS : String
    24 * PURPOSE : For performing all string operation
    25 * BASE CLASS : Object
    26 * PARENT CLASS : Object
    27 * COMMENT :
    28 * HISTORY :
    29 *-----------------------------------------------------------------------------
    30 */
    31 class String : public CppObj {
    32 int len;
    33 char *s;
    34
    35 public:
    36
    37 int operator == (const String &s1){ return strcmp(s,s1.s) ? 0 : 1;}
    38 int operator==(const Object &o)
    39 {
    40 return ( strcmp ( Type() , o.Type() ) == 0 )
    41 ? operator ==( ( const String &)o)
    42 : 0 ;
    43 }
    44 int operator != (const String &s1){ return strcmp(s,s1.s) ? 1 : 0;}
    45 int operator < (const String &s1){ return ( strcmp(s,s1.s) < 0 ) ? 1 : 0;}
    46 int operator <= (const String &s1){ return ( strcmp(s,s1.s) <= 0 ) ? 1 : 0;}
    47 int operator > (const String &s1){ return ( strcmp(s,s1.s) > 0 ) ? 1 : 0;}
    48 int operator >= (const String &s1){ return ( strcmp(s,s1.s) >= 0 ) ? 1 : 0;}
    49 operator String *() const { return new String( s ); }
    50 /* INT4 Length( INT4 & l ) const { l = len; return len; } */
    51 MESSAGE_TYPE Length( INT4 & l ) const { l = len; return XL_SUCCESS; }
    52 INT4 Length() const { return len; }
    53 /* DelhiPuneSync Changes : to take care of memAlloc fail */
    54 String( char const *s1) {
    55 if ( s1 == NULL) return;
    56 s = (char *)memAlloc((len = strlen(s1))+1);
    57 if (s != NULL)
    58 strcpy(s,s1);
    59 }
    Can someone help why this error is coming??
    Thanks is advance.
    Arabinda

    Hi,
    This is often the result of failing to include the orasqlX.lib file as input to the linker.
    I have a walkthrough of integrating Pro*C with Visual Studio here:
    http://oradim.blogspot.com/2009/05/oracle-proc-on-windows-with-express.html
    Maybe that will be of some help.
    How are you linking?
    Regards,
    Mark

  • Glibc-patched 8.1.7.0.1 has undefined references during link

    I am receiving the following errors when running 'make -f ins_rdbms install'
    after installing the glibc patch for 8.1.7.0.1:
    /lib/libnsl.so.1: undefined reference to `svc_getreq_poll@GLIBC_2.2'
    /lib/libnsl.so.1: undefined reference to `__strndup@GLIBC_2.2'
    /lib/libnsl.so.1: undefined reference to `svc_max_pollfd@GLIBC_2.2'
    /lib/libnsl.so.1: undefined reference to `svc_pollfd@GLIBC_2.2'
    collect2: ld returned 1 exit status
    I am running SuSE Linux 7.1 and have installed all pertinent updates from
    the SuSE ftp site. Installation
    of the Oracle 8.1.7.0.1 distribution ran flawlessly (after I unset LANG
    before running runInstaller).
    I downloaded the latest 'glibc-2.1.3-stubs.tar.gz' patch from
    technet.oracle.com and installed per the directions in the READMEglibc213.txt file. When
    I ran 'setup_stubs.sh', everything appeared to run fine (no visible errors).
    I even remembered to fix the root.sh file per the instructions from the SuSE
    web site.
    Yet when I attempted to build a database (via dbassist or manually), I got
    the following error when running svrmgrl:
    oracle@mars:~ > svrmgrl
    Oracle Server Manager Release 3.1.7.0.0 - Production
    Copyright (c) 1997, 1999, Oracle Corporation. All Rights Reserved.
    ORA-12545: Connect failed because target host or object does not exist
    SVRMGR>
    I discovered that the reason for this was that the 'oracle' executable was
    not present in $ORACLE_HOME/bin (I later discovered that a number of other
    files were missing as well). Then I noticed that the 'setup_stubs.sh'
    script uses 'make -i', which ignores errors. When I ran 'make -f
    ins_rdbms.mk install' from $ORACLE_HOME/rdbms/lib, I got the link errors
    shown above. Of course, this explains why I don't have an 'oracle' file in
    $ORACLE_HOME/bin; it was never created during the patch install.
    I tried manually running all of the other relinks manually and all of them
    worked with the exception of ctx. When I ran 'make -f ins_ctx.mk' from
    $ORACLE_HOME/ctx/lib', I got this:
    gcc -o
    ctxhxx -L/u01/app/oracle/product/8.1.7/ctx/lib/ -L/u01/app/oracle/product
    /8.1.7/lib/ -L/u01/app/oracle/product/8.1.7/lib//stubs/
    /u01/app/oracle/produc
    t/8.1.7/ctx/lib/ctxhx.o -Wl,-rpath,/u01/app/oracle/product/8.1.7/ctx/lib/ -l
    m -l
    sc_fa -lsc_fi -lsc_ch -lsc_ut -lsc_ex -lsc_da -lctxhx -lm -lc -lnls8 -lcore
    8 -l
    nls8 -lcore8 -lnls8
    /lib/libdl.so.2: undefined reference to `_dl_vsym@GLIBC_2.2'
    /lib/libdl.so.2: undefined reference to `_dl_sym@GLIBC_2.2'
    collect2: ld returned 1 exit status
    make: *** [ctxhxx] Error 1
    I found that the /lib/libc.so.6 library contained the necessary definitions
    to these references. However, I am not sure if it is safe to add this to
    the list of libraries used during the link.
    What concerns me most is that I know a lot of folks have used the patch
    successfully, but I cannot think of what I've done wrong. Any ideas?
    null

    In case anyone else is having this problem, here is the answer:
    The problem only occurs if you include the Oracle Parallel Server option
    during installation. In order to get the oracle kernel to re-link after
    installing the glibc patch, you need to add -lnsl to the
    $ORACLE_HOME/lib/sysliblist like so:
    before: -ldl -lm -lpthread
    after : -ldl -lm -lnsl -lpthread
    Then relink the oracle kernel:
    cd $ORACLE_HOME/rdbms/lib
    make -f ins_rdbms.mk install
    null

  • Installing Oracle 10g R2 on Debian Sarge - Undefined reference

    Hi all,
    I'm installing Oracle 10g R2 on debina sarge. I know this is possibile. But I'm only a problem during compilation:
    INFO: mv -f /opt/oracle/oracle/product/10.2.0/db_1/bin/dgmgrl /opt/oracle/oracle/product/10.2.0/db_1/bin/dgmgrlO
    INFO: mv /opt/oracle/oracle/product/10.2.0/db_1/rdbms/lib/dgmgrl /opt/oracle/oracle/product/10.2.0/db_1/bin/dgmgrl
    INFO: chmod 751 /opt/oracle/oracle/product/10.2.0/db_1/bin/dgmgrl
    INFO:
    INFO: - Linking tg4pwd utility
    INFO: rm -f /opt/oracle/oracle/product/10.2.0/db_1/rdbms/lib/tg4pwd
    INFO: gcc -o /opt/oracle/oracle/product/10.2.0/db_1/rdbms/lib/tg4pwd -L/opt/oracle/oracle/product/10.2.0/db_1/rdbms/lib/ -L/opt/oracle/oracle/product/10.2.0/db_1/lib/ -L/opt/oracle/oracle/product/10.2.0/db_1/lib/stubs/ -L/usr/lib -lirc /opt/oracle/oracle/product/10.2.0/db_1/rdbms/lib/tg4pwd.o /opt/oracle/oracle/product/10.2.0/db_1/rdbms/lib/defopt.o /opt/oracle/oracle/product/10.2.0/db_1/rdbms/lib/homts.o -lagtsh -lpls10 -lplp10 -lclntsh -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnl
    INFO: s10 -lxml10 -lcore10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls10 /opt/oracle/oracle/product/10.2.0/db_1/lib/libgeneric10.a `cat /opt/oracle/oracle/product/10.2.0/db_1/lib/sysliblist` -Wl,-rpath,/opt/oracle/oracle/product/10.2.0/db_1/lib -lm `cat /opt/oracle/oracle/product/10.2.0/db_1/lib/sysliblist` -ldl -lm -L/opt/oracle/oracle/product/10.2.0/db_1/lib -lvsn10
    INFO: /opt/oracle/oracle/product/10.2.0/db_1/lib//libagtsh.so: undefined reference to `nnfyboot'
    collect2: ld returned 1 exit status
    make: *** [opt/oracle/oracle/product/10.2.0/db_1/rdbms/lib/tg4pwd] Error 1
    I do not know if I miss a library. Who can help me?
    Thanks
    Stefano

    This happened to me also when installing on Slackware (current, now 10.2). Whenever you get errors in the OUI during the link phase, you should also take a look at $ORACLE_HOME/install/make.log. Turns out that the shared library libagtsh.so wasn't build which caused the errors during the link phase. Oracle expects 'basename' to be in /bin. Furthermore I noticed that Oracle expects 'libgcc_s.so.1' to be in /lib. On Slackware I did the following to successfully install 10g Release 2:
    cd /bin ; ln -sf /usr/bin/basename basename
    cd /lib ; ln -sf /usr/lib/libgcc_s.so.1 libgcc_s.so.1 ; ln -sf libgcc_s.so.1 libgcc_s.so
    Hope this helps,
    Joep

  • Build cvm error: /UNIXProcess_md.c undefined reference to `__libc_wait'

    Hello,
    I used the follow command to build cvm in cdc:
    make CVM_DEBUG=true CVM_JAVABIN=$JAVA_HOME/bin
    CVM_GNU_TOOLS_PATH=/usr/bin
    The gcc's version is 2.95.3. J2SE version is J2SE 1.4. OS is Fedora 3. I got the following error message:
    Linking ../../build/linux-i686/bin/cvm
    ../../build/linux-i686/obj/UNIXProcess_md.o(.text+0x3ab): In function `sigchld_handler':
    /root/cdcfoundation/build/linux-i686/../../src/linux/native/java/lang/UNIXProcess_md.c:213: undefined reference to `__libc_wait'
    collect2: ld returned 1 exit status
    make: *** [../../build/linux-i686/bin/cvm] Error 1
    I think this problem relates to java and glibc library in redhat. Can someone give some propositions?
    Thanks a lot for help in advance!!
    zhiyong

    See here (original topic was double posted)
    http://forum.java.sun.com/thread.jspa?messageID=3528322&#3528322

  • 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
    _

  • Libgpib.a(cib.o): In function `oserr', undefined reference to `errno'

    Hi,
    I just tried to compile my DAQ code using nigpib-0.8.3 using gcc3.2 on linux.
    I get the following error:
    /usr/local/nigpib/libgpib.a(cib.o): In function `oserr':
    /home/dwilson/src/nigpib-0.8.2/Linux-x86/cib.c:59: undefined reference to `errno'
    collect2: ld returned 1 exit status
    I get the same error for nigpib-0.8.2
    Any ideas?
    Thanks a lot.
    Wolfgang

    Hi Wolfgang,
    It seems that somehow the cib.c file had some extra information left over that caused the problem! Sorry. Just redownload the driver and you should be set!
    Best Regards,
    Aaron K.
    Application Engineer
    National Instruments

  • When install db 10.2.0.1, report many undefined reference error.

    Hi,
    I try install the db 10.2.0.1 under fc4 linux.
    I select to install software only, but report error:
    Error invoking target 'relink' of makefile
    '/usr/local/oracle/db10g/precomp/lib/ins_precomp.mk' ...
    I check the install/make.log, there are many "undefined reference" error, as following:
    /usr/bin/make -f ins_precomp.mk relink ORACLE_HOME=/usr/local/oracle/db10g EXENAME=proc/Linking /usr/local/oracle/db10g/precomp/lib/proc
    /usr/local/oracle/db10g/lib//libclntsh.so: warning: warning: this program uses gets(), which is unsafe.
    /usr/local/oracle/db10g/precomp/lib/pdc.o(.text+0x236): In function `pdlitlen':
    : undefined reference to `__ctype_b_loc'
    /usr/local/oracle/db10g/precomp/lib/libpgp.a(pgstdf.o)(.text+0x39e): In function `pgswget':
    : undefined reference to `_IO_getc'
    Whether some lib be not found?
    Thanks!

    Keep reading the link log, those are warnings. there is an actual error somewhere.

  • Compiling errors libGL.so: undefined reference to `_nv001833gl

    i encountered these errors when compiling alienarena and projectM:
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../lib/libGL.so: undefined reference to `_nv001833gl'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../lib/libGL.so: undefined reference to `_nv001835gl'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../lib/libGL.so: undefined reference to `_nv001834gl'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../lib/libGL.so: undefined reference to `_nv001836gl'
    im using arch64, nvidia drivers nvidia-180.29-3..
    can someone explain me what is going wrong here ?

    cant compile amarok2 from aur, same error. so i tried the beta driver 185.13, but after the kdm symbols faded in it doesnt switch to the desktop. im back to 180.29.
    this is very annoying, as i simply have not the knowledge to fix stuff like that

  • Libgcc_s.so: undefined reference to `dl_iterate_phdr@GLIBC_2.2.4

    I am trying to install Oracle 9i client to a Redhat Fedora 4 box. I get roughly 60% into the linking process and then my make.log shows:
    /usr/lib/gcc/i386-redhat-linux/4.0.0/libgcc_s.so: undefined reference to `dl_iterate_phdr@GLIBC_2.2.4'
    collect2: ld returned 1 exit status
    make: *** [sqlplus] Error 1
    Is there a fix for this for FC4 or a RPM I'm missing?
    Thanks,
    Adam

    Hello Ivan,
    all you said here seems to be helpful for anyone but me. Cause I'm using FCC3 with defaul gcc-3.4.2 .
    If I try to install gcc-2.96, it says "a newer version is already installed".
    I forced a downgrade but it failed.
    [root@localhost tmp]# rpm -Uvh --force compat-gcc-7.3-2.96.126.i386.rpm
    error: Failed dependencies:
    compat-gcc = 8-3.3.4.2 is needed by (installed) compat-gcc-c++-8-3.3.4.2.i386
    Can you help? I admit I am junior in the Linux world.

  • Link Error Linux AS3: undefined reference to `oracle::occi::Environment

    I got this error when i try to run sample database access using OCCI libraries.
    test.cpp:21: undefined reference to `oracle::occi::Environment::createEnvironment(oracle::occi::Environment::Mode, void*, void* (*)(void*, unsigned int), void* (*)(void*, void*, unsigned int), void (*)(void*, void*))'
    Following link contains same problem but there is no answer.
    #include <iostream>
    #include <occi.h>
    using oracle::occi::Connection;
    using oracle::occi::Environment;
    using oracle::occi::Statement;
    using oracle::occi::ResultSet;
    using namespace std;
    int main() {
    Environment *environment;
    Connection *con;
    Statement* stmt;
    ResultSet* res;
    try {
    //std::cout << "dasfasfafa";
    environment = Environment::createEnvironment(oracle::occi::Environment::DEFAULT);
    con = environment->createConnection("aaa", "aaa", "Caaa");
    stmt = con->createStatement("select * from emp");
    res = stmt->executeQuery();
    while (res->next())
    std::cout << res->getInt(1) << " " << res->getString(2) << std::endl;
    stmt->closeResultSet(res);
    con->terminateStatement(stmt);
    environment->terminateConnection(con);
    } catch (oracle::occi::SQLException &e) {
    std::cout << e.what();
    return 0;
    }

    The demos have this:
    #include <iostream>
    #include <occi.h>
    using namespace oracle::occi;
    using namespace std;
    ...

  • 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++

  • Usr/lib/gcc/i586-suse-linux/4.3/libgcc_s.so: undefined reference to

    HRMS application
    EBS 11.5.10.2
    db 11.2.0.3
    Suse 11 sp2 split configuration.
    Hi,
    I have upgraded suse linux to 11 sp2 from version 10 sp4 not realising suse 11 version not certified by EBS 11.5.10.2 .
    Application is running fine but when I tried apply patch its is failing at relink level.
    usr/lib/gcc/i586-suse-linux/4.3/libgcc_s.so: undefined reference to
    `dl_iterate_phdr@GLIBC_2.2.4'
    collect2: ld returned 1 exit status
    make: *** [data/lnxtestappl/fnd/11.5.0/bin/ar60desb] Error 1
    Done with link of fnd executable 'ar60desb' on Wed Oct 17 15:21:32 EDT 2012
    Relink of module "ar60desb" failed.
    We have following packages on the system.
    Is there any work around without down grading OS to version 10?
    rpm -qa gcc|more
    gcc43-4.3.4_20091019-0.22.17
    gcc43-c++-4.3.4_20091019-0.22.17
    libgcc-4.1.2_20070115-0.32.53
    gcc-c++-4.3-62.198
    gcc-4.3-62.198
    libgcc46-4.6.1_20110701-0.13.9
    Hep is really really appreciated.
    Thanks.

    I have upgraded suse linux to 11 sp2 from version 10 sp4 not realising suse 11 version not certified by EBS 11.5.10.2 .
    Application is running fine but when I tried apply patch its is failing at relink level.
    usr/lib/gcc/i586-suse-linux/4.3/libgcc_s.so: undefined reference to
    `dl_iterate_phdr@GLIBC_2.2.4'
    collect2: ld returned 1 exit status
    make: *** [data/lnxtestappl/fnd/11.5.0/bin/ar60desb] Error 1
    Done with link of fnd executable 'ar60desb' on Wed Oct 17 15:21:32 EDT 2012
    Relink of module "ar60desb" failed.
    We have following packages on the system.
    Is there any work around without down grading OS to version 10?If it is not certified, I would not suggest any workaround and I would only suggest you run on a certified OS.
    Thanks,
    Hussein

  • Errpr /lib64/libm.so.6: undefined reference to `__get_cpu_features@GLIBC_PR

    Hi,
    I am trying to install (FMW) IDM on OraLinux 6.0, but I am getting following error in middle of installation 92%complete.
    Popup
    Error in invoking target 'all' of makefile
    '$oracle_home/idm/lib/ins_asha.mk'. See
    $oracle_inventory/log/install{datetime}.log for details.My installation error log file show following message.
    /app/oraInventory/logs/install{datetime}.log
    Exception Name: MakefileException
    Exception String: Error in invoking target 'all' of makefile '/app/oracle/fmw/idm/lib/ins_asha.mk'. See '/app/oraInventory/logs/install2011-09-10_11-21-01AM.log' for details.
    Exception Severity: 1
    ]]and my make file log shows following error.
    /app/oracle/fmw/idm/install/make.log
    gcc -o /app/oracle/fmw/idm/bin/hasoipmn -L/app/oracle/fmw/idm/lib/ -L/app/oracle/fmw/idm/lib/ -L/app/oracle/fmw/idm/lib/stubs/  /app/oracle/fmw/idm/lib/s0hasoipmn.o /app/oracle/fmw/idm/lib/libclntsh.so /app/oracle/fmw/idm/lib/libhasocket.so -L/usr/lib -lirc -lpthread -lrt -lnsl
    /lib64/libm.so.6: undefined reference to `__get_cpu_features@GLIBC_PRIVATE'
    collect2: ld returned 1 exit status
    make: *** [/app/oracle/fmw/idm/bin/hasoipmn] Error 1Does any body have idea, how to resolve this error.

    I have the same problem when installing idm
    Edit the env_asha.mk make file and add -lm the following lines:
    ifeq ($(PLATFORM), linux)
    HASOCKET_IP_MONITOR_LINKLINE+= $(LLIBIRC) -lpthread -lrt -lnsl -lm
    endif
    ifeq ($(PLATFORM), x86_64)
    HASOCKET_IP_MONITOR_LINKLINE+= -L$(COMPDIR)/lib -lirc -lpthread -lrt -lnsl -lm
    endif
    Most of the times you try to install Oracle on an os that is too advanced for Oracle, you need to link either explicit to the m or nnz11 libs.
    And I did post this solution before, but Oracle did censor it.
    Yes Oracle can be installed on Fedora16, which came out yester day!!!
    I did it!!!

  • 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.

Maybe you are looking for