Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7612433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:54:38+00:00 2026-05-31T01:54:38+00:00

In this header file, I am getting error: unknown type name uint32, uint16. I

  • 0

In this header file, I am getting error: unknown type name uint32, uint16. I am new to Objective-C and I am trying to import a project in Xcode. Build is failing due to the above issues. Google didn’t help.Tried adding /stdint/stdint.h in header search path ( xcode unknown type name, unknown type name 'uint8_t', MinGW, Xcode – how to include c library and header file to cocoa project?). Build still failing.

   /*-------------------------------------------------------------------------
     *
     * block.h
     *    POSTGRES disk block definitions.
     *
     *
     * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
     * Portions Copyright (c) 1994, Regents of the University of California
     *
     * $PostgreSQL: pgsql/src/include/storage/block.h,v 1.26 2010/01/02 16:58:08 momjian Exp $
     *
     *-------------------------------------------------------------------------
     */
    #ifndef BLOCK_H
    #define BLOCK_H

    /*
     * BlockNumber:
     *
     * each data file (heap or index) is divided into postgres disk blocks
     * (which may be thought of as the unit of i/o -- a postgres buffer
     * contains exactly one disk block).  the blocks are numbered
     * sequentially, 0 to 0xFFFFFFFE.
     *
     * InvalidBlockNumber is the same thing as P_NEW in buf.h.
     *
     * the access methods, the buffer manager and the storage manager are
     * more or less the only pieces of code that should be accessing disk
     * blocks directly.
     */
    typedef uint32 BlockNumber;

    #define InvalidBlockNumber      ((BlockNumber) 0xFFFFFFFF)

    #define MaxBlockNumber          ((BlockNumber) 0xFFFFFFFE)

    /*
     * BlockId:
     *
     * this is a storage type for BlockNumber.  in other words, this type
     * is used for on-disk structures (e.g., in HeapTupleData) whereas
     * BlockNumber is the type on which calculations are performed (e.g.,
     * in access method code).
     *
     * there doesn't appear to be any reason to have separate types except
     * for the fact that BlockIds can be SHORTALIGN'd (and therefore any
     * structures that contains them, such as ItemPointerData, can also be
     * SHORTALIGN'd).  this is an important consideration for reducing the
     * space requirements of the line pointer (ItemIdData) array on each
     * page and the header of each heap or index tuple, so it doesn't seem
     * wise to change this without good reason.
     */
    typedef struct BlockIdData
    {
        uint16      bi_hi;
        uint16      bi_lo;
    } BlockIdData;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T01:54:39+00:00Added an answer on May 31, 2026 at 1:54 am

    The types one should normally use are named like uint32_t (these are defined in C99, header file stdint.h). All others are non-standard and should be avoided if you can. Now in your case, you can’t avoid the non-standard types. So to make your code compile, you need to map the non-standard names to the standard ones like this:

    typedef uint32_t uint32;
    

    You need to add this mapping for all of the types used in PostgreSQL. One way would be either to add them to your precompiled header (.pch) file or to create a header with these typedefs that you #include before you include the PostgreSQL headers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting a compiler error with this header file: #ifndef GAME1_H #define GAME1_H #include
I keep getting this error: expected specifier-qualifier-list before ‘tcp_seq’ in my header file. Here
I'm getting this error in a header file: error: expected initializer before ‘<’ token
I've written a little header file, and I keep getting this error: expected specifier-qualifier-list
I have registered an enumeration type ClefType within my header file - this enum
I am using this for sending file to user header('Content-type: application/zip'); header('Content-Length: ' .
In my header file I'm getting the error: ‘string’ has not been declared error
As the title says, keep getting this error when trying to compile. From Googling
I am getting C++ Compiler error C2371 when I include a header file that
I'm getting error while compiling qt project which #include's < qvaluelist.h > that this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.