Intel® Fortran Compiler for Linux* and Mac OS X*

Intel MAC Fortran and NASM

Does anyone have any experience linking Mach-O object files produced using the Netwide Assembler (NASM) with those generated using Intel Fortran for MAC OS. I have linked them but the symbol addresses are incorrect so the code crashes.

I have had little success finding any documentation on the segment and section directives which I suspect are responsible for the errors.

Thank you
Scott Frasier

Unresolved symbol : powr8i4

Hi,

I am using ifort 9.0 Build 20060222Z Package ID: l_fc_c_9.0.033 to compile certain libraries.

I get an unresolved symbol __powr8i4

There isnt a single page which talks about this symbol. It props up whenever I have

Real(8) :: a

REAL(8) :: b

b = 10.d0**a

Or something similar to this. Has anyone seen something like this before.

If I compile the same code with ifort 9.0 Package ID: l_fc_c_9.0.032

There are no problems

Please comment

wrong value access in a user-defined type

Here is a sample of code that have different outputs depending on the degree of optimisation.
Output :
$ ./compil_sh
$ ./a.out
fin_init_vitesse = 300000.000000000
LumC = 300000.000000000

$ ./compil_sh_bug
$ ./a.out
fin_init_vitesse = 300000.000000000
LumC = 2.00000000000000

Function LumC here points to the imaginary part of Const%CI if it was compiled with "-O0" or "-O1" (thus with "-g"), but gives the expected value with "-O2" or at least "-O1 -ip".

linking modules using libraries

Hello,
my example program consist of three different parts. Each part is stored in his own file.
main.f:
program main
call sub
end
sub.f:
subroutine sub
use mod
write(*,*) 'logvar = ', logvar
end
mod.f:
module mod
logical :: logvar = .true.
end module modFor mod.f I generate a static library as follows
ifort -fpic -c mod.f
ar rc modlib.a mod.oAfter that I cleanup the temporary files with
rm mod.o mod.modCompiling and linking the entire program aborts withthe error
ifort main.f sub.f modlib.a

non-character command line arguments

Hi there,
I'm trying to get an integer and a real into my program and the best way would be through a command line argument.
The routines for getting arguments give a character string out.

I've tried doing an internal read of the form

read(argument, fmt ='(i0)') integerargument

but that didn't seem to work.

Can anyone give me a clue how to do this... or even if it's possible.

Thanks
Jeremy

PGPLOT subrountine library installation

Dear all,
How are you?
I am trying to install the PGPLOT library on my Linux server. I installed it and run the demos successfully. However when I compile the sample example (ex1.f), I met some technical problems in compiling PGPLOT.
The syntax I am using is:

$ f77 -o ex1 ex1.f -lpgplot
/usr/bin/ld: cannot find -lpgplot
collect2: ld returned 1 exit status

I confirmed that libpgplot.a is in the LD_LIBRARY_PATH. I don't know why it cann't find it. Can you provide any advice on how to fix this?

Thanks!

Roy

Error Msg: "undefined reference to `igetarg_' in MAIN__"

Using the following link command: "ifort -o krig *.o "on a bunch of fortran files (main and subroutines) which have already been compiled ONLY (not linked) results in following error:

undefined reference to 'igetarg_' in MAIN__

Could somebody please tell me how to solve this problem. I've tried different options but nothing works - get the same error. The fortran compiler I'm using is on Linux.
The same exact package compiles and produces an executable on HP-Unix machine at work. Thanks.

Intel Fortran Linking error for Dynamic Library

On linking to produce a dynamic library using FORTRAN 9.1 for the Intel MAC (using XCode), I receive the following errors:

IPO link: can not find "10.4"
ifort: error: problem during multi-file optimization compilation (code 1)

I have no idea what this means, nor do I know how to disable this type of optimization within XCode.

Thank you
Scott Frasier

The verbose linking command is listed below:

Iscriversi a Intel® Fortran Compiler for Linux* and Mac OS X*