Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Workspace

Status
Not open for further replies.

keikosaito

Technical User
Oct 13, 2012
4
PE
Hello everyone. I'm new to fortran, my teacher just teached us, but in class he just gave us examples and we typed it on fortran but there wasn't too much explanation from him so I don't really understand it. When I make a program and then compile it, it forces a creation of a workspace right? but if I save that and then open a new source file and then make another program and compile it do I need to make another workspace??, in other words do I need to close workspace in the previous program and then create another? I remeber I did that before and when i tried to compile the new program instead of the name of the new program it said build(name of the previous program).exe and execute(name of the previous program).exe and there were errors :(

What should I do?
 
What you ask is not Fortran specific, but it depends only on your IDE. What I know, WORKSPACEs are used in eclipse like IDEs. Maybe you are using Photran? If so, in eclipse you don't need to create new workspace for every new program, for a new program you have only to create new project.
You question is an example, how complicated IDE could be couter-productive: Instead of concentrate your energy on learning a new programming language you have to bother with issues with an complicated IDE.
 
It is about the same in Visual studio. You do not need to create a new workspace but just a new project to start a new (main-) program.
However, I find it more suitable to create a new workspace for every new project, that is for every new (main-) program. It is more easy (for me) to keep track that way.

At least in visual studio, creating a new workspace is not that complicated. It is just the same as opening a new file in Excel or powerpoint. Juct click a few buttons and here you are.

In Visual studio the procedure to create a new workspace is something like this:

Click the 'file' button (top left). In the menu that opens, select 'new'.
A window opens that lets you select what you want to create. You should select 'workspace'.
Then you give it a name, select where you want to save it to, click okay
... and that's it and your workspace opens..

If you want to add a project to this workspace, you open it by doubleclicking on it in windows explorer (if you use windows, that is). Then create a new project.

However, you do not need to go all this way, because when you start a new project, you have the option to create a new workspace with it or you select which workspace to add it to.

To start a new project is much the same as above, select 'file', 'new' and then 'project'. Select type of project - I assume it would be 'fortran console application' - name it and after you clicked okay, you are set and ready to start programming.

I figure, for most of the IDEs it is more or less the same procedure.

Norbert




The optimist believes we live in the best of all possible worlds - the pessimist fears this might be true.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top