0

How do I compile a c program in Visual C++ 2008 express edition? I tried finding a compile button but i couldnt find it

7
Contributors
6
Replies
10
Views
8 Years
Discussion Span
Last Post by asabjork88
-1

Build --> Build Solution (Hotkey: F7)
Build --> Compile (Hotkey: Control+F7)

And to run:
Control+F5

0

set file extension to .c not .cpp

-2

How do I compile a c program in Visual C++ 2008 express edition? I tried finding a compile button but i couldnt find it

Votes + Comments
just copy/paste of original question.
0

You need an open project, to start a new project go either to File>New>Project, or press Ctrl+Shit+N.
Preferably choose the Empty project template.

Then, right click on the Source Files folder to the left and choose Add>New Item...
Then you get a dialog where you can choose the name of your file. When choosing your name, don't forget the .c extension.

After writing your code you are ready compile. Do this by:

  • Build > Build Solution. Or just hit F7.
  • Debug > Start Debugging. Or just hit F5.
0

My "green button" is gray for some reasons,
that is to say it looks disabled.
Can't find any button that says build, compile, or run.
F7 doesn't work either,
is there some extras I might need to download before??

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.