installing

52 views
Skip to first unread message

jim fuller

unread,
Oct 25, 2021, 7:04:03 PM10/25/21
to CBFortran
Hi, as you can guess I'm new with this program. It may help to let you know my experience.
I learn Fortran on punch cards, moved to dos 286 at which point a change in job took me away from programing but still worked with computers moving onto windows with everything setup already. Now I want to get my old programs running.
So here I am. I installed Codeblocks and WinGW a few times trying to get it to work.  At this point I have no spellcheck (PROBLEM 1) but I downloaded it in director download and stuck there. I don't know if my compiler is properly configure (PROBLEM 2). After a couple of time, I was able to copy an old program into main.f90. i don't understand why it works sometimes and not others (PROBLEM 3). I say works because I was able to build it and obtain error messages.  I figured out that comments lines are denoted differently now. Before it was with a C and now it is with a  !.
Most of the other error messages has to do with formatting write statements with multiple lines; such as with instructions for data input messages (PROBLEM 4).

Any help is appreciated.

jim fuller

unread,
Oct 26, 2021, 1:26:10 PM10/26/21
to CBFortran
I managed to get the configuration correct, a program is running, PROBLEM 2 solved.
I worked around PROBLEM 4 by making multiple WRITE statements with the same format statement.

Darius Markauskas

unread,
Oct 27, 2021, 1:20:56 AM10/27/21
to cbfo...@googlegroups.com
Hello Jim
it is hard to follow you. Maybe you should send an example of your code. A screenshot?
About '!' vs 'c': Fortran90 switched to free code format. There '!' is used for the comments. If you have old code, you can use '*.f77' or '*.for' files. The compiler will compile such file as a fixed code file.

Darius

--
You received this message because you are subscribed to the Google Groups "CBFortran" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cbfortran+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cbfortran/86a442c9-d569-4cad-8367-a9cd9ed030bfn%40googlegroups.com.

jim fuller

unread,
Oct 27, 2021, 4:01:21 PM10/27/21
to CBFortran
for PROBLEM 1, when I open codeblocks I get a window saying I don't have spellcheck.  Going to the menue setting>editor it does not give an option to pick.
for PROBLEM3 when I copy the program text into a window, sometimes I get error messages, other times it works. I'm getting it to work now but I would like to understand why so that I don't get stuck later.

I have worked around these problems and am able to run my old programs, I need to debug some lines because it is not processing as it use to.  Now how can I save the compiled files so they can run on someone else's computer.

Darius Markauskas

unread,
Oct 28, 2021, 3:10:34 AM10/28/21
to cbfo...@googlegroups.com
PROBLEM 1: How to configure the Spellchecker can be read on https://wiki.codeblocks.org/index.php?title=SpellChecker_plugin&plugin=
PROBLEM 3: I do not know what kind of error messages you get.
""" Now how can I save the compiled files so they can run on someone else's computer."""
When you compile your program in C::B, the compiled program is written to <Project dir>/bin/Release(Debug) folder.

Darius


jim fuller

unread,
Oct 28, 2021, 6:21:51 AM10/28/21
to CBFortran
Thank you for your help
Reply all
Reply to author
Forward
0 new messages