Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Compiling mex-file under 64bit-linux
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Friedrich Gottelt  
View profile  
 More options Mar 2 2007, 3:43 am
Newsgroups: comp.soft-sys.matlab
From: "Friedrich Gottelt" <friedrich.gott...@uni-rostock.de>
Date: Fri, 2 Mar 2007 03:43:16 -0500
Local: Fri, Mar 2 2007 3:43 am
Subject: Compiling mex-file under 64bit-linux
I want to use some Fortran-Code from Matlab using a Mex-file. This
worked well under linux 32bit. But when I changed to 64bit Linux
involving 64bit MAtlab, I get a segmentation fault when calling that
mex. The Compilation with mex is obviously completed withaout any
error and a *.mexa64 is created. It seems that the last action before
crashing is calling the matlab function mxgetM in the gateway
routine. Is there anything to regard when using this function under
64bit operating systems??
TThanks in advance, Friedrich

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Hulbert  
View profile  
 More options Mar 2 2007, 6:06 am
Newsgroups: comp.soft-sys.matlab
From: Christopher Hulbert <cchgroupm...@gmail.com>
Date: Fri, 2 Mar 2007 06:06:24 -0500
Local: Fri, Mar 2 2007 6:06 am
Subject: Re: Compiling mex-file under 64bit-linux

Friedrich Gottelt wrote:
> I want to use some Fortran-Code from Matlab using a Mex-file. This
> worked well under linux 32bit. But when I changed to 64bit Linux
> involving 64bit MAtlab, I get a segmentation fault when calling that
> mex. The Compilation with mex is obviously completed withaout any
> error and a *.mexa64 is created. It seems that the last action before
> crashing is calling the matlab function mxgetM in the gateway
> routine. Is there anything to regard when using this function under
> 64bit operating systems??
> TThanks in advance, Friedrich

The most common cause of this is a mismatch in pointer size. All pointers need
to be 8 bytes for 64-bit linux compared to the 4 bytes for 32-bit linux.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Friedrich Gottelt  
View profile  
 More options Mar 2 2007, 7:11 am
Newsgroups: comp.soft-sys.matlab
From: "Friedrich Gottelt" <friedrich.gott...@uni-rostock.de>
Date: Fri, 2 Mar 2007 07:11:51 -0500
Local: Fri, Mar 2 2007 7:11 am
Subject: Re: Compiling mex-file under 64bit-linux
dear Christopher, thanks for your quick reply! changing the size of
the pointers was the solution!!


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google