Compiling with C99 C in Visual Studio

By default, Microsoft's Visual Studio C Compiler doesn't follow the C99 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.

C99

  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

  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.