top of page
perxalihootireap

How to Use Ms Fortran Powerstation 4.0 with Microsoft Visual Studio*



This document lists brief descriptions of current and older Microsoft FORTRAN compilers and tools for the PC, along with a brief list of features and notes. While you may find older versions of development tools in many places, links to the old/used programming tools sales pages of EMS Professional Software, this page's sponsor, are provided for your convenience. Version information on other Microsoft Products. Version information for software from other vendors. If you have technical questions, we recommend asking on the usenet newsgroup news:comp.lang.fortran




Ms Fortran Powerstation 4.0



If the project workspace is placed in nested folders resulting in large path, then powerstation compiler shows this error. The solution for this, is to reduce the path of the project workspace by placing it closer to c drive , for example in my documents folder.


Hello all, I'm still using this old program (yes, yes, I know I should upgrade, but there are several good reasons why I haven't/can't just yet) And now that I've been given a new computer here at work that's running Win XP, and I install MS Powerstatoin 4.0, everything works fine till I try to debug in the IDE. If I try and do a line by line step through, the program just starts to execute without stopping, and then ends with a Microsoft Developer Studio error that says "Preloaded symbol may not match 'C:\[the location of the debug .exe]'". I've searched the internet high and low trying to find a solution and tried what I know (I'm not to computer suave) so I was hoping that someone out there may have a solution. Thanks in advance, tom. -- Posted via *-*-*.com/ Tue, 23 Aug 2005 06:21:34 GMT - Legu Man #2 / 8 MS Fortran Powerstation 4.0 and Win XP The typical bug .... MS Powerstation debug doesn't work with long file name. Try to put your workspace in a DOS format directory name. (8.3) It took me 2 months to find the solution ... Good luck, LeguMan Quote:> Hello all, > I'm still using this old program (yes, yes, I know I should upgrade, but > there are several good reasons why I haven't/can't just yet) And now > that I've been given a new computer here at work that's running Win XP, > and I install MS Powerstatoin 4.0, everything works fine till I try to > debug in the IDE. If I try and do a line by line step through, the > program just starts to execute without stopping, and then ends with a > Microsoft Developer Studio error that says "Preloaded symbol may not > match 'C:\[the location of the debug .exe]'". I've searched the > internet high and low trying to find a solution and tried what I know > (I'm not to computer suave) so I was hoping that someone out there may > have a solution. > Thanks in advance, > tom. > -- > Posted via computer_2(); Thu, 25 Aug 2005 19:02:27 GMT triple#3 / 8 MS Fortran Powerstation 4.0 and Win XP WOOHOO!!! IT WORKED!!!! Thanks for the help! Though once pointed out, the answer seems obvious (of course) -- Posted via Sat, 27 Aug 2005 00:00:13 GMT Hui Youn#4 / 8 MS Fortran Powerstation 4.0 and Win XP Using Visual Basic easy to use interface, I tried to access a dll created from fortran program using the Fortran Powerstation Programmer's Guide... Apparently i followed the step by step coding. However, i still faced the problem of finding the entry point in DLL... My Command Button code Private Sub Command1_Click() Static arr(1 To 5) As StringArray Call FORSTRARR(arr(1)) For i% = 1 To 5 Text1.Text = arr(i%).strings + Chr$(13) + Chr$(10) + Text1.Text Next i% End Sub My Module in VB Type StringArray strings As String * 24 End Type Declare Sub FORSTRARR Lib "c:\Fypc6014\FYP\fortvb.dll" (Myarray As StringArray) Source code for the fortran Program Which was compiled to .DLL SUBROUTINE forstrarr (arr) CHARACTER (24) arr(5) arr = "This is a string from Fortran." END SUBROUTINE Does anyone know how to solve this problem? Thanks in advance. Hui Young from Singapore -- Posted via Sat, 21 Jan 2006 17:02:26 GMT August Mille#5 / 8 MS Fortran Powerstation 4.0 and Win XP You may need to do something like the following (it works for me): Here, subroutine NECDLL is located inside the NEC2DLL.DLL. "dumpbin" routine supplied by Microsoft along with the compiler, etc. Use a dos command window: dumpbin /EXPORTS YOURDLL.DLL Good luck! Sat, 21 Jan 2006 21:42:15 GMT Tunjan#6 / 8 MS Fortran Powerstation 4.0 and Win XP hi..i had write a fortran program but i got run-time error F6501...i had compile and build the program and got no error...when i execute the .exe file the the run-time error F6501 occur...i dont know what is the cause of this error...but now im using Microsoft Fortran Powerstation 4.0 and i found out that the requirement for the program is for Window NT and 95 only...im now using Window Xp...is it the error occur because of im using the window Xp..?..or is it something else?...i need to know..help plss...tq p/s: Do u know any fortran program version that support Window Xp? Sun, 05 Jul 2009 01:06:48 GMT Terenc#7 / 8 MS Fortran Powerstation 4.0 and Win XP Quote: > hi..i had write a fortran program but i got run-time error F6501...i had > compile and build the program and got no error...when i execute the .exe > file the the run-time error F6501 occur...i dont know what is the cause of > this error...but now im using Microsoft Fortran Powerstation 4.0 and i > found out that the requirement for the program is for Window NT and 95 > only...im now using Window Xp...is it the error occur because of im using > the window Xp..?..or is it something else?...i need to know..help > plss...tq > p/s: Do u know any fortran program version that support Window Xp? Duplicated posting. See suggestions in " What is run-time error F6501? " Sun, 05 Jul 2009 05:25:11 GMT Dr Ivan D. Rei#8 / 8 MS Fortran Powerstation 4.0 and Win XP Quote: >> hi..i had write a fortran program but i got run-time error F6501. > Duplicated posting. See suggestions in " What is run-time error F6501? " See thread, "Many small programs vs. one large program?"... -- Ivan Reid, School of Engineering & Design, _____________ CMS Collaboration, KotPT -- "for stupidity above and beyond the call of duty". Sun, 05 Jul 2009 05:46:35 GMT Page 1 of 1 [ 8 post ] Relevant Pages 1. MS Fortran PowerStation 1.0a under Win XP


When I use the F format specifier MS fortran suppress the leading 0 if values are between -1 and 1. This is not supportet by some programs that are supposed to read the output from my fortran program. I have not seen this behavior in any other fortran compiler that I have used. Can I turn it off? /Magnus Mossberg Wed, 18 Jun 1902 08:00:00 GMT Steve Lione#2 / 2 Leading Zero with MS Fortran 4.0 On Mon, 27 Dec 1999 12:43:55 +0100, Magnus Mossberg Quote: >When I use the F format specifier MS Fortran suppress the leading 0 if >values are between -1 and 1. This is not supportet by some programs >that are supposed to read the output from my fortran program. I have not >seen this behavior in any other fortran compiler that I have used. Can I >turn it off? To the best of my knowledge, there is no option in MS Fortran to force the leading zero to appear. It is optional by the Fortran standard, but most implementations, including ours, choose to supply the leading zero for such values. Fortran Engineering Compaq Computer Corporation, Nashua NH Compaq Fortran web site: computer_2(); Wed, 18 Jun 1902 08:00:00 GMT Page 1 of 1 [ 2 post ] Relevant Pages 1. Leading zeroes in fortran binary internal write


Your phrase "visual components / dialogs" worries me. What graphics does this program use (if any)? Do you have and third party libraries that are used? How many fortran source files do you have? Is it a mixed language program?


The resource editor saves an .rc file, script.rc in your case and resource.h (header include for C language). Intel have a utility deftofd.exe that takes the .h file and makes a fortran include .fd file. You normally set a pre-build step to do this automatically. If you do a forum search you will find instructions on this.


I compile the DLL using:pgfortran -Bdynamic -c file1.f90pgfortran -Bdynamic -c file2.f90pgfortran -Bdynamic -c file3.f90pgfortran -Bdynamic -c file4.f90pgfortran -Bdynamic -c file5.f90pgfortran -Bdynamic -c file6.f90pgfortran -Mmakedll file1.obj file2.obj file3.obj file4.obj file5.obj file6.obj -o proj1.dll[/i]


Most contemporary compilers no longer use default static memory allocation that preserves values of variables previously set in some subroutine. Many programs assume this to be the case so that you need to use an appropriate compiler option to enforce static allocation. For example on the f77 compiler on SGI machines and in Compaq Visual Fortran this used to be the -static option, in Intel Visual Fortran this is option -Qsave., while in the gfortran compiler the same option is called -fno-automatic.


If you have followed the instructions on Cheminformatics on a Mac you already have Xcode, Command Line tools and gfortran installed using Homebrew. Alternatively you can install GCC 8.3 (auto-vectorizing gcc with OpenMP) which includes gfortran (free, open source, GNU Fortran 95 compiler), gcc (GNU C) and g++ (GNU C++) compilers that can perform auto-vectorization (i.e. modify code to take advantage of AltiVec/SSE, automatically) and other sophisticated optimizations like OpenMP. There are detailed instructions here, last updated April 2019 (Mojave). 2ff7e9595c


2 views0 comments

Recent Posts

See All

Comments


bottom of page