syncing folders in Linux / OS X

awesome unix command to sync folders cp -nrp SOURCE TARGET means (no clobber, recursive, persist)

Advertisements

Compiling with ANSI C in Visual Studio

Compiling with ANSI C in Visual Studio

By default, Microsoft’s Visual Studio C Compiler doesn’t follow the ANSI C standard. If you’re using Visual Studio, you can make the transition process to Unix for the Lab Assignments easier by performing the following steps.

ANSI Flag: Link

  1. Open the project’s Property Pages dialog box. For details, see How to: Open Project Property Pages
  2. In the option tree on the left side of the dialog box, click the Configuration Properties>C/C++ folder.
  3. Click the Language property page.
  4. Modify the Disable Language Extensions property (Change to Yes (/Za)).

 

C Flag: Link

  1. Open the project’s Property Pages dialog box. For details, see How to: Open Project Property Pages
  2. In the option tree on the left side of the dialog box, click the Configuration Properties>C/C++ folder.
  3. Click the Advanced property page.
  4. Modify the Compile As property (Change to Compile as C Code (/TC)).

 

Please note that even with these changes, you must still compile and test all of your code on an ECE LRC Unix machine. These steps are not guaranteed to eliminate all bugs that could arise due to differences in the development environment.