C compiler for Visual studio?

This is a discussion on C compiler for Visual studio? within the C Programming forums, part of the General Programming Boards category; Forgive me if this is posted somewhere. I did look for it. I've started my class in c and have ...

  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    9

    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
    Posts
    14,185
    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
    Posts
    1,853
    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
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,790
    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
    Posts
    9
    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
    Location
    Canada
    Posts
    404
    http://msdn.microsoft.com/en-ca/library/032xwy55.aspx

    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
    Posts
    266
    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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21