- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am wondering if there is an if statement I put in to check if I am using ia32 or intel64, so that it used the right lib files that I specify.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can do an "ifort -c" command with no files, and you'll get the "banner" that tells you exactly which version you are using. For example:
Intel Visual Fortran Compiler Professional for applications running on IA-32,
Version 11.1 Build 20100806 Package ID: w_cprof_p_11.1.067
Copyright (C) 1985-2010 Intel Corporation. All rights reserved.
This will be followed by a complaint that there were no files specified, which you can ignore. If nmake doesn't like this, just compile a file with an END.
Intel Visual Fortran Compiler Professional for applications running on IA-32,
Version 11.1 Build 20100806 Package ID: w_cprof_p_11.1.067
Copyright (C) 1985-2010 Intel Corporation. All rights reserved.
This will be followed by a complaint that there were no files specified, which you can ignore. If nmake doesn't like this, just compile a file with an END.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ok yeah I know about that, but lets say that I am compiling using ia32 and certain lib files for ia32 and then I want to compile using intel64 and certain lib files for intel64. I would have the lib files for ia32 in its own folder and the same for intel64. what command can I give so that the nmake know wich libs to use?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You could run the ifortvars.bat file with the "intel64" argument, which will reset things to build for x64. Otherwise, you are going to have to manually redo PATH, LIB and INCLUDE to have all the various folders for the different target.

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