Re: Variable number of arguments



Yes, I am aware of all those issues; except, maybe, about the one
where the length of a string may come right after the string, as
opposed to all the way to the end of all declared arguments.

In any case, I have been cruising just fine as I have ported about
dozen libraries and getting ready to port about 100 programs; I do
have other C libraries being called from fortran and they all work.

So, -fno-underscoring is working so far within all my in-house
code...I would eventually have to link against a couple of 3rd party
libraries, though, so, thanks from bringing that to my attention.

Sure, C-fortran interoperability may have some gotchas, and that's
what I was trying to minimize, too, by using the same compiler in all
3 platforms.

As mentioned before, this same program works fine in MinGW and
Solaris, but not in Linux...with g95, anyway. I just tried with
Absoft compiler in Linux, and it worked, too....so, yes, things vary
from compiler to compiler, and from platform to platform with the same
compiler, as in my case...maybe is a library problem?

thanks

gsal

.



Relevant Pages

  • Re: <ctype.h> toLower()
    ... >> called tolower. ... > My guess is that the compiler you got this from isn't really ... assume the interface will be suitable for the target platform. ... creating portable libraries. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Porting from other UNIX platforms to Linux (64bit)
    ... >> What's about building tcl? ... > It depends on your compiler. ... We used on each platform the specific "native" compiler/linker. ... compilers/linkers wanted by those libraries. ...
    (comp.lang.tcl)
  • Re: (Silly?) question about linkage of C applications
    ... Do I have to use the same compiler used to create the ... on the same platform yes they can. ... Stack alignment is a compiler issue, ... to link with the system's libraries. ...
    (comp.lang.c)
  • Re: I really hate .NET especially inside Delphi
    ... i never claimed it did (although from back when i first did investigate using D4N for porting the first of our libraries, i found numerous problems in getting standard-conform assemblies out of it (this was, mind you Delphi 8 and earlier). ... i merely challenged Tim's statement that the compiler vendor for platform X should not be concerned about ensuring the compiler plays well with the guidelines set forth for that platform. ... The book in question *clearly* satisfies the latter objective by the vast majority of library developers on the platform), and from what i remember when reading it, i would consider it the official guideline endorsed by the .NET and BCL team. ...
    (borland.public.delphi.non-technical)
  • Re: (Silly?) question about linkage of C applications
    ... on the same platform yes they can. ... Stack alignment is a compiler issue, ... to link with the system's libraries. ...
    (comp.lang.c)