true dummie calling

hi
i think this will make me seem dummier than most, actually i don't even understand most of the posts in the dummie section...
i have a project and i need to learn fortran programming, im working on a windows xp pc and so i have installed cygwin. and the cygwin site basically says learn unix so here I am.
I managed to unzip the g95 fortran compiler tarball from www.g95.org but beyond that I can't follow the manual...
The manual includes simple examples such as

g95 -c hello.f90
"Compiles hello.f90 to an object file named hello.o."

but when i type
g95 -c hello.f90

i just get
g95: hello.f90: No such file or directory
g95: no input files

and I tried changing directories without any results, of course i don't know exactly which directories would be most helpful.

Not strictly related to the forum topic but closely related to the reason why I posted this thread which is hopefully otherwise correctly categorized:
Any good online fortran (g95) tutorials to recommend for someone who's never programmed anything other than HTML and MatLAb and not even much of either of those?

Thanks a lot, it's looking like a tall mountain to climb from down here.
Cheers
T

It sounds like a path problem to me, unfortunately I can't tell you how to fix that using cygwin. If you just want to compile fortran code then maybe MinGW ( www.mingw.org ) is the way to go.

The error message shows that the compiler has been successfully found, just that it can't find the source code (hello.f90). You need to use an editor like vi to create a fortran source file named hello.f90 and try the compiler again.

As to learning Unix, I'm partial to "Essential System Administration". Others will point you to the "Unix System Administrator Handbook". From what you've said, I think the second one would be a better choice. I've read them both and in my opinion ESA is more for someone who's done administration before and has a good frame of reference.

You don't need to do everything in the book since you're not administering a server, however either will be a good reference in how things Unix work.

I'll have to leave fortran references to someone else though. It's been 20 or so years since I touched fortran :slight_smile:

Carl

Thank you for your speedy replies,
I'll try the vi and look at the "Unix System Administrator Handbook."

Unfortunately I found the MinGW installation process too confusing and daunting, being able to install cygwin directly from a single executable file was a great relief and although I don't know I think minGW is a linux emulator whereas cygwin emulates unix or they both do something in between, either way it's all in the unix tradition, I'm guessing the ease with which I'll acquire basic admin/command prompt skills won't be much affected.

At any rate, I'll see what I can do with what you've already told me.

Cheers

Most do. If you really want to learn UNIX, I'd reccomend getting a seperate machine for it. It'll run better without having to be emulated inside Windows anyhow.