2 Replies Latest reply: Feb 5, 2013 7:43 AM by pgab RSS

    Linker errors in Ubuntu


      I tried to link the Instant Client. I have downloaded the 32-Bit RPM for linux from the Oracle page and converted it with alien to a deb which could be installed. Now if I try to execute:

      g++ ./main.o -o cli -L/usr/lib/oracle/11.2/client/lib -pthread -lboost_system-mt -lboost_program_options-mt
      -lboost_thread-mt -lboost_filesystem-mt -lociei -lclntsh -locci

      I get a lot of errors like:

      /usr/lib/oracle/11.2/client/lib/libocci.so: undefined reference to `OCILobGetLength'

      Which part did I miss?

        • 1. Re: Linker errors in Ubuntu

          I don't think its a supported version on ubuntu so it may work or may not work. You can better try on a virtual machine with supported os.

          See this https://help.ubuntu.com/community/Oracle%20Instant%20Client

          • 2. Re: Linker errors in Ubuntu

            what else version than Ubuntu 12.10 do you suggest?

            To be honest, I don't think that this is an error due to the system itself. There might be something wrong with configuration of linker or compiler.


            Edit: I now used CMake to generate the Makefile and it work perfectly. Even the application in the end. Sadly CMake is a bit too complex to check the differences between my Makefile and the one produced by CMake.

            Edited by: pgab on 05.02.2013 14:42