Thread: C compiler for Visual studio?

  1. #1
    Registered User
    Join Date
    Sep 2008

    C compiler for Visual studio?

    Forgive me if this is posted somewhere. I did look for it. I've started my class in c and have visual studio pro 2008 installed, but my prof says I also need a c compiler. So my question is, is there a c compiler already installed or do I need to get one? If I need to install a separate compiler which do you suggest? I've read some post that lead me to believe there is already a c compiler built into VS. I can ask my prof tomorrow, but want to mess around today so any help would be appreciated.

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Visual Studio of course is a C compiler. Under project properties -> C/C++ -> Advanced, you can choose what language you're using. (But VS usually does the right things based on whether it's .c or .cpp anyway, I believe.)

  3. #3
    Registered User C_ntua's Avatar
    Join Date
    Jun 2008
    There is. It should be on the menus (don't have VS, but it should have a menu with "compile", "run" maybe "built" options)

  4. #4
    Join Date
    Oct 2007
    Just remember to add your files as .c and it will compile them as C.
    Good luck.

    Quote Originally Posted by C_ntua View Post
    There is. It should be on the menus (don't have VS, but it should have a menu with "compile", "run" maybe "built" options)
    This has nothing to do with C or C++. Compile simply compiles the project. VS actually has the ability to compile on a file as either C or C++ on a file-basis (and will do so depending on the file extension).
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  5. #5
    Registered User
    Join Date
    Sep 2008
    Ok, thanks. Prof made it seem like I needed to get a c compiler in addition the VS. Thanks for the help. I hope to contribute to these forums once I've learned something.

  6. #6
    Chinese pâté foxman's Avatar
    Join Date
    Jul 2007

    You should send this link to your professor.

    By default, CL assumes that files with the .c extension are C source files and files with the .cpp or the .cxx extension are C++ source files.
    I hate real numbers.

  7. #7
    Registered User
    Join Date
    Jun 2008
    On a side note, the vs C compiler isn't up to date at all with the latest C standard and doesn't intend to.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. visual studio IDE w/ different compiler
    By tooKool4School6 in forum C++ Programming
    Replies: 15
    Last Post: 06-06-2006, 01:41 PM
  2. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 09:43 AM
  3. Vacuus Interface Demo Errors
    By Nebbuchadnezzar in forum Game Programming
    Replies: 9
    Last Post: 01-03-2006, 11:08 PM
  4. One error left! Plz help, me=noob
    By rrum in forum C++ Programming
    Replies: 7
    Last Post: 12-01-2005, 12:09 AM
  5. Does vc++ 6 (visual studio 6) supply opengl compiler
    By jaylc185 in forum C++ Programming
    Replies: 2
    Last Post: 05-20-2005, 12:25 AM