views:

30

answers:

3

Here is the basic issue: when I use codeblocks to begin a "project" (they use this term as opposed to program...) I start with a console "project" and C::B immediately includes a file "main.c" file... with Hello world... the funny thing is the program name that I want to use is (example) would be something like Rick_practice.c for the source code file name.... So in the case of Rick_practice.c /* an example program for learning C*/ I am aware that all c programs should begin generally with a preprocessor statement like

include /* an input/output header file directive */

then int main (void) /* standard C main function*/ { blah, blah blah }

Problem: Codeblocks inserts a main.c (this seems to me be a .C source code "program" (as it has a dotC .c extension, within which Code::Blocks inserts "hello world" as part of every project... do I have the code blocks IDE not configured properly...

I have also tried to create an empty console project without using the C::B wizards...

I have downloaded the codeblocks user manual, a student version manual, (yeah I read them) looked on You tube, and as a last resort and am (reluctantly)coming to the experts at Stackoverflow, as I should be able to figure this out on my own... I am using the codeblocks IDE as it is free... Thank you for your time and please forgive my ignorance. Rick

+1  A: 

if you don't want to start off with a project, you could've tried File > New > File to get going with your sample test programs.

Farhan
Thank You for your interest and time.
sammysmall
+1  A: 

But what is your problem, exactly? Code::Blocks inserts the hello world thingy because it uses a template. You can remove the code and replace it. You can even remove the main.c file and add a different one with the main() function, or even create many files with main() unctions and assign each one to a different build target (many programs within the same project).

mingos
Thank you for your interest and time.
sammysmall
A: 

Thank you Mingos and Farhan for your answers! After a bit more research from within "similiar" questions, a member named Poma suggested AkelPad (http://akelpad.sourceforge.net/) and it is working very well... So I will close this question out... Thank you again! Rick

sammysmall
Credit for the "BEST" answer (that matched my particular needs) goes to POMA
sammysmall