Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I track down this error ?

Status
Not open for further replies.

Kalisto

Programmer
Feb 18, 2003
997
GB
I have a project that compiles normally.
I have added in a new class, which needs to include the Open GL header gl.h (which is already included elsewhere in the program)

When I have added in the new class, and some basic structs, the program will no longer compile, and throws up >100 APIENTRY redefinition error messages, all in the Open GL Header.

Anyone know of an easy way to track this down (I don't want to pull all my code out, and introduce it a step at a time if I can avoid it)

K
 
Find the definition of the APIENTRY and put an #ifdef X #end around it.

Greetings,
Rick
 
Cheers, but why should it suddenly do this if I add in my new class. The file that the API Errors are in are used in other places and this is the first time that this has ocurred.

I use OpenGL a lot, and have never had this happen before. It is really confusing (and with nearly 100 definitions, it's not something I want to do if I can avoid it)
 
It's not that its defined a 100 times; it encounters the error a 100 times.....

You may also have created some sort of circular include.

Greetings,
Rick
 
OK, I'll check it out on Monday, but I can't see a circualr ref.

I'll post again Monday.

K
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top