Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

flush error

taoz
Beginner
806 Views
Hi, all,

I have got a problem when using the internal function flush.

call flush(88)

The error message for the above command is
undefined reference to `flush_'

The manual says this is a internal lib function. Even when I specified the path of the lib, '-L/opt/intel/compiler70/ia32/lib', in the compiling line, it doesn't work. Could anyone help me out?

thanks,

Tao
0 Kudos
4 Replies
Steven_L_Intel1
Employee
806 Views
Which compiler version are you using? Do you have an EXTERNAL FLUSH declaration? Take it out if you do.
0 Kudos
taoz
Beginner
806 Views


sblionel wrote:
Which compiler version are you using? Do you have an EXTERNAL FLUSH declaration? Take it out if you do.

No, there isn't any other external function/subroutine. I did a another test, here is the code and result.

----------------------------------
code:
program main
write(88,*) 'test'
call flush(88)
end
----------------------------------
compiled with

ifc t.f -L/opt/intel/compiler70/ia32/lib
program MAIN

4 Lines Compiled
/tmp/ifcK4GJKO.o: In function `main':
/tmp/ifcK4GJKO.o(.text+0x49): undefined reference to `flush_'

----------------------------------
Here is the version info

ifc -V

Intel Fortran Compiler for 32-bit applications, Version 7.1 Build 20031225Z
Copyright (C) 1985-2003 Intel Corporation. All rights reserved.
FOR NON-COMMERCIAL USE ONLY

GNU ld version 2.11.93.0.2 20020207
Supported emulations:
elf_i386
i386linux
elf_i386_glibc21
/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x18): undefined reference to `main'

Is there any wrong with the ifc installation?

thanks,

Tao
0 Kudos
Steven_L_Intel1
Employee
806 Views
Oh, 7.1. Hmm. Try adding -vaxlib
0 Kudos
taoz
Beginner
806 Views
It works. thanks a lot.

Tao
0 Kudos
Reply