- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Which compiler version are you using? Do you have an EXTERNAL FLUSH declaration? Take it out if you do.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oh, 7.1. Hmm. Try adding -vaxlib
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It works. thanks a lot.
Tao
Tao

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page