- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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
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
Link kopiert
4 Antworten
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Which compiler version are you using? Do you have an EXTERNAL FLUSH declaration? Take it out if you do.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Oh, 7.1. Hmm. Try adding -vaxlib
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
It works. thanks a lot.
Tao
Tao

Antworten
Themen-Optionen
- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite