Find the answer to your Linux question:
Results 1 to 4 of 4
Hi...... /usr/include has a file mpool.h and /usr/lib/libdb.a /usr/lib/libdb.so /usr/lib/libdb.so.1 if i include this file in my code as #include<db.h> #include< mpool.h> i m geting the following errors: /usr/include/mpool.h:53: 'pgno_t' ...
  1. #1
    Just Joined!
    Join Date
    Mar 2008
    Posts
    13

    memory pool

    Hi......
    /usr/include has a file mpool.h and
    /usr/lib/libdb.a
    /usr/lib/libdb.so
    /usr/lib/libdb.so.1


    if i include this file in my code as
    #include<db.h>
    #include< mpool.h>

    i m geting the following errors:

    /usr/include/mpool.h:53: 'pgno_t' is used as a type, but is not defined as a
    type.
    what is the meaning of the above error?
    i have downloaded the mpool.h from site given below

    TinyCOBOL documents written in wiki

  2. #2
    Linux Guru
    Join Date
    Nov 2007
    Location
    Córdoba (Spain)
    Posts
    1,513
    Quote Originally Posted by Mugdha View Post
    Hi......
    /usr/include has a file mpool.h and
    /usr/lib/libdb.a
    /usr/lib/libdb.so
    /usr/lib/libdb.so.1


    if i include this file in my code as
    #include<db.h>
    #include< mpool.h>

    i m geting the following errors:

    /usr/include/mpool.h:53: 'pgno_t' is used as a type, but is not defined as a
    type.
    what is the meaning of the above error?
    i have downloaded the mpool.h from site given below

    TinyCOBOL documents written in wiki
    First, remove that blank space in "< mpool.h>". Second, if you did not install mpool.h into the regular system include folders, then you need to indicate an absolute or relative path but using double quotes instead of the <...> pair. Like this:

    Code:
    #include"path/to/mpool.h"

  3. #3
    Just Joined!
    Join Date
    Mar 2008
    Posts
    13
    yes I have installed mpool.h into the regular system ( /usr/include/mpool.h )include folders n used it as <mpool.h>

  4. #4
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    Mugdha, what is the exact output you get when you do this at the command line, logged in as the same user who does the compilations?
    Code:
    ls -ld /usr/include/mpool.h
    --
    Bill

    Old age and treachery will overcome youth and skill.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...