comp.lang.fortran - Discussion about FORTRAN.
Hello, IIRC, there's more than one getarg/iargc pair in VF's libraries. The one with the MS-compatible definition has the property that iargc() returns a 4 byte integer, but getarg()'s "which arg" argument is a 2 byte integer. Perhaps that's defeating, or at least confounding, your efforts. -- Cheers! Dan Nagle Purple Sage Computing Solutions, Inc. On Wed, 09 Jul 2003 13:16:04 -0700, chris < XXXX@XXXXX.COM > wrote: >I was debugging some code written by others and found unexpected >behavior. The program uses the IARGC and GETARG functions, but does >not have any USE DFPORT or USE DFLIB statements, for the respective >functions. When compiling with Visual Fortran 6.6, the program >compiles and runs fine. I see in the help file that the default >compile option is for /fpscomp:libs, which links in the dfport >library even without the USE statement. So that explains why the >IARGC function didn't cause an error. But why doesn't the GETARG >function cause an error? GETARG is supposedly in the DFLIB library, >which isn't linked in by the compiler automatically, from what I >can tell. If I use the /fpscomp:nolibs compiler option, the compiler >chokes on both functions. > >Can someone explain this behavior? Is it just a matter of missing >(or hard to find) information in the help file that discusses the >default linking to DFLIB.lib? Or is GETARG also in DFPORT.lib (as >well as being available though 'USE DFLIB')? > >Thanks, >Chris
Hi, Does anyone know how to get the long file name instead of the 8.3 (DOS) when using CALL GETARG(1,FILNAME)in CVS 6.6 & Windows2000/XP. Program started by doble click on the file in explorer. Regards, Dan
Hi More than a month ago, I submitted an issue to the forum at premier.intel.com. However, when I tried to logon a few days later (in response to an email notification), I got a wierd message (I do not remember it verbatim now but it seemed to refer to an expired password or some such thing). Around the same time, I stopped receiving email updates. I sent an email to quadsupport but haven't received a response. Could Steve please look into what is going on ? Thanks
Hi, All. I'm using a Intel Fortran Compiler 7.0 on Redhat Linux9 in IA32 mode. I do compile to object file(-c option), and then I try to linking.. But I get an error that reads: /opt/intel/compiler70/ia32/lib/libIEPCF90.a(f90file.o)(.text+0x4746): In function `FileOpen': : undefined reference to `errno' /opt/intel/compiler70/ia32/lib/libIEPCF90.a(f90fioerr.o)(.text+0x4d3): In function `f_f77ioerr': : undefined reference to `__ctype_b' /opt/intel/compiler70/ia32/lib/libIEPCF90.a(f90fioerr.o)(.text+0x6d9): In function `f_fiomess.': : undefined reference to `errno' /opt/intel/compiler70/ia32/lib/libIEPCF90.a(f90fioerr.o)(.text+0x76b): In function `f_seterrno': : undefined reference to `errno' Any one know what the problem is? Thanks a lot in advance, Park.