gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > Converting to a .C file

#5340 - Mori Ryuu - Fri Apr 25, 2003 6:17 pm

I've tried a few codes, mostly just filling a screen-nothing big at all

But the problem is...I use Notepad to type in the code, but I don't know how to make it a .C file to make the program compile.

How do you do this?

I'm brand new to this, I've no C or any other language experience, so ... yeah, i'm new ^_^

#5344 - niltsair - Fri Apr 25, 2003 6:47 pm

You needs a compiler to actually create a program from it.

You should first learn the basis of Programming on a Pc. And when you feel confortable with C/C++ programming, then you switch to Gba which has much more issue to be aware of.

And about you file you created, it's actually a valid file. A 'c' file is only a text file with your code. You then ask the compiler to read it and transform it to a program.

So bottom line, find on the net a Tutorial about Programming, better yet, buy a good book on it. Find and install a compiler. And practice it.

#5349 - blueskies - Fri Apr 25, 2003 9:23 pm

or if you look in folder options, or something (tools-folder options-view-uncheck "hide file extensions..."), change the option to show file extensions for known file types, then just change "*.txt" to "*.c".