- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,When I compiled the following source programs using Intel fortran compiler (v8.1) , get the error messages,"fortcom : warning :./hyd : Bad # processor line".
--main program(test.f)--
program test
include 'hyd'
write(*,*)i,j
stop
end
-------------------------
----include file of text form (hyd)--------
----include file of text form (hyd)--------
integer i,j
#ifdef EOS
parameter (i=3,j=11)
#endif
#ifdef EOS1
parameter (i=10,j=10)
#endif
--------------------------------
If I compile by ifort -O3 -fpp -DEOS test.f, must get i=3,j=11.But I don't get ,and error message.
Why? Please help me.
Message Edited by tf81 on 09-20-2004 04:02 AM
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you are going to use cpp-style preprocessor directives, then you also need to use #include rather than Fortran include.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
"Thank you"
It solved.
It solved.

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