- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm trying to compile a fortran project with /fpp option on visual studio 2013, and it keeps giving me a warning:
warning #5117: Bad # preprocessor line
And it looks like the code hasn't been passing through to the preprocessor.
The code is as simple as this:
logical*1 FUNCTION IsPreprocesorDefined() IsPreprocesorDefined= .false. #ifdef PRO_PROC_DEFINED IsPreprocesorDefined= .true. #endif return end
The compiler I'm using is Intel(R) Visual Fortran Compiler XE 15.0.4.221 [IA-32]
Can anyone point me to the right direction?Thanks very much
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hello anyone?
why the status of the post is still draft?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please attach a ZIP of the buildlog.htm showing the error. I'd expect this message if in fact /fpp wasn't being used.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you change this option to all your project files... and build platforms?
Are you adding this switch to the "miscellaneous"/additional options...
... or did you check the Preprocess(or) check box in the VS Project properties? (and for all builds)
Jim Dempsey
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page