Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: <cstdint>


This question is answered. Helpful answers available: 0. Correct answers available: 1.


Permlink Replies: 4 - Last Post: Feb 16, 2018 8:02 PM Last Post By: Ted Lyngmo
Garrett B

Posts: 77
Registered: 10/2/16
<cstdint>  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 2, 2018 1:37 PM
Hi

I am using Embarcadero C++ Builder XE

Something simple is confusing me :)
My application seems to be unable to find the file cstdint.hpp.

When I include a 3rd party header in my application, it has the following statement:
#ifdef __cplusplus
#include <cstdint>
extern "C" {
#else
#include <stdint.h>
#endif


When I try to compile my application I get error
E2209: Unable to open include file 'cstdint'.


The file, cstdint.hpp, is locate at:

C:\Program Files (x86)\Embarcadero\RAD Studio\8.0\include\boost_1_39\boost

My project settings:

Directory and Conditionals | Include path :
... includes the following:
$(CG_BOOST_ROOT);
$(CG_BOOST_ROOT)\boost;


C++ Compiler | Directory and Conditionals | Include path :
... includes the following:
$(CG_BOOST_ROOT);
$(CG_BOOST_ROOT)\boost;


And
Debugger | Environment Block :
... includes the following System Variable definition:
CG_BOOST_ROOT        C:\Program Files (x86)\Embarcadero\RAD Studio\8.0\include\boost_1_39\boost
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: <cstdint>
Helpful
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 2, 2018 4:40 PM   in response to: Garrett B in response to: Garrett B
Garrett B wrote:

I am using Embarcadero C++ Builder XE

My application seems to be unable to find the file cstdint.hpp.

<cstdint> is a C++11 header file. XE didn't support C++11 yet, that
was added later in XE3 when the first Clang-based C++ compiler (bcc64
for Windows 64bit) was introduced.

--
Remy Lebeau (TeamB)
Ted Lyngmo

Posts: 117
Registered: 10/3/06
Re: <cstdint>
Helpful
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 2, 2018 6:21 PM   in response to: Garrett B in response to: Garrett B
Garrett B wrote:
Hi

I am using Embarcadero C++ Builder XE

Something simple is confusing me :)

It's not simple in my book. C+11 isn't really the same language as anything that existed before, so mixing it up will be complicated.

Chances are that you are including the wrong version of the 3pp. That'd be the best. If the supplier has an older alternative to your current lib, that's what you should go for.

If not, one obstacle obscuring the way ahead may be the inclusion of the "boost" templates. That framework is so good that you often don't notice when you cross a language (version) barrier.

If you undef all post XE language features you find at http://en.cppreference.com/w/cpp/experimental/feature_test you may trick boost into acting in a way XE accepts. It's not likely but removing one new feature at a time may narrow it down into something possible to handle.

If not, cstdint in itself is usually not a problem. What does the 3pp do?

Br,
Ted
Garrett B

Posts: 77
Registered: 10/2/16
Re: <cstdint>  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 5, 2018 10:07 AM   in response to: Ted Lyngmo in response to: Ted Lyngmo
Thank you Remy and Ted for your feedback.
It is certainly food for thought.
It is exposing to me my lack of knowledge of C++11 (and so much of C++) - I don't even know what you mean Ted, when you refer to 3pp.
So I will talk with the supplier of the libraries, proceed cautiously, and maybe sign up for a C++ 11 online course :).

Thanks again

Garrett
Ted Lyngmo

Posts: 117
Registered: 10/3/06
Re: <cstdint>  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 16, 2018 7:20 PM   in response to: Garrett B in response to: Garrett B
Chances are that you are including the wrong version of the 3pp.

I don't even know what you mean Ted, when you refer to 3pp

Oh, by 3pp I meant some outside person/institution getting in the mix - a third party product - a 3pp...

Br,
Ted
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02