Advertisement

why o why?!?

Started by June 26, 2002 01:31 PM
2 comments, last by da_cobra 22 years, 5 months ago
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]
Advertisement
Heres my guess:

Try including the utils files after you include the directx files
This original thread was moved here

This topic is closed to new replies.

Advertisement