Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

VISUAL C++ 2010 EXPRESS, COMPILING/RUNNING C CODE....NOT C++?

Can someone give me a QUICK/EASY startup guide on how to write/compile/run C code(not C++) on this IDE??? I assume I need to change the default options in the setup so that C is the default code???? What else do I need to write/compile and run code...........plain english please.

I had a compiler but it just did not support some commands that I need to use. I do not really want to get into learning this complex package now. I just want a COMPLETE C compiler so I downloaded Visual C++.

Thanks in advance!!!!

Update:

Using Pelles C........it does not support STRCASECMP or STRICMP or STRCMPI.

Thanks!

Update 2:

To Petze: The code is ok, problem is the new platform...having a hard time getting a simple program that I KNOW works in my other compiler to run in Visual C++.

Update 3:

To Tbshmkr: Thanks may give that a try...working on Visual C++ now.

Update 4:

To Michael: Pelles extension............tell me about this?????

5 Answers

Relevance
  • 9 years ago
    Favorite Answer

    Use mingw

    =

    Codeblocks IDE + minGW [gcc && gpp for Windows]

    -

    Code::Blocks == Open Source C/C++ IDE

    - codeblocks-10.05mingw-setup.exe

    - http://www.codeblocks.org/downloads/binaries

    -

    Discussion about strcasecmp - http://cboard.cprogramming.com/c-programming/47144...

  • Cubbi
    Lv 7
    9 years ago

    It is true that if you create an empty C++ console project and manually rename your cpp file to give it .c extension, Visual Studio *will* execute the Microsoft C compiler, but it is a doubly-obsolete 1989 C compiler. Microsoft abandoned C a long time ago.

    If you want to stay with this IDE and compile C, change the underlying compiler. Intel C/C++ is a good choice.

  • Anonymous
    9 years ago

    Quick and easy? You just need to create regular C++ projects (empty, no pre-compiled header) and rename source files to end in .c and not .cpp. Although I am suspicious of this question. Which compiler were you using before and what "commands" didn't it support? C is an ancient language and you'll find a lot of code floating around that uses non-standard things like graphics.h that won't compile in anything modern.

  • 9 years ago

    Why not show use your code to see if that's your problem? Create a regular project and rename the .cpp file to .c.

    Compile using F5

    Source(s): me
  • How do you think about the answers? You can sign in to vote the answer.
  • 9 years ago

    Project->Options

    compiler tab

    Checkboxes

    "Enable Microsoft extensions"

    "Enable Pelles C extensions"

    ---------------------------------

    if you are going with the Microsoft or with the Pelles extension in Pelles, you could use _stricmp ... :O)

Still have questions? Get your answers by asking now.