rlogin/compiler

L337Llama

Senior member
Mar 30, 2003
358
0
0
So, I am trying to compile a pascal program over an rlogin with fpc. I am logged in, and try to invoke the the compiler with

fpc C:\name.pas

and I get an error saying it cannot access the file and that I didn't specify a file. I got no idea what to do. I haven't used rlogin before and I need to compile this program on a linux machine. Ive compiled it in windows and it works fine, its just this compiling thing. I am clueless, any help would be greatly appreciated.

So, basically I have no idea how to handle files through rlogin. I did download cygwin and compile through gpc, but since the teacher uses fpc, i should submit it compiled through fpc.
 
Last edited:

degibson

Golden Member
Mar 21, 2008
1,389
0
0
fpc C:\name.pas

I would guess your problem is one of two possibilities:

1. You'll have to get your source code onto the machine you are rlogin-ing to. The remote machine cannot access your local drive. Likely options are:
- SCP (e.g., WinSCP)
- Email it to yourself

2. C : \ is a windows-land path. Linux paths don't start with a drive letter. E.g.,
Code:
fpc /path/to/my/data/name.pas
  OR, if name.pas is in your home directory
fpc ~/name.pas
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Good catch, degibson. I didn't even notice the drive letter on that path cause of the smiley...