News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

How to change default main file from .c to .cpp in an OpenGL project?

Started by mysteriousmonkey29, December 26, 2011, 08:26:48 PM

Previous topic - Next topic

mysteriousmonkey29

I keep trying to create OpenGL projects in code blocks, and the default seems to be a main.c file.  Unfortunately, this means that whenever i try to include iostream, the program does not compile correctly.  The only way around this i have found is to create a GLUT project or console application, and then link the other libraries manually, which takes a long time.  Is there anyway to change the default settings, or otherwise avoid this problem?  I have tried looking throught the setup menu for the new OpenGL project, but there doesn't seem to be the option i'm looking for.