-
December 7th, 2007, 11:52 PM
#1
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
-
December 8th, 2007, 12:26 AM
#2
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 for more.
-
December 8th, 2007, 11:09 AM
#3
Re: what is int32_t? and why can't different vendor just use int?
-
December 9th, 2007, 12:30 PM
#4
Re: what is int32_t? and why can't different vendor just use int?
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.
Can you help me with my homework assignment?, Before you post!, Use code tags, How to post!, Codeguru technical FAQs, C++ FAQ Lite, Stroustrup: C++ Style and Technique FAQ, Guru of the Week, Comeau C and C++ FAQs, Comeau C++ Templates FAQs, CUJ @ DDJ, Spam threshold
My Blogs : Learning C++ is fun | Abnegator's reflections
Open Threads : C++ Aha! Moments | Nature of work in C++?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|