Sponsored Post Learn from the experts: Create a successful blog with our brand new courseThe WordPress.com Blog

Are you new to blogging, and do you want step-by-step guidance on how to publish and grow your blog? Learn more about our new Blogging for Beginners course and get 50% off through December 10th.

WordPress.com is excited to announce our newest offering: a course just for beginning bloggers where you’ll learn everything you need to know about blogging from the most trusted experts in the industry. We have helped millions of blogs get up and running, we know what works, and we want you to to know everything we know. This course provides all the fundamental skills and inspiration you need to get your blog started, an interactive community forum, and content updated annually.

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.