Re: Variable number of arguments



<salgerman@xxxxxxxxx> wrote:

Well...never mind about this issue, and sorry. The thing is this
programs compiles and run in the other two platforms and it compiles
and runs in Linux with a couple other fortan compilar I have access to
(Absoft and Portland)...so, I don't know if this is a shortcoming of
g95 in Linux or just the installation.

I thought I answered that. As I mentioned before, different compilers do
it differently. So verifying that it works on some compilers doesn't
mean that it will work on others. It is a function of teh compiler - not
the operating system. It isn't a matter of a shortcoming, as there is no
standard for this. Have you checked into the issue I mentioned about the
position of the extra length argument for characters? That's sure what
it sounds like. It wasn't obvious to me that you had checked into that.

Note also that on some systems, you can't get by with just ignoring
extra arguments in C, even if they are on the end. It messes up the
stack or some such thing. I recall having problems with that on some Sun
systems. You actually have to have the arguments agree, even if you end
up not using some of them.

--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.



Relevant Pages

  • Re: Compiling Java for Cross Platform Compatibility
    ... it should work because java compiles to the same bytecode. ... > Unfortunately I'm having difficulty accessing the linux machines as I ... installation is becoming more and more of a doddle nowadays. ...
    (comp.lang.java.help)
  • Re: To the Brotherhood of the Consoles (Warning contains Wibble)
    ... >Linux challenges you. ... >documentation, waiting for compiles, sifting through newsgroups & ... Instead of reading documentation ...
    (comp.sys.sinclair)
  • FLEX, was Re: Return value of malloc(0)
    ... Linux has a slightly newer version of GCC, ... Linux for years without a problem (i.e., older versions of GCC). ... BTW, if anyone is intrested in the full FLEX source, it's part of the HLA ... Linux (it compiles successfully. ...
    (freebsd-hackers)
  • Re: binary read mex in windows and linux
    ... I have binary data and a C mex file for reading it. ... and compiles and runs in 64 bit ... same binary file are right in windows and rubbish in linux. ...
    (comp.soft-sys.matlab)
  • Re: Rant: Delphi vs Web/Scripting Languages
    ... Codegear better to focus on Windows. ... I develop some things in Delphi 7, and also compiles on Linux with the ... sinc the Linux version ran inside a WmWare on the very same ...
    (borland.public.delphi.non-technical)