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: Carlo de Falco
Subject: Re: Memory exaustion or size too large for index
Date: Thu, 25 Feb 2010 13:51:47 +0100


On 25 Feb 2010, at 13:49, Jaroslav Hajek wrote:


Usually it's deep in *** somewhere in the gcc install directory
/usr/lib/gcc/*/include
I thought it's figured out by configure but it doesn't seem so.
Instead you can use template&macro magic to find out:

#include <iostream>
#include <cstddef>

#define PICK(TYPE) void pick(TYPE) { std::cout << #TYPE << '\n'; }
PICK(unsigned int)
PICK(unsigned long)
PICK(unsigned long long)
int main ()
{
 pick (size_t ());
}

I expect you get "unsigned long long", right?

no:

$ /opt/octave/3.3/bin/mkoctfile --link-stand-alone prova.cc
$ ./a.out
unsigned long

c.


reply via email to

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