- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have A LOT of preprocessor definitions.
I would like to put my preprocessor definitions in a file - rather than separately on the command line.
Is there a way I can do this?
I would like to put my preprocessor definitions in a file - rather than separately on the command line.
Is there a way I can do this?
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes. Put the /D commands in a file - let's call it defines.inc
Then do this:
ifort @defines.inc /fpp ....
It will insert the options in the defines.inc at the point where you specified @filename. This is described in the documentation under "Response files".
Then do this:
ifort @defines.inc /fpp ....
It will insert the options in the defines.inc at the point where you specified @filename. This is described in the documentation under "Response files".
Link Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes. Put the /D commands in a file - let's call it defines.inc
Then do this:
ifort @defines.inc /fpp ....
It will insert the options in the defines.inc at the point where you specified @filename. This is described in the documentation under "Response files".
Then do this:
ifort @defines.inc /fpp ....
It will insert the options in the defines.inc at the point where you specified @filename. This is described in the documentation under "Response files".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Perfect! Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry to come back after telling you it was perfect, but after working with it for a while, it seems that ALL of the values in the define file aren't being defined.
I've checked the formatting had /D in front of all. Don't appear to be any hidden characters.
Is there something else I needed to do to get it to read the entire file?
Thanks again for your help!
I've checked the formatting had /D in front of all. Don't appear to be any hidden characters.
Is there something else I needed to do to get it to read the entire file?
Thanks again for your help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not that I know of. Please attach the file here and I'll look into it. There might be some sort of size limit. You might try splitting it into two files and specifying them both to see what happens.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I split them and it seemed happy, then put them back together and it was happy again. I'm guessing I had a ctrl character somewhere that was messing with me. Seems to be working now. Thanks for your help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok - glad to hear it.
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