what is int32_t? and why can't different vendor just use int?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: what is int32_t? and why can't different vendor just use int?

  1. #1
    Join Date
    Oct 2007
    Posts
    35

    what is int32_t? and why can't different vendor just use int?

    Hi.

    I am trying to use a random class from boost::random.
    Many of the variables in boost::Random's header files use variable of type int32_t.

    I am using VC++ and couldnt find where int32_t is defined.
    Google int32_t give thousands of unrelated pages. I search gcc manual, and also couldnt find the definition of this type.

    What's the benefit of defining type with different name like __int32 in vc++, and int32_t in ...?

    Where is int32_t defined? Is it only for linux os?

    I dont even know where to look for int32_t, int64_t. What kind of document should I look for (iso c++ standard, ...)?

    Thanks a lot for reading though all those questions above.
    : )


    regards,
    Sam

  2. #2
    Join Date
    May 2007
    Posts
    798

    Re: what is int32_t? and why can't different vendor just use int?

    int32_t is defined in boost, so when you use any boost functionality you will get boost::int32_t. There more of those typedef and you can look in
    Code:
    boost/cstdint.hpp
    for more.

  3. #3
    Join Date
    Oct 2007
    Posts
    35

    Re: what is int32_t? and why can't different vendor just use int?

    Thanks STL dude : )

  4. #4
    Join Date
    Feb 2005
    Location
    "The Capital"
    Posts
    5,306

    Re: what is int32_t? and why can't different vendor just use int?

    Quote Originally Posted by SamWo123
    I am trying to use a random class from boost::random.
    Many of the variables in boost::Random's header files use variable of type int32_t.

    I am using VC++ and couldnt find where int32_t is defined.
    I hope you did not get compilation errors because of that else you might want to report that to boost mailing list.

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center