delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/02/06/01:11:08

Delivered-To: listarch-cygwin AT sourceware DOT cygnus DOT com
Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: mendes AT mgconecta DOT com DOT br
Message-ID: <36BB9741.B08F6C88@mgconecta.com.br>
Date: Fri, 05 Feb 1999 23:13:37 -0200
X-Mailer: Mozilla 4.5 [en] (Win98; I)
X-Accept-Language: en
MIME-Version: 1.0
To: "gnu-win32 AT cygnus DOT com" <gnu-win32 AT cygnus DOT com>
Subject: mexgcc

--------------1E1682434AD5199E18F9A50A
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi everybody
    My first intention when installing cygwin was to be able to create
mex
files for using in Matlab 5.2.  Although Mattew Brett (gccmex) gives all

necessary instructions to be install and run gccmex I have not been able
to
create dll (mex) files for my own source files as I have easily done in
my SUN ULTRA.
    My sources files are mixture of Fortran and C codes. In the fortran
files
I do all the mathematical stuff whereas in C files I create the gateway
for
linking to Matlab. As I do not have a Fortran compiler I used f2c to
translate all my fortran code to C. When creating mex for these files I
have
to include libf2c.a. This works fine for gcc in the SUN but not for gcc
in
my PC. The command mex -V4 filenames.c libf2c returns the following
msgs:


> libf2c.a(iio.o)(.text+0x35): undefined reference to `__errno'
>     libf2c.a(iio.o)(.text+0x160): undefined reference to `__errno'
>     libf2c.a(iio.o)(.text+0x413): undefined reference to `__errno'
>     libf2c.a(wsle.o)(.text+0x90): undefined reference to `__errno'
>     libf2c.a(wsle.o)(.text+0x97): undefined reference to `__errno'
>     libf2c.a(wsle.o)(.text+0xa7): more undefined references to `__errno' follow
>     libf2c.a(fmt.o)(.text+0x92): undefined reference to `_impure_ptr'
>     libf2c.a(fmt.o)(.text+0xd83): undefined reference to `_impure_ptr'
>     libf2c.a(fmt.o)(.text+0xd9e): undefined reference to `__errno'
>     libf2c.a(fmt.o)(.text+0xe4f): undefined reference to `__errno'
>

I have the impression that mexgcc does not accept the inclusion of an
extra lib.
Does anyone have an idea of how to get things working?

An alternative would be creating an obj for fortran code and then
including it
to the mex command but unfortunately g77 can't compile the files (Odd!
F2c
can translate them but g77 can't compile them!!!!). Again, does anybody
have
an idea of what is wrong?

Any help would be most appreciated.

Thank you for your time and patience.

Regards

Eduardo


--------------1E1682434AD5199E18F9A50A
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hi everybody
<br>&nbsp;&nbsp;&nbsp; My first intention when installing cygwin was to
be able to create mex
<br>files for using in Matlab 5.2.&nbsp; Although Mattew Brett (gccmex)
gives all
<br>necessary instructions to be install and run gccmex I have not been
able to
<br>create dll (mex) files for my own source files as I have easily done
in my SUN ULTRA.
<br>&nbsp;&nbsp;&nbsp; My sources files are mixture of Fortran and C codes.
In the fortran files
<br>I do all the mathematical stuff whereas in C files I create the gateway
for
<br>linking to Matlab. As I do not have a Fortran compiler I used f2c to
<br>translate all my fortran code to C. When creating mex for these files
I have
<br>to include libf2c.a. This works fine for gcc in the SUN but not for
gcc in
<br>my PC. The command mex -V4 filenames.c libf2c returns the following
msgs:
<br>&nbsp;
<blockquote TYPE=CITE>
<pre>libf2c.a(iio.o)(.text+0x35): undefined reference to `__errno'
&nbsp;&nbsp;&nbsp; libf2c.a(iio.o)(.text+0x160): undefined reference to `__errno'
&nbsp;&nbsp;&nbsp; libf2c.a(iio.o)(.text+0x413): undefined reference to `__errno'
&nbsp;&nbsp;&nbsp; libf2c.a(wsle.o)(.text+0x90): undefined reference to `__errno'
&nbsp;&nbsp;&nbsp; libf2c.a(wsle.o)(.text+0x97): undefined reference to `__errno'
&nbsp;&nbsp;&nbsp; libf2c.a(wsle.o)(.text+0xa7): more undefined references to `__errno' follow
&nbsp;&nbsp;&nbsp; libf2c.a(fmt.o)(.text+0x92): undefined reference to `_impure_ptr'
&nbsp;&nbsp;&nbsp; libf2c.a(fmt.o)(.text+0xd83): undefined reference to `_impure_ptr'
&nbsp;&nbsp;&nbsp; libf2c.a(fmt.o)(.text+0xd9e): undefined reference to `__errno'
&nbsp;&nbsp;&nbsp; libf2c.a(fmt.o)(.text+0xe4f): undefined reference to `__errno'</pre>
</blockquote>

<p><br>I have the impression that mexgcc does not accept the inclusion
of an extra lib.
<br>Does anyone have an idea of how to get things working?
<p>An alternative would be creating an obj for fortran code and then including
it
<br>to the mex command but unfortunately g77 can't compile the files (Odd!
F2c
<br>can translate them but g77 can't compile them!!!!). Again, does anybody
have
<br>an idea of what is wrong?
<p>Any help would be most appreciated.
<p>Thank you for your time and patience.
<p>Regards
<p>Eduardo
<br>&nbsp;</html>


--------------1E1682434AD5199E18F9A50A
Content-Type: text/plain; charset=

--   
Want to unsubscribe from this list?                             
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
--------------1E1682434AD5199E18F9A50A--


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019