precompiled headers

G

Guest

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!
 
M

Mihajlo Cvetanovic

dt said:
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).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top