help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory exaustion or size too large for index


From: Jaroslav Hajek
Subject: Re: Memory exaustion or size too large for index
Date: Thu, 25 Feb 2010 14:08:02 +0100

On Thu, Feb 25, 2010 at 2:06 PM, Carlo de Falco <address@hidden> wrote:
>
> On 25 Feb 2010, at 14:02, Carlo de Falco wrote:
>
>>
>> $ /opt/octave/3.3/bin/mkoctfile --link-stand-alone prova.cc
>> $ ./a.out
>> sizeof (int) = 4
>> sizeof (unsigned int) = 4
>> sizeof (long) = 4
>> sizeof (unsigned long) = 4
>> sizeof (long long) = 8
>> sizeof (unsigned long long) = 8
>> sizeof (size_t) = 4
>> sizeof (ptrdiff_t) = 4
>> sizeof (void *) = 4
>
> but
>
> $ g++ -m64 prova.cc
> guglielmo.local $ ./a.out
> sizeof (int) = 4
> sizeof (unsigned int) = 4
> sizeof (long) = 8
> sizeof (unsigned long) = 8
> sizeof (long long) = 8
> sizeof (unsigned long long) = 8
> sizeof (size_t) = 8
> sizeof (ptrdiff_t) = 8
> sizeof (void *) = 8
>
> c.
>

Ah. So you need the -m64 option for building Octave.



-- 
RNDr. Jaroslav Hajek, PhD
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz


reply via email to

[Prev in Thread] Current Thread [Next in Thread]