Author Topic: Compiling C++ OpenGL projects  (Read 7352 times)

Offline flammamancer

  • Single posting newcomer
  • *
  • Posts: 2
Compiling C++ OpenGL projects
« on: February 14, 2009, 05:28:07 pm »
All right first of all I am almost certain that this question has already been dealt with but I have searched the forums for an hour an cannot find it.

I cannot Compile an OpenGL project with C++ using Code::Blocks allthough it seams to work fine under the C Compiler.
I can compile OpenGL projects with the C++ compiler with other IDEs but not Code::Blocks

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Compiling C++ OpenGL projects
« Reply #1 on: February 14, 2009, 06:05:04 pm »
I'm doing that every day and it works just fine, so there is no inherent problem regarding that in either Code::Blocks or MinGW.

Before trying to get C++ with OpenGL to work, have you tried compiling something C++ alone (with no OpenGL)? Because if that doesn't work either, then most likely you have incorrectly configured gcc instead of g++ in your toolchain executables.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."