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" Subject: mexgcc Content-Type: multipart/alternative; boundary="------------1E1682434AD5199E18F9A50A" --------------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 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/plain; charset= -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com --------------1E1682434AD5199E18F9A50A--