0

I followed this installation video to install Dev C++ and freeglut for a class, and I did so precisely according to the instructions, but I'm getting a strange compilation error when I toss in some prewritten test code to try and figure it out.

Error

The teacher speculates that it might have something to do with not having freeglut.h but as this picture shows, it is indeed there. I need to have this working for class, if anyone can give me any advice that would be awesome.

Correct?

UPDATE: I tried changing the header file at the suggested point, but that didn't help much... I checked the source header file and it looked like the below picture in Notepad. Perhaps it has to do with Dev C++?

enter image description here

Legion Daeth
  • 329
  • 1
  • 5
  • 15

2 Answers2

0

It looks like the header file got mangled. Your picture shows this:

#ifdef __cplusplus
#endif
    extern "C" {

but that doesn't make sense. It should be this:

#ifdef __cplusplus
    extern "C" {
#endif
jdigital
  • 11,926
  • 4
  • 34
  • 51
0

Try opening the project in a blank application! That video asks you to open a console application which doesn't make sense for graphical code.

Legion Daeth
  • 329
  • 1
  • 5
  • 15