Re: g77 mex problem under win
- From: Brian Elmegaard <brian@xxxxxxxxxxxxxxxx>
- Date: Fri, 07 Apr 2006 14:54:08 +0200
"Rune Allnor" <allnor@xxxxxxxxxxxx> writes:
[choose a number corresponding to the detected compilers] <enter>mex -setup <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. MaybeYep.
gcc accepts the same code across platforms. Have you tried
many commercial fortran compilers?
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
.
- Follow-Ups:
- Re: g77 mex problem under win
- From: Rune Allnor
- Re: g77 mex problem under win
- References:
- g77 mex problem under win
- From: brano
- Re: g77 mex problem under win
- From: Rune Allnor
- Re: g77 mex problem under win
- From: brano
- Re: g77 mex problem under win
- From: Rune Allnor
- Re: g77 mex problem under win
- From: Brian Elmegaard
- Re: g77 mex problem under win
- From: Rune Allnor
- g77 mex problem under win
- Prev by Date: Re: g77 mex problem under win
- Next by Date: Re: Summing every x elements
- Previous by thread: Re: g77 mex problem under win
- Next by thread: Re: g77 mex problem under win
- Index(es):
Relevant Pages
|