0
0

Greetings, I’m unable to get my program to compile… it doesn’t even get to the linking stage…

This is weird, because I can run the samples fine, and even if I just create a new project and compile it (without changing any of the project settings) I at least manage to get to the linking phase, whereupon it then craps out.

Seems to maybe be something with the library, but I’m not sure.

This is on Windows.

Here’s the errors:
g:\coding\internalbleeding\sound.h(31) : error C2079: ‘samples’ uses undefined struct ‘FSOUND_SAMPLE’
g:\coding\internalbleeding\sound.h(32) : error C2079: ‘songs’ uses undefined struct ‘FMUSIC_MODULE’
g:\coding\internalbleeding\sound.cpp(23) : error C2036: ‘struct FMUSIC_MODULE *’ : unknown size

Thanks.

  • You must to post comments
0
0

It seems you forget to include fmod’s headers.

  • You must to post comments
0
0

Nope, if the headers aren’t included it’s something more akin to:

g:\coding\internalbleeding\sound.h(25) : error C2143: syntax error : missing ‘;’ before ‘*’
g:\coding\internalbleeding\sound.h(25) : error C2501: ‘FMUSIC_MODULE’ : missing storage-class or type specifiers
g:\coding\internalbleeding\sound.h(25) : error C2501: ‘fmod’ : missing storage-class or type specifiers
g:\coding\internalbleeding\sound.h(31) : error C2146: syntax error : missing ‘;’ before identifier ‘samples’
g:\coding\internalbleeding\sound.h(31) : error C2501: ‘FSOUND_SAMPLE’ : missing storage-class or type specifiers
g:\coding\internalbleeding\sound.h(31) : error C2501: ‘samples’ : missing storage-class or type specifiers

etc. etc.

  • You must to post comments
0
0

The problem seems to be that in the header, it defines a typedef of FMUSIC_MODULE (or whatever) as struct FMUSIC_MODULE but the library file just doesn’t seem to be included correctly.. maybe, even though I even copied it into my MSVC lib directory (and I did include it in the project settings also). Maybe? I still have no clue.

  • You must to post comments
0
0

smacks forehead

Thank you very much! Works like a charm.

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.