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 8368489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:24:16+00:00 2026-06-09T13:24:16+00:00

I have a typedef defined in my code as typdef unsigned int size_t; it

  • 0

I have a typedef defined in my code as

typdef unsigned int size_t;

it is conflicting with stddef’s

typedef __SIZE_TYPE__ size_t;

I’m unsure how to get around this but would still like to keep size_t in my code.

  • 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-06-09T13:24:18+00:00Added an answer on June 9, 2026 at 1:24 pm

    Two Three options:

    1) Pick a different name, I think you already got that.

    2) Use a namespace:

    namespace X
    {
       typedef long size_t;
    }
    

    and the type as

    X::size_t x;
    

    3) Ugly, guaranteed to get you fired, and me downvoted:

    typedef unsigned int my_size_t;
    #define size_t my_size_t
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this (working) CPU code: #define NF 3 int ND; typedef double (*POT)(double
I have a C library code, in which extern method is defined: typedef unsigned
I have the following piece of code: typedef int AliasB; typedef unsigned short AliasA;
So, I have a function pointer defined as: unsigned static int (*current_hash_function)(unsigned int); And
I have a singly linked list with node and list structs defined as: typedef
I have defined the following struct in C: typedef struct point{ float x; float
I have a list of types defined as: typedef boost::mpl::list<Apple, Pear, Brick> OriginalList; I
I have been working on some code that is similar to the following: typedef
I have this code, the point is that I want to receive no more
I have this simple code inserted in myfile.hpp file inside a project of mine:

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.