Porting code from Windows to Unix

This step-by-step tutorial explains how you can get your code onto the ECE LRC machines from a Windows machine.

  1. Download SSH Secure Shell 3.2.9 from the BevoWare website.

  2. Install the downloaded program. This should create two programs namely, Secure Shell Client and Secure Shell File Transfer.

  3. Open the Secure Shell File Transfer program and click on Quick Connect. Enter:

    and press Connect.

  4. Enter your Unix password when asked.

  5. You should be able to drag the files you need to your home directory.

  6. Open the Secure Shell Client program and connect to mario using the above procedure.

  7. In order to make the transfered files readable in Unix, you will have to run a program called dos2unix:

    dos2unix <input filename> 

    Note: The two filenames can be the same.

  8. Now you can compile your code with gcc using the posted instructions.

  9. Please make sure that your program compiles and runs before submitting.

  10. Please note that files that compile and run correctly in Windows under Visual Studio may not do so in a Unix environment with gcc. You are responsible for verifying correct functionality of your programs in the Unix environment prior to submission.