[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MXE mingw] "unknown type name 'int64_t'" with --enable-64 when comp
From: |
Philip Nienhuis |
Subject: |
Re: [MXE mingw] "unknown type name 'int64_t'" with --enable-64 when compiling mex files |
Date: |
Mon, 25 Aug 2014 06:34:51 -0700 (PDT) |
Jordi GutiƩrrez Hermoso-2 wrote
> On Fri, 2014-08-22 at 09:55 -0700, Philip Nienhuis wrote:
>> C:\Octave\octave64-3.8.2\include\octave-3.8.2\octave/mxarray.h:89:9:
>> error:
>> unknown type name 'int64_t'
>
> These are part of the C and C++ standard:
>
> http://en.wikipedia.org/wiki/Stdint.h#stdint.h
>
> They're "new", so I guess some older compilers might still not have
> them, but more likely is that we just need to add some #includes.
Including <stdint> didn't help.
Some more googling turned up that "int64_t is not defined on MingW" (see
https://rt.cpan.org/Public/Bug/Display.html?id=82369, 1st answer). Don't
know how accurate / up-to-date this answer actually is.
But maybe the problems I hit are also related to the use of C rather than
C++
I've replaced the .mex files (in C) by .oct files (in C++) and those get
compiled and do work fine; that said I didn't use int64_t there.
So my problem is solved.
Perhaps .oct files are more appropriate in OF packages than .mex files
anyway (?)
Philip
--
View this message in context:
http://octave.1599824.n4.nabble.com/MXE-mingw-unknown-type-name-int64-t-with-enable-64-when-compiling-mex-files-tp4666187p4666200.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.