__int64
Brian Budge
brian.budge@gmail.com
Mon Sep 28 22:26:00 GMT 2009
if you #include <stdint.h>, then you can use int64_t.
On Mon, Sep 28, 2009 at 3:24 PM, Steve Adams <stva@sbcglobal.net> wrote:
> I've sent someone C source code for a simple routine that
> compiles fine with Microsoft's Visual C++, but when they
> try to compile it with gcc they get the errors:
>
> -bash-3.2$ g++ nkg.cpp
> nkg.cpp: In function āint main(int, char**)ā:
> nkg.cpp:83: error: ā__int64ā does not name a type
> nkg.cpp:84: error: ā__int64ā does not name a type
> nkg.cpp:89: error: āserNumā was not declared in this scope
> nkg.cpp:96: error: āserNumā was not declared in this scope
> nkg.cpp:141: error: ālicenseā was not declared in this scope
> nkg.cpp:145: error: ālicenseā was not declared in this scope
>
>
> These appear to be related to two 64-bit I've declared:
>
> unsigned __int64 serNum=0;
> unsigned __int64 license=0;
>
> Apparently gcc doesn't recognize this format for a 64-bit
> integer. Could someone point out what I need to put here
> to declare the 64-bit integer so gcc will accept it?
>
> Thanks for any help.
>
> Steve Adams
>
More information about the Gcc-help
mailing list