- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I compiled this program with an early 32-bit version of Visual Fortran. I forget how, but it wasn't difficult.
#include "cfx5ext.h"
dllexport(pt_mom_drag)
SUBROUTINE PT_MOM_DRAG(NLOC,NRET,NARG,RET,ARG,CRESLT,
& CZ,DZ,IZ,LZ,RZ)
CC
..
..
(The .h file is in the same directory as the .F file)
Visual Studio 8 with visual fortran 11.1 gives; #error: can't find included file: cfx5ext.h
command line 'ifort /libs:dll /shared pt_mom_drag.F' gives; warning #5117: Bad # preprocessor line
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
On Windows, you need to add /fpp to get the #include line to be recognized. You probably enabled the preprocessor in Visual Studio. It will look for #include files in the same places it looks for INCLUDE files - and why not use INCLUDE?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Still having errors with /fpp. What worked for me is to remove the include command and to copy .h files to project 'source files' directory.
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