Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: thssld on June 07, 2009, 03:40:56 am

Title: Use int32_t without using cstdint?
Post by: thssld on June 07, 2009, 03:40:56 am
I wrote a very short code like this, and it works.
Code
#include <iostream>

using std::cout;

int main(){
    int32_t a = 8;
    cout << a;
    return 0;
}
but i didn't add a line like this:
Code
#include <cstdint>
this header is in the tr1, and not included in the mingw 3.4.5
can i use all the functions of cstdint without including it?
Title: Re: Use int32_t without using cstdint?
Post by: Jenna on June 07, 2009, 09:56:05 am
I wrote a very short code like this, and it works.
Code
#include <iostream>

using std::cout;

int main(){
    int32_t a = 8;
    cout << a;
    return 0;
}
but i didn't add a line like this:
Code
#include <cstdint>
this header is in the tr1, and not included in the mingw 3.4.5
can i use all the functions of cstdint without including it?

Question not related to C::B and therefore violating our forum rules.

Ask in a MinGW / c++ forum.

Topic locked !!