469,602 Members | 1,927 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,602 developers. It's quick & easy.

precompiled headers

dt
Having troubles with my program and i believe it has something to do with my
project settings for precompiled headers. This is what i have: my main cpp
file, vector.h/cpp and polygon.h/cpp.

vector.h includes math, polygon includes vector and gl/gl.h, and main
includes windows.h, gl/gl.h, gl/glu.h, gl/glaux.h and polygon.h

i've tried setting all of them to 'using precompiled headers' and i get:
fatal error C1010: unexpected end of file while looking for precompiled
header directive

i've tried setting them all to 'not using precompiled headers' but i get a
ton of errors mostly in gl.h and a couple in vector.cpp which say 'identifier
not found' even though it's with regards to a variable that i defined in the
vector class in vector.h. Including windows.h in the files that use gl (main
and polygon) gets rid of the gl.h errors but keeps those vector errors that i
mentioned. Any ideas?? this is very frustrating and any help would be much
appreciated...thanks!
Nov 17 '05 #1
1 1093
dt wrote:
i've tried setting them all to 'not using precompiled headers' but i get a
ton of errors mostly in gl.h and a couple in vector.cpp which say 'identifier
not found' even though it's with regards to a variable that i defined in the
vector class in vector.h. Including windows.h in the files that use gl (main
and polygon) gets rid of the gl.h errors but keeps those vector errors that i
mentioned. Any ideas?? this is very frustrating and any help would be much
appreciated...thanks!


Look for the first error that compiler gives to you. When you fix it
other error will probably disappear. Look in Output window, it's better
than ToDo window. If you're stuck post here the contents of Output
window (especially the first error).

Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Asfand Yar Qazi | last post: by
4 posts views Thread by Andrew Ward | last post: by
reply views Thread by Bruno van Dooren | last post: by
20 posts views Thread by Bonj | last post: by
1 post views Thread by Alvo von Cossel I | last post: by
8 posts views Thread by Abubakar | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.