- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi All,
In the past we used to compile fortran source code directly out of the IDE 'PSPAD' based on Compaq Visual Fortran. That worked great and was more comfortable than working in the Visual Fortran environment. Now we have switched to intel visual fortran (Vers. 11) with Microsoft Visual Studio 2008. Similarly to our older Compaq Fortran evironment I have adapted the older entries in the Highlighter Settings to the new Intel Visual Fortran environment. However, with the following entries in the PSPAD Highlighter Settings for Fortran I always get a link error (ifort: error #10037: could not find 'link').
The Highlighter Settings defined in PSPAD are as follows:
Compiler: C:\\Program Files (x86)\\Intel\\Compiler\\11.1\\051\\bin\\ia32\\ifort.exe
Parameter: %Name%%Ext%
Default Directory: Empty
Log-File: %Name%.Log
Run after Compilation: %Name%.exe
Save all files before compilation: yes
Capture Program output window: yes
Hide output window: no
Log-Window type: list
Log-Parser:%F(%L)
I really don't want to write my code in the Visual Studio environment. It's too uncomfortable. However, compiling via cmd line from windows with 'Fortran Build Environment for applications running on IA-32' works...but this is again not that what I want. I really like the PSPAD environment where by using one button, the source code is compiled and the exe-file is started automatically. I really searched in the forums for this issue, but I really wonder, if we are really the only ones working with 3rd party IDE editors (as eg. PSPAD, ULTRAEDIT, NOTEPAD++, Crimson Editor etc...).
Could you please help me? THX
PS: OS is WIN 7 Prof. 64 Bit
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I do not use IDEs much; have used a number of editors, including ed, edlin, vi, see, med, cedt, notepad (blush), notepads++, etc., but only for editing, not as a development environment.
Linkers have rarely come from compiler vendors except in the early days of MSDOS 2.1. Most compilers nowadays pack in the Microsoft linker, which itself depends on some DLLs that are not included in a standard Windows installation.
Anyone opting to use a fourth party development environment (such as PSPAD appears to be) has to turn to the vendor of that environment or be prepared to do some install-time set-up when a new compiler (or, sometimes, a new version of a compiler) is installed.
If a large number of users use one of these environments, the compiler vendor may provide some support (e.g., VStudio+Ifort; the Plato IDE that may be used with Salford's FTN95). Otherwise, the situation is similar to solving the problem of having a quilt with one square torn or faded...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
"Set default directory to binnaries of your compiler and linker or set system Path variable to this folder"
So when he is talking about the binnary folder of the compiler AND linker, am I right to suppose that this folder is found under the following path: C:\Program Files (x86)\Intel\Compiler\11.1\051\bin
Or should I take the path directly to ia32, i.e. C:\Program Files (x86)\Intel\Compiler\11.1\051\bin\ia32
As first step, it is intended to compile 32Bit source code for 32bit environment only. I feel that the solution becomes nearer and nearer. I really much appreciate your support. Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You could also write a short .bat file that does a "call" of the ifortvars.bat script (with ia32 as an argument) and then runs PSPAD. Use that .bat file to start PSPAD.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Open ifortvars.bat ia32
Open Pspad.exe
Close Dos Box (which appeared after opening ifortvars.bat)
And start coding ;-). Thank you for your help....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
it's me again. I have created a batch file as follows:
@echo off
start "" "C:\Program Files (x86)\Intel\Compiler\11.1\051\bin\ifortvars.bat" ia32
start "" "C:\Program Files (x86)\PSPad editor\PSPad.exe"
:end
The Problem is, this file is independently starting the ifortvars.bat and the pspad.exe. But this has not the same effect as I would startd manually the ifortvars.bat and then starting from the appearing dos box the pspad.exe. So, how do I let ifortvars.bat make call pspad.exe via my batch file?
Thank you...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@echo off
"C:\Program Files (x86)\Intel\Compiler\11.1\051\bin\ifortvars.bat" ia32
start "" "C:\Program Files (x86)\PSPad editor\PSPad.exe"
:end
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
this has worked for me:
@echo off
call "C:\Program Files (x86)\Intel\Compiler\11.1\051\bin\ifortvars.bat" ia32
"C:\Program Files (x86)\PSPad editor\PSPad.exe"
:end
Thats great!! Only for cosmetics, how can I make the DOS Box automatically getting closed again...exit will not work in this case I think
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Make your .bat file look like this:
@echo off
call "C:\Program Files (x86)\Intel\Compiler\11.1\051\bin\ifortvars.bat" ia32
start "C:\Program Files (x86)\PSPad editor\PSPad.exe"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
with additional quotation marks (i.e. start "" "C:\Program Files (x86)\PSPad editor\PSPad.exe") it works now how i want it to work. THAAAANK you very much.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I found in the ifortvars.bat file a set of variables which is used for running on 32 bit applications (see down below)
SET IFORT_COMPILER11=C:\Program Files (x86)\Intel\Compiler\11.1\051
SET INTEL_LICENSE_FILE=C:\Program Files (x86)\Common Files\Intel\Licenses;%INTEL_LICENSE_FILE%
SET PATH=%IFORT_COMPILER11%\Bin\ia32;%PATH%
SET LIB=%IFORT_COMPILER11%\Lib\ia32;%LIB%
SET INCLUDE=%IFORT_COMPILER11%\Include;%IFORT_COMPILER11%\Include\ia32;%INCLUDE%
Am I right by saying that setting these parameters in the windows variable environment can be considered as further solution? I mean has it the same effect as starting ifortvars.bat ia32, but with the difference that the variables are set permantly?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
![](/skins/images/71A9511A625CE5D5D45FB59952A4AA71/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page