2010/2/25 Simon de Graaf <[email protected]>:
> Hello,
>
> I am working under opensuse and cross compiling for 64 bits Windows.
> I cannot compile the gmp library because mp_limb_t is 32 bits, because of
> the 32 bit long type.  I have tried to use the -m64 option but it does
> not work.
the variant provide in our source packages if for building of gcc only
(along with mpfrr and mpc). We use in-tree build here.
> Why can a long integer not be set to 64 bits?
> I have used the binary package from source froge.
> Must i maybe download the source package and compile to cross-compiler
> myself
> to get this behaviour?

Well, the size of type 'long' we can change here. It is part of MS
decission of ABI. For native win32 world, the type 'long' is 32-bit
wide. Therefore for 64-bit Windows, you have to use 'long long' type
to have the scalar width of a pointer. But in general it is better to
use intptr_t/uintptr_t types for any platform you are programming for,
as those types abstract this issue in a standarized way.

Regards,
Kai


-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to