Microsoft C compiler

This is a discussion on Microsoft C compiler within the C Programming forums, part of the General Programming Boards category; Hey, I am new to C programming I am just not sure if we can use Microsoft Visual C++ to ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,485
    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, 11:57 AM
  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, 02: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

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