Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » C++ basic data types that are cross-platform
C++ basic data types that are cross-platform [message #1856151] Wed, 23 November 2022 10:43 Go to next message
Soham Mukherjee is currently offline Soham MukherjeeFriend
Messages: 7
Registered: June 2022
Junior Member
Primitive data types in C++, unlike Java or C#, can vary in size depending on the platform. Int is not guaranteed to be a 32-bit integer, for example. For this reason, several compiler environments create data types such as uint32 or dword, but there appears to be no standard included file for fixed-size data types.
According to this tutorial, I should create a header file named types.h and specify all of the fixed-size primitive types I require (int32, uint32, uint8, etc.). Is that right?
What is the best way to achieve the greatest portability?
Re: C++ basic data types that are cross-platform [message #1856187 is a reply to message #1856151] Fri, 25 November 2022 06:08 Go to previous message
Kent Dorfman is currently offline Kent DorfmanFriend
Messages: 21
Registered: December 2020
Junior Member
False.

#include <cstdint>
Previous Topic:make *** main.o error 1
Next Topic:Custom syntax/code highlight
Goto Forum:
  


Current Time: Sat Jan 18 04:59:50 GMT 2025

Powered by FUDForum. Page generated in 0.02817 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top