Thread: Microsoft C compiler

  1. #1
    Registered User
    Join Date
    Oct 2004
    Posts
    6

    Microsoft C compiler

    Hey, I am new to C programming
    I am just not sure if we can use Microsoft Visual C++ to compile my C source code? I have Microsoft Visual Studio.Net 2003. It doesn't work. Does that only work with C++ not C?

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    You need to set the /TC compiler switch to get source files to compile as C. You can probably set this from your project properties.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Saving your programs as prog.c rather than the default prog.cpp helps as well

  4. #4
    Registered User
    Join Date
    Oct 2004
    Posts
    6
    Hi Guys, thanks a lot for the help. Now I can use CL command in Command line to compile my C source code by using Microsoft C/ C++ Compiler. But I have troubles to add the file to my project. I want to the Visual Studio C IDE features to edit my C source code. Could anybody show me a little bit more how to do it?

  5. #5
    Registered User
    Join Date
    Oct 2004
    Posts
    6
    Nevermind Everyone. Thanks a lot. I got it work now. Thanks.

  6. #6
    Registered User
    Join Date
    Oct 2004
    Posts
    6
    Sorry guys, another problem, My Visual Studio IntelliSense For C seems not available. Any help for that?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. [resolved] internal compiler error...
    By bling in forum C++ Programming
    Replies: 2
    Last Post: 12-10-2008, 12:57 PM
  2. Is Linux More Secure Than Windows?
    By xErath in forum A Brief History of Cprogramming.com
    Replies: 69
    Last Post: 06-29-2005, 07:13 PM
  3. Microsoft rulling
    By Sentaku senshi in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 11-02-2002, 03:50 AM
  4. Bad code or bad compiler?
    By musayume in forum C Programming
    Replies: 3
    Last Post: 10-22-2001, 09:08 PM
  5. I Love Microsoft
    By Witch_King in forum A Brief History of Cprogramming.com
    Replies: 26
    Last Post: 08-25-2001, 12:07 PM