Author Topic: How to change default main file from .c to .cpp in an OpenGL project?  (Read 6224 times)

Offline mysteriousmonkey29

  • Single posting newcomer
  • *
  • Posts: 3
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.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252