Archived

This topic is now archived and is closed to further replies.

What the....?

This topic is 5237 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

I just put this in my code:
DMUSIC_MIDI         dm_midi[DM_NUM_SEGMENTS];
And then it came up with these errors:
--------------------Configuration: prj_learn - Win32 Debug--------------------
Compiling...
prj_learn.cpp
C:\prj_learn\prj_learn.cpp(105) : error C2146: syntax error : missing '';'' before identifier ''dm_midi''
C:\prj_learn\prj_learn.cpp(105) : error C2501: ''DMUSIC_MIDI'' : missing storage-class or type specifiers
C:\prj_learn\prj_learn.cpp(105) : fatal error C1004: unexpected end of file found
Error executing cl.exe.

prj_learn.obj - 3 error(s), 0 warning(s)

Why is that? Thansk in advance, -sathenzar

Share on other sites
It means that the compiler doesn''t find the definition of ''DMUSIC_MIDI'' anywhere before the error point.

-Nik

Share on other sites
Okey, now how do I fix it?

Share on other sites
maybe try to include the dmusic include file
(assuming this type is defined there, and asuming its dmusic)

Share on other sites
hihihihihihihihihihi

/MindWipe

Share on other sites
hi  hi[hi];