I have been trying for ages to get glut working (in code blocks)
and now it works... sort of. I can compile and run applications but it comes up with several warning: ignoring #pragma comment errors in glut.h. I got the glut.h file from here. because all other downloads of glut I used didn't work at all. why am I having this trouble with installing glut?

Recommended Answers

All 2 Replies

Member Avatar for jencas

It seems that the compiler you are using, does not know "#pragma comment". Because it is only a comment, just remove these statements from the source code.

what is the difference between a #pragma comment and a regular one?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.