help-octave
[Top][All Lists]
Advanced

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

Re: mex file using strings compiled on Win64 crashes


From: Michael Goffioul
Subject: Re: mex file using strings compiled on Win64 crashes
Date: Fri, 5 Jul 2013 11:06:18 -0400

On Fri, Jul 5, 2013 at 7:39 AM, Bug80 <address@hidden> wrote:
I tested the following on two installations of Octave3.6.4_gcc4.6.2, one on
Win32 (Windows 7) and one on Win64 (Windows 8) for a particular mex file.
Here is the code:



Compiled on Win32, run on Win32 --> works
Compiled on Win32, run on Win64 --> works
Compiled on Win64, run on Win32 --> crashes w/a segmentation fault
Compiled on Win64, run on Win64 --> crashes w/a segmentation fault

Apparently, there is something different different in the compilation
process between Win32 and Win64. Anyone has an idea what is possibly going
on?

I think the problem is different GCC version (as mention in the mail on nabble). There has been change in default calling conventions on Windows in 4.7.x, namely the thiscall convention and the way aggregate objects are returned, to make GCC compatible with MSVC conventions.

Michael.


reply via email to

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