why o why?!?
why o why do I get these errors, all I did was added a utils.cpp & utils.h to my project so I can use my logging system
before that everything was alright, no errors what so ever
now I get these errors :
error C2143: syntax error : missing '';'' before ''*''
error C2501: ''IDirect3D8'' : missing storage-class or type specifiers
error C2501: ''g_pD3D'' : missing storage-class or type specifiers
error C2146: syntax error : missing '';'' before identifier ''d3ddm''
error C2501: ''D3DDISPLAYMODE'' : missing storage-class or type specifiers
fatal error C1004: unexpected end of file found
Error executing cl.exe.
these errors are pointing to my main.h which I had to include in my utils.cpp because I needed the #include <windows> and such ....
1) posting some code would help. w/out it it's a guessing game
2) the guess you aren't #including whatever header defines IDirect3D8 in util.cpp / util.h
3) another guess: you are missing a ; at the end of a class definition in util.h
correct:
class foo {
};
incorrect:
class foo {
}
-me
[edited by - Palidine on June 26, 2002 2:36:03 PM]
2) the guess you aren't #including whatever header defines IDirect3D8 in util.cpp / util.h
3) another guess: you are missing a ; at the end of a class definition in util.h
correct:
class foo {
};
incorrect:
class foo {
}
-me
[edited by - Palidine on June 26, 2002 2:36:03 PM]
Heres my guess:
Try including the utils files after you include the directx files
Try including the utils files after you include the directx files
This original thread was moved here
Jim Adams, Author"Programming Role-Playing Games with DirectX""Advanced Animation with DirectX""Programming Role-Playing Games with DirectX, 2nd Edition"
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement