Console application based on it to create or otherwise, the option "create an empty project and copy the code" does not offer =) Wednesday VS 10

  • five
    > the option "create an empty project and copy the code" does not suggest You can go through the forest. How to start the car without using gasoline? - Vladimir Gordeev

3 answers 3

Create a Console application project in VS and add the file you need to this project. Then compile calmly the whole project and you will be happy.

  • Well, I guess I’m going to have to do it, I just wondered if it was possible to do it somehow beautifully - megafonishe
  • one
    You can, if there is Linux with gcc, well, or find out the keys to the VS compiler. for gcc team: gcc youryfil.s from your file output for VS team: cl your files from 'and here there must be some keys that I don’t know' - Roman Goriachevskiy

The file with the .c extension is most likely the source code of a program written in C. To "run" this file, you must first compile it.

  • I can't compile duck) I don’t have a project as such, I don’t open it through file-> open-> project, but I don’t compile it through open-> file - megafonishe
  • I'm not exactly sure, but I suppose VS also has console compilers that allow compiling single files. - nolka

If it fails to compile in VS, then try one of the versions of C ++ Builder (I remember that it doesn’t make it anyway to open a project or a single file).

  • also does not allow to compile - megafonishe