Re: g77 mex problem under win



"Rune Allnor" <allnor@xxxxxxxxxxxx> writes:

mex -setup <enter>
[choose a number corresponding to the detected compilers] <enter>
[confirm choise] <enter>

which ought to amount to hitting some 15 keys. Can you really
do it much faster and easier than that?

Yes, in emacs I hit C-c C-c RET.

Why do you insist on using gcc?

In my case because I need fortran-C integration and portability
between windows and linux also for the compilation solution.

I can't answer for the OP.

dollars. If your C code is so messy it only compiles under gcc, you are
probably in for big trouble anyway.

It does not and it is mainly fortran code. C is only interfacing
between fortran and matlab.

Nope. A MEX file only requires the interface function. The libs are
optional.

I don't think you are right. Mexing requires the mxArray to be
defined. This is done in the libmx.lib, afaik. In addition to do
something useful one might find it good to have libmex.lib included.

Really? Again, I don't have my matlab available, but I think the
interface executables were named .mexw32 or something like that.

They are not.

Things have changed, then, since 1998. In those days there was a
gcc C compiler, a g++ C++ compiler and a g77 fortran compiler.

You are right, gcc is a compiler suite and the name of the c compiler
in it. You can have look at mingw.org.

There is no reason for it to be.

There is no reason for it have any other predefined then, but it has.

What do you mean? That there is a fortran standard? If so, I have
never seen trace of it.

Are you kidding? To my knowledge Fortran 66 was the first standardized
fortran version. Did c exist then?

Did you compile the same code on several
systems, with several compilers?

Yes, hpux f77, mingw win g77, linux gcc, msvc, lahey,
Well the non-standard command line reading routine has to be
different, but that is non-standard anyway.

You obviously know gcc. Maybe
gcc accepts the same code across platforms. Have you tried
many commercial fortran compilers?

Yep.

Your own way or the efficient way. Believe me. I have tried both.

Under my conditions they are the same ;-)
--
Brian (remove the sport for mail)
http://www.et.web.mek.dtu.dk/Staff/be/be.html
http://www.rugbyklubben-speed.dk
.



Relevant Pages

  • GCC / gfortran 4.3.0 approaches the regression-only freeze periode
    ... The GNU Compiler Collection (GCC) and thus also gfortran will soon ... (GAMMA and LOG_GAMMA are also part of the Fortran 2008 draft) ...
    (comp.lang.fortran)
  • GNU Fortran 95: Opinions?
    ... replace g77 in the forthcoming 4.0.0 version of the GNU Compiler ... Since gfortran is still in development, I know many people have not ... Snapshots are available from the GCC web site. ... programmer who wants to see GCC be more useful to the Fortran community. ...
    (comp.lang.fortran)
  • Re: ifc 7.1 & FFTW Version 3
    ... IntelFortran Compiler for 32-bit applications, ... Or is the woody gcc too old? ... checking whether ifc accepts -g... ...
    (comp.lang.fortran)
  • Re: Calling a fortran subroutine from Visual C++
    ... >I have a C++ program written and compiled on Solaris 8 with gcc. ... > lets me compile fortran code along with the C++ program to be able to call ... > the fortran code as a subroutine. ... I don't believe that MS sells a Fortran compiler. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: A question on Newtons Method
    ... >> I can't believe you'd advise a noob to use a compiler which is still ... > production codes and codes from textbooks. ... > The Fortran standard generally does not specify the required behavior ... >> another important class of hassle which most numerical programmers ...
    (sci.math.num-analysis)