Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. unresolved external symbol sqlcxt

unresolved external symbol sqlcxt

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
9 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    ravi120486
    wrote on last edited by
    #1

    Hi, I am using ProC code in my 64 bit application. i am getting the following error while building it: error LNK2001: unresolved external symbol sqlcxt I have added extern"C" in sqlcxt definition.

    extern "C"
    {
    void sqlcxt (void **, unsigned int *,
    struct sqlexd *, const struct sqlcxp *);
    void sqlcx2t(void **, unsigned int *,
    struct sqlexd *, const struct sqlcxp *);
    void sqlbuft(void **, char *);
    void sqlgs2t(void **, char *);
    void sqlorat(void **, unsigned int *, void *);
    }

    Does any one has any idea why I am getting this? :(

    _ 1 Reply Last reply
    0
    • R ravi120486

      Hi, I am using ProC code in my 64 bit application. i am getting the following error while building it: error LNK2001: unresolved external symbol sqlcxt I have added extern"C" in sqlcxt definition.

      extern "C"
      {
      void sqlcxt (void **, unsigned int *,
      struct sqlexd *, const struct sqlcxp *);
      void sqlcx2t(void **, unsigned int *,
      struct sqlexd *, const struct sqlcxp *);
      void sqlbuft(void **, char *);
      void sqlgs2t(void **, char *);
      void sqlorat(void **, unsigned int *, void *);
      }

      Does any one has any idea why I am getting this? :(

      _ Offline
      _ Offline
      _Superman_
      wrote on last edited by
      #2

      What you're getting is a linker error. This can be fixed by referencing the library in which sqlcxt etc. are implemented.

      «_Superman_»
      I love work. It gives me something to do between weekends.

      Microsoft MVP (Visual C++)

      Polymorphism in C

      R 1 Reply Last reply
      0
      • _ _Superman_

        What you're getting is a linker error. This can be fixed by referencing the library in which sqlcxt etc. are implemented.

        «_Superman_»
        I love work. It gives me something to do between weekends.

        Microsoft MVP (Visual C++)

        Polymorphism in C

        R Offline
        R Offline
        ravi120486
        wrote on last edited by
        #3

        I am linking to orasql9.lib. Can u tell me which library I have to link? Actually this is working fine for 32 bit application. But for 64 bit i am getting this error.:) Please Help......

        _ 1 Reply Last reply
        0
        • R ravi120486

          I am linking to orasql9.lib. Can u tell me which library I have to link? Actually this is working fine for 32 bit application. But for 64 bit i am getting this error.:) Please Help......

          _ Offline
          _ Offline
          _Superman_
          wrote on last edited by
          #4

          Make sure you're linking to the library in the 64-bit configuration. Each configuration will have separate settings. So you must have missed referencing the library for the 64-bit configuration.

          «_Superman_»
          I love work. It gives me something to do between weekends.

          Microsoft MVP (Visual C++)

          Polymorphism in C

          R 1 Reply Last reply
          0
          • _ _Superman_

            Make sure you're linking to the library in the 64-bit configuration. Each configuration will have separate settings. So you must have missed referencing the library for the 64-bit configuration.

            «_Superman_»
            I love work. It gives me something to do between weekends.

            Microsoft MVP (Visual C++)

            Polymorphism in C

            R Offline
            R Offline
            ravi120486
            wrote on last edited by
            #5

            Actually orasql9.lib is a sql file,which is present in the Oracle 9i client I have installed. So for 64 bit I am not getting which lib file to link.

            _ 1 Reply Last reply
            0
            • R ravi120486

              Actually orasql9.lib is a sql file,which is present in the Oracle 9i client I have installed. So for 64 bit I am not getting which lib file to link.

              _ Offline
              _ Offline
              _Superman_
              wrote on last edited by
              #6

              .LIB files are usually the same for 32-bit and 64-bit. It's only the corresponding DLLs that are different.

              «_Superman_»
              I love work. It gives me something to do between weekends.

              Microsoft MVP (Visual C++)

              Polymorphism in C

              R 1 Reply Last reply
              0
              • _ _Superman_

                .LIB files are usually the same for 32-bit and 64-bit. It's only the corresponding DLLs that are different.

                «_Superman_»
                I love work. It gives me something to do between weekends.

                Microsoft MVP (Visual C++)

                Polymorphism in C

                R Offline
                R Offline
                ravi120486
                wrote on last edited by
                #7

                So do i need to install oracle 9i client for 64 bit? or is there any way to use 32 bit dll?

                _ 1 Reply Last reply
                0
                • R ravi120486

                  So do i need to install oracle 9i client for 64 bit? or is there any way to use 32 bit dll?

                  _ Offline
                  _ Offline
                  _Superman_
                  wrote on last edited by
                  #8

                  You will need to install the 64-bit client if there is one. 64-bit applications cannot load 32-bit DLLs and vice-versa.

                  «_Superman_»
                  I love work. It gives me something to do between weekends.

                  Microsoft MVP (Visual C++)

                  Polymorphism in C

                  R 1 Reply Last reply
                  0
                  • _ _Superman_

                    You will need to install the 64-bit client if there is one. 64-bit applications cannot load 32-bit DLLs and vice-versa.

                    «_Superman_»
                    I love work. It gives me something to do between weekends.

                    Microsoft MVP (Visual C++)

                    Polymorphism in C

                    R Offline
                    R Offline
                    ravi120486
                    wrote on last edited by
                    #9

                    ok got it.... Thanks -Superman- for your replies :)

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups