Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

command to tell make file which compiler I am using

Brian_Allison
Beginner
492 Views
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.
0 Kudos
3 Replies
Steven_L_Intel1
Employee
492 Views
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.
0 Kudos
Brian_Allison
Beginner
492 Views
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?
0 Kudos
Steven_L_Intel1
Employee
492 Views
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.
0 Kudos
Reply