why o why?!?

Started by
1 comment, last by da_cobra 21 years, 9 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 ....
Advertisement
Most likely you don''t have your #include <direct3d.h> in the header file so it doesn''t know what those variables are.
--> DX forum.

Are you including d3d8.h (assuming dx8.x)? If so, make sure it's before util.h.



Jim Adams
home.att.net/~rpgbook
Author, Programming Role-Playing Games with DirectX


[edited by - jim adams on June 26, 2002 2:35:52 PM]

This topic is closed to new replies.

Advertisement