Thread: cannot understand some declaration like "extern Lda_Def lda", no definition Lda_Def

  1. #1
    Registered User
    Join Date
    Apr 2017
    Posts
    51

    cannot understand some declaration like "extern Lda_Def lda", no definition Lda_Def

    In the header file I see:
    Code:
    extern Lda_Def lda;
    In C programs
    Code:
    Lda_Def gLda;                               /* login area */
    then for example
    Code:
    ologof(&gLda);
    But I never met any definition of Lda_Def, cannot find any function.
    Could you help me? I don't even see libraries, in makefile LIB is path to src directory

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    That just means that you need better searching skills: Lda_Def has to be declared somewhere otherwise. A quick search of the Web brings up The OCI Functions for C, so perhaps you should look out for a relevant header file... or maybe not as it is quite plausible for some other type to be named Lda_Def.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Apr 2017
    Posts
    51
    Dol you want to say that OCI functions are C functions, which are in UNIX and I don't have to understand how they work? I mean it is build-in functions?

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,663
    C doesn't have built-in functions (excluding optimisations of certain compilers).

    C has a standard library which is available on all conforming systems.
    C Standard Library header files - cppreference.com

    Any other header file is either platform specific (say unistd.h which is common to most if not all POSIX systems), or a vendor specific.

    If you're on a Unix/Linux/BSD like system, you might look in all the directory trees
    /usr/include
    /usr/lib
    /usr/local
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Registered User
    Join Date
    Apr 2017
    Posts
    51
    OCI is Oracle calls interface. And my question now is: I found Oracle header files. But I cannot find OCI function descriptions. For example oparse(), orlon() and so on. I try to google it, but not to match found. May be you know where I can find them? Or you know the UNIX AIX directory, where those function located?

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,663
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  7. #7
    Registered User
    Join Date
    Apr 2017
    Posts
    51
    there is no description of OCI function. I am on it. I cannot even find what odefin() function does

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 05-07-2017, 12:29 PM
  2. Replies: 39
    Last Post: 07-28-2013, 08:24 PM
  3. Replies: 17
    Last Post: 12-15-2006, 11:02 AM
  4. "itoa"-"_itoa" , "inp"-"_inp", Why some functions have "
    By L.O.K. in forum Windows Programming
    Replies: 5
    Last Post: 12-08-2002, 08:25 AM
  5. the definition of a mathematical "average" or "mean"
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 12-03-2002, 11:15 AM

Tags for this Thread