User forums > Help

Running .c files without creating a project

(1/2) > >>

kartal:
Hi


I have started learning C and I am enjoying CB quite a bit.

I am wondering that if it it possible to run compile and run .c files without creating a project?

thanks

MortenMacFly:

--- Quote from: kartal on June 06, 2009, 07:07:32 am ---I am wondering that if it it possible to run compile and run .c files without creating a project?

--- End quote ---
Yes, but with limitations. Just try!

kartal:
MortenMacFly, how do I do it? It seems  like I need a project to be able to open and compile a file?

Dr.Optix:
1. Open C::B
2. File->New->File
3. Select C/C++ File and do what the wizard asks you
4. Write this program:

--- Code: ---#include<stdio.h>
int main()
{
    printf("Dr.Optix :D");

    return 0;
}

--- End code ---

5. Press F9 and all should work without problems :)

kartal:
Dr.Optix ,
For some reason, I cannot get it to work. It(F9) is just running previously compiled project. I have tried clean, clean workspace etc. I cannot get it to compile the currently open file that is not part of any project. Bear in mind though I do not want to delete or get rid of my open projects. I just want to be able to compile a file that is not part of any projetc, just for convenience.

Navigation

[0] Message Index

[#] Next page

Go to full version